debian-forge-composer/internal/store
Brian C. Lane 0b864c4306 store: Add blueprints to the stored changes
Previously the blueprint change was only present until a reboot. The
change and its version was recorded, but the actual blueprint was not
saved.

This adds saving the blueprint when it is changed, and loading the old
blueprint versions when they are present in the store.

No version change is needed, if the blueprint is not present it is
loaded as an empty blueprint which was already being detected by
checking the length of the Name.

This will allow specific blueprint changes to be recalled after a
restart of the server.

This also includes tests for the new behavior.
2022-11-24 11:19:14 +01:00
..
test store: verify that old versions of the store can still be unmarshalled 2020-06-03 00:30:01 +02:00
compose.go store: delete unused GetLocalTargetOptions() method 2022-07-01 18:55:01 +01:00
fixtures.go store: Fix loading cross distro compose results 2022-11-03 08:39:22 +01:00
json.go store: Add blueprints to the stored changes 2022-11-24 11:19:14 +01:00
json_test.go store: Add blueprints to the stored changes 2022-11-24 11:19:14 +01:00
store.go store: Fix loading cross distro compose results 2022-11-03 08:39:22 +01:00
store_test.go store: Fix loading cross distro compose results 2022-11-03 08:39:22 +01:00