Migrating security issues to git.drupalcode.org will happen via passing through a www.drupal.org drush command which reads a json file with all security issue data. It will be done this way since www.drupal.org has the mapping to GitLab accounts, and shared migration code, like formatting Drupal HTML-ish formatted text as something that GitLab-Flavored-Markdown renders okay. This issue is for creating the JSON export.
What won’t be exported:
- Component - projects’ components on security.drupal.org are generally not maintained
- Credit reporters & fixed - GitLab will not contain these directly, they will be on draft security advisories which remain in Drupal
- Parent & related issues - These could be migrated, although will require another step in updating & mapping. 61 issues have a parent, and there are 294 relations. They have not been used too extensively on security.drupal.org as access control limits what people can see
- Security advisory drafts - there should not be many drafts for unreleased issues. We can manually copy them over after migration
Issue fork securitydrupalorg-3565761
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
drummComment #3
gregglesPlan sounds good to me so far. Thanks for thinking this through and sharing your plans.
Comment #5
drummThis command is complete as far as I know now. I fully expect there to be future iterations, as I find more with the import.
The main thing that is reviewable here is the mapping to GitLab labels. The rest is relatively straightforward iterating over everything.
It will be invoked like:
drush -v migrate-issue-data --user=1 > sdo-issues.jsonUser 1 is needed for loading some nodechanges data. The export on private dev is 53M, which includes everything except filenames of uploads; files are not copied to dev.
Comment #6
drummComment #8
drummI am deploying what I have so far, so I can start testing the linting phase with production data. There are a couple things that are harder to get in a dev environment:
I still expect followups, although I’ll lean toward any data cleanups on the import side. For example, the import fixes the project of a larger handful of issues that are in projects only on security.drupal.org, such as issues for the security.drupal.org website go to securitydrupalorg module.
Comment #11
drummI’m going to call this fixed since the import side is working well.