Skip to content

Commit eb6071d

Browse files
committed
@odeimaiz review: deprecated inclusion rules
1 parent b836ab0 commit eb6071d

File tree

2 files changed

+3
-5
lines changed
  • packages/models-library/src/models_library/api_schemas_webserver
  • services/web/server/src/simcore_service_webserver/api/v0

2 files changed

+3
-5
lines changed

packages/models-library/src/models_library/api_schemas_webserver/groups.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class GroupGet(OutputSchema):
6767
dict[str, str],
6868
Field(
6969
default_factory=dict,
70-
description="Maps user's column and regular expression",
7170
alias="inclusionRules",
71+
deprecated=True,
7272
),
7373
] = DEFAULT_FACTORY
7474

@@ -84,9 +84,8 @@ def from_model(cls, group: Group, access_rights: AccessRightsDict) -> Self:
8484
"name",
8585
"description",
8686
"thumbnail",
87-
"inclusion_rules",
8887
},
89-
exclude={"access_rights"},
88+
exclude={"access_rights", "inclusion_rules"},
9089
exclude_unset=True,
9190
by_alias=False,
9291
),
@@ -125,7 +124,6 @@ def from_model(cls, group: Group, access_rights: AccessRightsDict) -> Self:
125124
"label": "SPARCi",
126125
"description": "Stimulating Peripheral Activity to Relieve Conditions",
127126
"thumbnail": "https://placekitten.com/15/15",
128-
"inclusionRules": {"email": r"@(sparc)+\.(io|com|us)$"},
129127
"accessRights": {"read": True, "write": True, "delete": True},
130128
},
131129
]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9874,7 +9874,7 @@ components:
98749874
type: string
98759875
type: object
98769876
title: Inclusionrules
9877-
description: Maps user's column and regular expression
9877+
deprecated: true
98789878
type: object
98799879
required:
98809880
- gid

0 commit comments

Comments
 (0)