forked from astarte-platform/astarte
-
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.
Edit AppEngine api :use keyspace name instead of realm in queries
Currently Astarte instances are not allowd to share the same database due to a conflict in namespaces resolution (eg. two realms with same name in different astarte instances now share the same kespace, that's not good) This commit introduce univoque mapping between the pair <Astarte instance id, realm name> and keyspace name (see also astarte-platform/astarte_core#105), this way even with the same name, realms do not share the same keyspace. Also, the env var `ASTARTE_INSTANCE_ID`, defaulting to `""` has been added to maintain backward compatibility. Trivially change all queries to the database to reflect this change, both in `lib` and `tests`. Signed-off-by: Eddy Babetto <eddy.babetto@secomind.com>
- Loading branch information
Showing
8 changed files
with
130 additions
and
100 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
Oops, something went wrong.