Resolve "Add new project template for HIPAA Audit Protocol"
What does this MR do?
Adds HIPAA Audit Protocol template: https://gitlab.com/gitlab-org/project-templates/hipaa-audit-protocol
Issue: #13756 (closed)
-
add new template -
test import -
svg logo (we are using the default Tanuki logo, which already exists) -
Make this template GitLab Ultimate only
Details
We do not have a precedent for having project templates that have "issues" in them - till now we only have project templates that only have commit data in them.
For this template however, it is necessary that we also import the "180" issues contained inside the project with their labels.
Our rake task for project template tar
file generation does not include the issue data in the project export, so I had to create this manually.
This was my process:
-
Generate the template
tar
file using the commandbin/rake gitlab:update_project_templates[$name]
as mentioned here for the project https://gitlab.com/gitlab-org/project-templates/hipaa-audit-protocol -
This
tar
file contains only commit data, but no issue or label data. -
I unzip this to a new directory.
-
I take a normal export of https://gitlab.com/gitlab-org/project-templates/hipaa-audit-protocol, and this export contains issue and label data.
-
I copy over the issue and label data in
project.json
from step 4 into theproject.json
obtained in step 3. -
Once I copied over the label and issue data, I replaced the
project_id
info withnull
andauthor_id
info with-1
everywhere (so that our template file does not contain the real ids) -
I created a new tar file containing the edited
project.json
, with rest of the files remaining the same from step 3. -
Tried importing this new
tar
file - import was successful and created the 180 issues with the correct labels.
Follow up
Created #213054 to update the rake task to include data other than just commit data.
Screenshots
The project created from this template also imports the issues successfully.
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
-
Label as security and @ mention @gitlab-com/gl-security/appsec
-
The MR includes necessary changes to maintain consistency between UI, API, email, or other methods -
Security reports checked/validated by a reviewer from the AppSec team