Skip to content

Commit c9be60f

Browse files
committed
Merge branch 'master' into refactor-gh-workflow-file
2 parents 9224e7a + e9bc718 commit c9be60f

File tree

6 files changed

+32
-2
lines changed

6 files changed

+32
-2
lines changed

packages/models-library/src/models_library/resource_tracker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class CreditClassification(StrAutoEnum):
5252

5353
class PricingPlanClassification(StrAutoEnum):
5454
TIER = auto()
55+
LICENSE = auto()
5556

5657

5758
class PricingInfo(BaseModel):
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""add LICENSE type to pricing plan
2+
3+
Revision ID: 4d007819e61a
4+
Revises: 38c9ac332c58
5+
Create Date: 2024-12-09 14:25:45.024814+00:00
6+
7+
"""
8+
import sqlalchemy as sa
9+
from alembic import op
10+
11+
# revision identifiers, used by Alembic.
12+
revision = "4d007819e61a"
13+
down_revision = "38c9ac332c58"
14+
branch_labels = None
15+
depends_on = None
16+
17+
18+
def upgrade():
19+
op.execute(sa.DDL("ALTER TYPE pricingplanclassification ADD VALUE 'LICENSE'"))
20+
21+
22+
def downgrade():
23+
# ### commands auto generated by Alembic - please adjust! ###
24+
pass
25+
# ### end Alembic commands ###

packages/postgres-database/src/simcore_postgres_database/models/resource_tracker_pricing_plans.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class PricingPlanClassification(str, enum.Enum):
1818
"""
1919

2020
TIER = "TIER"
21+
LICENSE = "LICENSE"
2122

2223

2324
resource_tracker_pricing_plans = sa.Table(

services/api-server/openapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6469,7 +6469,8 @@
64696469
"PricingPlanClassification": {
64706470
"type": "string",
64716471
"enum": [
6472-
"TIER"
6472+
"TIER",
6473+
"LICENSE"
64736474
],
64746475
"title": "PricingPlanClassification"
64756476
},

services/resource-usage-tracker/openapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@
378378
"PricingPlanClassification": {
379379
"type": "string",
380380
"enum": [
381-
"TIER"
381+
"TIER",
382+
"LICENSE"
382383
],
383384
"title": "PricingPlanClassification"
384385
},

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11432,6 +11432,7 @@ components:
1143211432
type: string
1143311433
enum:
1143411434
- TIER
11435+
- LICENSE
1143511436
title: PricingPlanClassification
1143611437
PricingPlanToServiceAdminGet:
1143711438
properties:

0 commit comments

Comments
 (0)