SUSE-Enceladus / public-cloud-info-service

Find IPs of service endpoints, and information about published images.
Apache License 2.0
5 stars 8 forks source link

Enforce Changelog consistency in data model #98

Open jeremy-moffitt opened 2 years ago

jeremy-moffitt commented 2 years ago

The datamodel should be updated to require the following of image entries:

  1. all changelog entries should end in a forward-slash / character . If a slash is not present, the validator should add one
  2. If an image has a non-empty changelog entry for one region, it must have a non-empty changelog entry for all regions
  3. It must be possible to apply this update in-place without re-creating the database, so this change will require a migration.

This should be done as a model validation.