Skip to content

Commit

Permalink
Merge pull request #49 from tilde-lab/fix_data_source_ids
Browse files Browse the repository at this point in the history
fix(MetisAPI): match *data_source_ids* to *data_sources*
  • Loading branch information
blokhin authored Feb 12, 2024
2 parents 01684da + 03cb8d9 commit c41bb99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions metis_client/namespaces/v0_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MetisCollectionsCreateKwargs(TypedDict):
"MetisV0CollectionsNamespace.create kwargs"
id: NotRequired[int]
description: NotRequired[str]
data_source_ids: NotRequired[Sequence[int]]
data_sources: NotRequired[Sequence[int]]
user_ids: NotRequired[Sequence[int]]
visibility: NotRequired[MetisCollectionVisibility]

Expand All @@ -36,7 +36,7 @@ async def create_event(
title=title,
type_id=type_id,
description=opts.get("description", ""),
data_sources=opts.get("data_source_ids", []),
data_sources=opts.get("data_sources", []),
users=opts.get("user_ids", []),
visibility=opts.get("visibility", "private"),
)
Expand Down
2 changes: 1 addition & 1 deletion tests/namespaces/test_v0_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ async def test_create_collection(
"type_id": type_id,
"title": PATH_C_PUT_PAYLOAD["title"],
"description": PATH_C_PUT_PAYLOAD["description"],
"data_source_ids": PATH_C_PUT_PAYLOAD["data_sources"],
"data_sources": PATH_C_PUT_PAYLOAD["data_sources"],
"user_ids": PATH_C_PUT_PAYLOAD["users"],
"visibility": PATH_C_PUT_PAYLOAD["visibility"],
}
Expand Down

0 comments on commit c41bb99

Please sign in to comment.