forked from ITISFoundation/osparc-simcore
-
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.
merge master into add-getters-for-pricing-plan-and-unit
- Loading branch information
Showing
188 changed files
with
4,895 additions
and
2,202 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1071,7 +1071,7 @@ jobs: | |
with: | ||
version: ${{ matrix.docker_buildx }} | ||
driver: docker-container | ||
- uses: actions/[email protected].0 | ||
- uses: actions/[email protected].1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: "npm" | ||
|
@@ -1993,7 +1993,7 @@ jobs: | |
python-version: ${{ matrix.python }} | ||
cache: "pip" | ||
cache-dependency-path: "tests/e2e/requirements/requirements.txt" | ||
- uses: actions/[email protected].0 | ||
- uses: actions/[email protected].1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: "npm" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
from ._base import InputSchema, OutputSchema | ||
|
||
|
||
class CreditPriceGet(OutputSchema): | ||
class GetCreditPrice(OutputSchema): | ||
product_name: str | ||
usd_per_credit: NonNegativeDecimal | None = Field( | ||
..., | ||
|
@@ -26,18 +26,40 @@ class Config(OutputSchema.Config): | |
} | ||
|
||
|
||
class GetProduct(OutputSchema): | ||
name: ProductName | ||
display_name: str | ||
short_name: str | None = Field( | ||
default=None, description="Short display name for SMS" | ||
) | ||
|
||
vendor: dict | None = Field(default=None, description="vendor attributes") | ||
issues: list[dict] | None = Field( | ||
default=None, description="Reference to issues tracker" | ||
) | ||
manuals: list[dict] | None = Field(default=None, description="List of manuals") | ||
support: list[dict] | None = Field( | ||
default=None, description="List of support resources" | ||
) | ||
|
||
login_settings: dict | ||
max_open_studies_per_user: PositiveInt | None | ||
is_payment_enabled: bool | ||
credits_per_usd: NonNegativeDecimal | None | ||
|
||
|
||
class GenerateInvitation(InputSchema): | ||
guest: LowerCaseEmailStr | ||
trial_account_days: PositiveInt | None = None | ||
extra_credits: PositiveInt | None = None | ||
extra_credits_in_usd: PositiveInt | None = None | ||
|
||
|
||
class InvitationGenerated(OutputSchema): | ||
product_name: ProductName | ||
issuer: LowerCaseEmailStr | ||
guest: LowerCaseEmailStr | ||
trial_account_days: PositiveInt | None = None | ||
extra_credits: PositiveInt | None = None | ||
extra_credits_in_usd: PositiveInt | None = None | ||
created: datetime | ||
invitation_link: HttpUrl | ||
|
||
|
@@ -49,7 +71,7 @@ class Config(OutputSchema.Config): | |
"issuer": "[email protected]", | ||
"guest": "[email protected]", | ||
"trialAccountDays": 7, | ||
"extraCredits": 30, | ||
"extraCreditsInUsd": 30, | ||
"created": "2023-09-27T15:30:00", | ||
"invitationLink": "https://example.com/invitation#1234", | ||
}, | ||
|
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
32 changes: 32 additions & 0 deletions
32
...tgres_database/migration/versions/5c62b190e124_migration_of_aws_ec2_instances_data_in_.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""migration of aws_ec2_instances data in pricing units | ||
Revision ID: 5c62b190e124 | ||
Revises: 7777d181dc1f | ||
Create Date: 2023-10-17 05:15:29.780925+00:00 | ||
""" | ||
from alembic import op | ||
from simcore_postgres_database.models.resource_tracker_pricing_units import ( | ||
resource_tracker_pricing_units, | ||
) | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "5c62b190e124" | ||
down_revision = "7777d181dc1f" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# One time migration to populate specific info with some reasonable value, it will be changed manually based on concrete needs | ||
op.execute( | ||
resource_tracker_pricing_units.update().values( | ||
specific_info={"aws_ec2_instances": ["t3.medium"]} | ||
) | ||
) | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### |
Oops, something went wrong.