-
Notifications
You must be signed in to change notification settings - Fork 6
Making the design fully append only #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a5d86af
server_manager_integrated
SKS94 705fe1c
tested and bug fix of capability interactions
SKS94 1e1b5d3
tested tenant and capability reg. and de-reg, and enpoint interactions
SKS94 a37dd14
changed the result and request tables to be fully append only
SKS94 f01f793
review comment
SKS94 6647871
nullable
SKS94 e3bec94
updated imp
SKS94 bf6cc6e
fix
SKS94 83037b3
review
SKS94 c464f4a
review changes
SKS94 9dab1cb
review changes
SKS94 f108e77
review changes
SKS94 94a2ec4
cli changes
SKS94 bc2e879
collected function
SKS94 b383534
These changes make sure that FINALES initiates
MonikaVo 2eee89b
Adjusted the file endings to avoid failure of the pre-commit checks
MonikaVo a27c103
Adjusted the file endings to avoid failure of the pre-commit checks
MonikaVo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +0,0 @@ | ||
| from FINALES2.logging.logger import loggerConfig | ||
|
|
||
| logger = loggerConfig().get_logger() | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| from sqlalchemy import TIMESTAMP, Boolean, Column, ForeignKey, String | ||
| from sqlalchemy.sql import func | ||
| from sqlalchemy_utils import UUIDType | ||
|
|
||
| from FINALES2.db.base_class import Base | ||
|
|
||
|
|
||
| class IsActiveLogQuantity(Base): | ||
| """ | ||
| Class defining the logging of the is_active of specific quantities in the quantity | ||
| table with the following columns: | ||
| uuid (UUIDType (32)): uuid of the entry | ||
| quantity_uuid (UUIDType (32)): uuid of the quantity with the associated | ||
| is_active type | ||
| is_active (Boolean): 1 - row is active when added. Row will remain active | ||
| with 1, but an update on the same quantity will be a new | ||
| row (newer load_time). | ||
| When a row with is_active=0 is added, it will mean the | ||
| type is not active, until a new is_active=1 with newer | ||
| load_time is added. | ||
| is_active_change_message | ||
| load_time (Datetime): Timestamp for when the row is added | ||
| """ | ||
|
|
||
| uuid = Column( | ||
| UUIDType(binary=False), | ||
| primary_key=True, | ||
| nullable=False, | ||
| ) | ||
| quantity_uuid = Column( | ||
| UUIDType(binary=False), | ||
| ForeignKey("quantity.uuid"), | ||
| nullable=False, | ||
| ) | ||
| is_active = Column(Boolean(), default=True) | ||
| is_active_change_message = Column( | ||
| String, | ||
| nullable=True, | ||
| ) | ||
| load_time = Column( | ||
| TIMESTAMP, server_default=func.now(), onupdate=func.current_timestamp() | ||
| ) |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| from sqlalchemy import TIMESTAMP, Boolean, Column, ForeignKey, String | ||
| from sqlalchemy.sql import func | ||
| from sqlalchemy_utils import UUIDType | ||
|
|
||
| from FINALES2.db.base_class import Base | ||
|
|
||
|
|
||
| class IsActiveLogTenant(Base): | ||
| """ | ||
| Class defining the logging of the is_active of specific quantities in the quantity | ||
| table with the following columns: | ||
| uuid (UUIDType (32)): uuid of the entry | ||
| quantity_uuid (UUIDType (32)): uuid of the quantity with the associated | ||
| is_active type | ||
| is_active Boolean (Boolean): status if the tenant is currently active | ||
| is_active_change_message (String): Message associated with change. Can be left | ||
| blank | ||
| load_time (Datetime): Timestamp for when the row is added | ||
| """ | ||
|
|
||
| uuid = Column( | ||
| UUIDType(binary=False), | ||
| primary_key=True, | ||
| nullable=False, | ||
| ) | ||
| tenant_uuid = Column( | ||
| UUIDType(binary=False), | ||
| ForeignKey("tenant.uuid"), | ||
| nullable=False, | ||
| ) | ||
| is_active = Column(Boolean(), default=True) | ||
| is_active_change_message = Column( | ||
| String, | ||
| nullable=True, | ||
| ) | ||
| load_time = Column( | ||
| TIMESTAMP, server_default=func.now(), onupdate=func.current_timestamp() | ||
| ) | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +0,0 @@ | ||
| from FINALES2.logging.logger import loggerConfig | ||
|
|
||
| logger = loggerConfig().get_logger() | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.