-
Notifications
You must be signed in to change notification settings - Fork 32
β»οΈπ¨ web-server: enhances product domain
#7294
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
pcrespov
merged 46 commits into
ITISFoundation:master
from
pcrespov:is7275/product-follow-up
Mar 10, 2025
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
398d99d
controler folder
pcrespov 36d8d34
baserepo
pcrespov 48e6571
drafting changes
pcrespov a65de8f
service: load products
pcrespov 840de2b
set auto_create_products_groups
pcrespov e66c649
refactor pg utils
pcrespov 2e65cb3
fixes tests
pcrespov 8d0d0e1
fixes tests
pcrespov 01ce11f
fix pylint
pcrespov 81847fb
cleanup
pcrespov 5e805da
get default product name
pcrespov ad6ba6a
setup rpc
pcrespov 462e6af
cleanup
pcrespov ffd34fa
cleanup
pcrespov 59429e5
migrated aiopg -> aymcpg in pg products
pcrespov 265fb19
rm deprecated
pcrespov 75c718d
cleanup
pcrespov db351a1
exception handlers
pcrespov 7ce8f61
errors
pcrespov c12b080
product and get|create
pcrespov 5b339c3
fixes
pcrespov f3029ad
cleanup
pcrespov 320f0bd
droping old dependencies
pcrespov 80b9b62
cleanup
pcrespov 17697a2
fixing tests
pcrespov 73e72df
fix tests
pcrespov d9c2449
fix tests
pcrespov ffecbde
fix tests
pcrespov 62ab51d
extend coverage
pcrespov 9062390
fix mypy
pcrespov 854d604
rename and doc
pcrespov d9def7d
renames
pcrespov c9c869f
doc
pcrespov 4a223f3
replaces base repo
pcrespov 8f53f9f
rename
pcrespov 7288b0e
schema models
pcrespov baf0c44
schemaresultget
pcrespov c9bd637
priductsrip
pcrespov 02d14cf
dataclass
pcrespov dc8152f
FIX
pcrespov 38694a3
test fix
pcrespov a8c6a74
changes in api-keys
pcrespov 3cfc3ce
changes in api-keys
pcrespov 418d134
fixes api-keys tests
pcrespov 0816621
cleanup
pcrespov 6cb7179
cleanup
pcrespov 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
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,36 +1,5 @@ | ||
| from decimal import Decimal | ||
| from typing import TypeAlias | ||
|
|
||
| from pydantic import BaseModel, ConfigDict, Field | ||
|
|
||
| ProductName: TypeAlias = str | ||
| StripePriceID: TypeAlias = str | ||
| StripeTaxRateID: TypeAlias = str | ||
|
|
||
|
|
||
| class CreditResultGet(BaseModel): | ||
| product_name: ProductName | ||
| credit_amount: Decimal = Field(..., description="") | ||
|
|
||
| model_config = ConfigDict( | ||
| json_schema_extra={ | ||
| "examples": [ | ||
| {"product_name": "s4l", "credit_amount": Decimal(15.5)}, # type: ignore[dict-item] | ||
| ] | ||
| } | ||
| ) | ||
|
|
||
|
|
||
| class ProductStripeInfoGet(BaseModel): | ||
| stripe_price_id: StripePriceID | ||
| stripe_tax_rate_id: StripeTaxRateID | ||
| model_config = ConfigDict( | ||
| json_schema_extra={ | ||
| "examples": [ | ||
| { | ||
| "stripe_price_id": "stripe-price-id", | ||
| "stripe_tax_rate_id": "stripe-tax-rate-id", | ||
| }, | ||
| ] | ||
| } | ||
| ) |
41 changes: 24 additions & 17 deletions
41
...e/src/simcore_postgres_database/errors.py β ...simcore_postgres_database/aiopg_errors.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
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.
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.