Extend snapd REST API to get conf props from change transaction

Bug #1805170 reported by Vladimir Kiryakov
6
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/[name]/conf has two type op executions
- 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.

Revision history for this message
Vladimir Kiryakov (vkiryakov) wrote :

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.
overlord/configstate/transaction_test.go t.Changes()

Zygmunt Krynicki (zyga)
affects: snappy → snapd
Zygmunt Krynicki (zyga)
Changed in snapd:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.