Extend snapd REST API to get conf props from change transaction
Bug #1805170 reported by
Vladimir Kiryakov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Expose api to get just setted props from `change transaction` storage. Should be accessible in configure script to get just changed/setted props.
/v2/snaps/
- no options - returns all snap conf props from persistent storage.
- request for specific option - returns option from `change transaction` storage.
- Add new one to get from `change transaction` storage.
affects: | snappy → snapd |
Changed in snapd: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Extend API to use Changes function in `overlord/ configstate/ transaction. go `func (t *Transaction) Changes() []string {`.
It returns changing keys associated with this transaction.
We use in the same approach in unit testing. configstate/ transaction_ test.go t.Changes()
overlord/