Skip to content

Commit

Permalink
fix(Datasets): use dataset last version to track update (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheikhgwane authored Jun 27, 2024
1 parent a6e7125 commit 9550577
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hexa/datasets/schema/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ def resolve_dataset_permissions(obj: Dataset, info, **kwargs):
return obj


@dataset_object.field("updatedAt")
def resolve_dataset_updated_at(obj: Dataset, info, **kwargs):
return (
max(obj.updated_at, obj.latest_version.updated_at)
if obj.latest_version
else obj.updated_at
)


@dataset_link_object.field("permissions")
def resolve_dataset_link_permissions(obj: DatasetLink, info, **kwargs):
return obj
Expand Down

0 comments on commit 9550577

Please sign in to comment.