AlmaLinux / build-system

The AlmaLinux OS project Build System documentation and issue tracker.
Creative Commons Attribution Share Alike 4.0 International
27 stars 10 forks source link

Create migration script to fill in empty OVAL criteria, tests, objects and variables of errata records in database #350

Closed javihernandez closed 1 month ago

javihernandez commented 2 months ago

The new philosophy around the new errata process is that oval data information is only generated upon errata release (all pkgs are matched, added and published updaterecord/packages in pulp repos, marked as "released" in database, etc). Then, when requesting for oval xml, we just need to take generated data to compile the final document. But what happens with already released records?

We have unused fields in our data model, checked production database and:

For this reason, we are creating a migration script that adds all oval data for all released erratas in those empty fields, because right now with the current implementation, this is calculated every time we call get_oval_xml. This way, we don't need to calculate every time, just take all oval data from records and compile the final oval document.

This covers the following requirements: