Skip to content

Commit

Permalink
@odeimaiz review: deprecated inclusion rules
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Dec 10, 2024
1 parent b836ab0 commit eb6071d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class GroupGet(OutputSchema):
dict[str, str],
Field(
default_factory=dict,
description="Maps user's column and regular expression",
alias="inclusionRules",
deprecated=True,
),
] = DEFAULT_FACTORY

Expand All @@ -84,9 +84,8 @@ def from_model(cls, group: Group, access_rights: AccessRightsDict) -> Self:
"name",
"description",
"thumbnail",
"inclusion_rules",
},
exclude={"access_rights"},
exclude={"access_rights", "inclusion_rules"},
exclude_unset=True,
by_alias=False,
),
Expand Down Expand Up @@ -125,7 +124,6 @@ def from_model(cls, group: Group, access_rights: AccessRightsDict) -> Self:
"label": "SPARCi",
"description": "Stimulating Peripheral Activity to Relieve Conditions",
"thumbnail": "https://placekitten.com/15/15",
"inclusionRules": {"email": r"@(sparc)+\.(io|com|us)$"},
"accessRights": {"read": True, "write": True, "delete": True},
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9874,7 +9874,7 @@ components:
type: string
type: object
title: Inclusionrules
description: Maps user's column and regular expression
deprecated: true
type: object
required:
- gid
Expand Down

0 comments on commit eb6071d

Please sign in to comment.