-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#18963 from gfouillet/v4/dqlite/resources/remo…
…ve-origin-rev-recordstoredresourcs juju#18963 Since the new way to use resources tables is to add a resource and move association through application_resource and unit_resource table, StoreResources doesn't need to update origin or revision anymore. It will always upload a resource with valid origin and revision. So this commit remove those fields from all layers in the call stack. ## Checklist - [X] Code style: imports ordered, good names, simple structure, etc - [X] Comments saying why design decisions were made - [X] Go unit tests, with comments saying what you're testing ~- [ ] [Integration tests](https://github.com/juju/juju/tree/main/tests), with comments saying what you're testing~ ~- [ ] [doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages~ ## QA steps Unit test still pass. Behavior won't be perfect until other PR which fixes resources are landed, however, above steps should works: ```sh juju deploy juju-qa-test qa ``` Wait for IDLE, until ```sh App Version Status Scale Charm Channel Rev Exposed Message qa active 1 juju-qa-test latest/stable 25 no hello ``` ```sh juju config qa foo-file=true ``` Status should update: ```sh App Version Status Scale Charm Channel Rev Exposed Message qa active 1 juju-qa-test latest/stable 25 no resource line one: testing two. ``` ```sh echo "spam" > test.txt juju attach-resource qa3 foo-file=./test.txt ``` Status should update: ```sh App Version Status Scale Charm Channel Rev Exposed Message qa active 1 juju-qa-test latest/stable 25 no resource line one: spam ``` > [!NOTE] > Migration won't work properly because it requires this PR to be landed: juju#18916 Migrate the model to another controller. Status should be ok on the new controller after a while ```sh App Version Status Scale Charm Channel Rev Exposed Message qa active 1 juju-qa-test latest/stable 25 no resource line one: spam ```
- Loading branch information
Showing
11 changed files
with
51 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.