Remove support for V1 license format from Rails app
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Why are we doing this work
As per Deprecate V1 metadata format for licenses (#438477 - closed), GitLab will no longer make the V1 metadata available from the release date of %18.0.
This has been achieved with Remove license data for V1 format from the GCP ... (#440535 - closed).
Now we must clean up the code from anything related to v1 data handling.
Relevant links
Non-functional requirements
-
Documentation: -
Feature flag: -
Performance: -
Testing:
Implementation plan
- Remove v1-related code from
gitlab-org/gitlab- Remove CsvDataFile and references to this object.
-
BaseConnector (remove
sync_config.v2?) - SyncConfiguration
-
IngestionService (this solely handles v1, v2 is handled by CompressedPackage::IngestionService)
- And all ingestion tasks under ee/app/services/package_metadata/ingestion/tasks
- Rename CompressedPackage::IngestionService to
License::IngestionService(structured like Advisory::IngestionService) - Data migration (using post-deployment migrations)
- Remove foreign keys from
pm_package_versionsandpm_package_version_licensestables - Drop
pm_package_versionsandpm_package_version_licensestables
- Remove foreign keys from
- Docs
- Update offline docs to remove mentions of
v1version_format - And add instructions on how to remove local
v1package_metadata
- Update offline docs to remove mentions of
Verification steps
Edited by 🤖 GitLab Bot 🤖