-
Notifications
You must be signed in to change notification settings - Fork 32
π¨ improvements: return user email in licensed items, error msg, expose pricing plans ποΈ #7068
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
matusdrobuliak66
merged 28 commits into
ITISFoundation:master
from
matusdrobuliak66:fix/debt-msg
Jan 28, 2025
Merged
π¨ improvements: return user email in licensed items, error msg, expose pricing plans ποΈ #7068
Changes from 9 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
a3d0eb8
first commit
matusdrobuliak66 393cd5c
Merge branch 'master' into fix/debt-msg
matusdrobuliak66 c1e21d3
openapi specs
matusdrobuliak66 99242cc
add migration db add user email col
matusdrobuliak66 250f41a
openapi specs
matusdrobuliak66 0165cde
add unit test
matusdrobuliak66 03306d5
Merge branch 'master' into fix/debt-msg
matusdrobuliak66 662a796
fix
matusdrobuliak66 e26e28d
fix
matusdrobuliak66 afbe8ec
Merge branch 'master' into fix/debt-msg
matusdrobuliak66 938d267
review @sanderegg
matusdrobuliak66 4963ec8
review @pcrespov
matusdrobuliak66 86f75c0
add comment
matusdrobuliak66 4a685d1
openapi specs
matusdrobuliak66 92ca3a0
fix tests
matusdrobuliak66 6e402f9
Merge branch 'master' into fix/debt-msg
matusdrobuliak66 21caad7
update regex
odeimaiz 3588ae6
getAllPages
odeimaiz 2ff9021
adminPricingPlans & pricingPlans
odeimaiz 8e35c0d
minor
odeimaiz b2c0daa
Merge pull request #5 from odeimaiz/matusdrobuliak66-fix/debt-msg
matusdrobuliak66 45be582
Merge branch 'master' into fix/debt-msg
matusdrobuliak66 cddb7cc
fix
matusdrobuliak66 dca94a8
Merge branch 'master' into fix/debt-msg
matusdrobuliak66 ee53789
Merge branch 'master' into fix/debt-msg
matusdrobuliak66 493e24f
fix issue with publishing
matusdrobuliak66 2c97c52
Merge branch 'fix/debt-msg' of github.com:matusdrobuliak66/osparc-simβ¦
matusdrobuliak66 d911b4c
Merge branch 'master' into fix/debt-msg
matusdrobuliak66 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 |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ class LicensedItemCheckoutGet(BaseModel): | |
| licensed_item_id: LicensedItemID | ||
| wallet_id: WalletID | ||
| user_id: UserID | ||
| user_email: str | ||
| product_name: ProductName | ||
| service_run_id: ServiceRunID | ||
| started_at: datetime | ||
|
|
@@ -31,6 +32,7 @@ class LicensedItemCheckoutGet(BaseModel): | |
| "licensed_item_id": "303942ef-6d31-4ba8-afbe-dbb1fce2a953", | ||
| "wallet_id": 1, | ||
| "user_id": 1, | ||
| "user_email": "[email protected]", | ||
| "product_name": "osparc", | ||
| "service_run_id": "run_1", | ||
| "started_at": "2023-01-11 13:11:47.293595", | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ class LicensedItemPurchaseGet(BaseModel): | |
| expire_at: datetime | ||
| num_of_seats: int | ||
| purchased_by_user: UserID | ||
| user_email: str | ||
| purchased_at: datetime | ||
| modified: datetime | ||
|
|
||
|
|
@@ -43,6 +44,7 @@ class LicensedItemPurchaseGet(BaseModel): | |
| "expire_at": "2023-01-11 13:11:47.293595", | ||
| "num_of_seats": 1, | ||
| "purchased_by_user": 1, | ||
| "user_email": "[email protected]", | ||
| "purchased_at": "2023-01-11 13:11:47.293595", | ||
| "modified": "2023-01-11 13:11:47.293595", | ||
| } | ||
|
|
||
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
30 changes: 30 additions & 0 deletions
30
...core_postgres_database/migration/versions/5f88b513cd4c_add_user_email_col_to_purchases.py
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,30 @@ | ||
| """add user email col to purchases | ||
|
|
||
| Revision ID: 5f88b513cd4c | ||
| Revises: ecd4eadaa781 | ||
| Create Date: 2025-01-22 15:08:17.729337+00:00 | ||
|
|
||
| """ | ||
| import sqlalchemy as sa | ||
| from alembic import op | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "5f88b513cd4c" | ||
| down_revision = "ecd4eadaa781" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.add_column( | ||
| "resource_tracker_licensed_items_purchases", | ||
| sa.Column("user_email", sa.String(), nullable=True), | ||
| ) | ||
| # ### end Alembic commands ### | ||
|
|
||
|
|
||
| def downgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.drop_column("resource_tracker_licensed_items_purchases", "user_email") | ||
| # ### end Alembic commands ### |
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
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
Oops, something went wrong.
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.