Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add account table and according data migration script * fix the preservation of generic_asset.owner_id information between up & downgrading the database migration * mention account name on user page and listings * change name of /account page to /logged-in-user to avoid confusion * adapt data.services.users:create_user to deal with the account_id; make sure all test users have an account * display account name on logged-in-user page, not account ID * give automatically generated generic assets the correct account ID (derived from asset.owner_id) * Support adding & deleting accounts in CLI, also add --account-id to the add user command. Make sure deleting GenericAssets actually cascades to deleting the connected sensors. * API: protect change in asset.owner_id from switching accounts * a few user/asset API docs improvements found on the way, also adding account_id to /user docs * Update change_log.rst * Show which users and generic assets would be deleted when CLI task is used to delete an account * add account_id to GenericAsset schema and also to the CLI task for adding them * minor improvements from review * ffix test * add changelog entry * document make show-data-model better & make --dev work for the --schema option, as well. * add info about make show-data-model --uml --dev to changelog * more help with db upgrading in version 0.6.0 Co-authored-by: Nicolas Höning <nicolas@seita.nl> Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
- Loading branch information
1 parent
0ad268d
commit 247c747
Showing
39 changed files
with
627 additions
and
84 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
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
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.