Skip to content

Commit

Permalink
fix(docworker): Fix inconsistencies in document context
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekSuchanek committed Sep 16, 2024
1 parent 191981d commit 9b98881
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/dsw-document-worker/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- Fixed inconsistencies in document context with metamodel version 14


## [4.10.5]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __init__(self, uuid, name, logo, integration_id, item_url, props,
self.id = integration_id # type: str
self.item_url = item_url # type: Optional[str]
self.logo = logo # type: Optional[str]
self.props = props # type: dict[str, str]
self.props = props # type: list[str]
self.type = integration_type # type: str
self.annotations = annotations # type: AnnotationsT

Expand Down Expand Up @@ -173,7 +173,7 @@ def default():
logo='',
integration_id='',
item_url='',
props={},
props=[],
rq_body='',
rq_method='GET',
rq_url='',
Expand Down Expand Up @@ -1588,7 +1588,7 @@ def __init__(self, uuid, first_name, last_name, gravatar_hash,
image_url, membership_type):
self.uuid = uuid # type: str
self.first_name = first_name # type: str
self.lastName = last_name # type: str
self.last_name = last_name # type: str
self.gravatar_hash = gravatar_hash # type: str
self.image_url = image_url # type: Optional[str]
self.membership_type = membership_type # type: str
Expand Down Expand Up @@ -1662,8 +1662,8 @@ def is_owner(self):

@staticmethod
def load(data: dict, **options):
return DocumentContextUserPermission(
user=UserGroup.load(data['group'], **options),
return DocumentContextUserGroupPermission(
group=UserGroup.load(data['group'], **options),
permissions=data['perms'],
)

Expand Down

0 comments on commit 9b98881

Please sign in to comment.