Skip to content

Commit

Permalink
differ in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducica committed Feb 14, 2025
1 parent 6e68c19 commit a8d2409
Show file tree
Hide file tree
Showing 3 changed files with 1,283 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oarepo_ui/resources/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ def _detail(self, *, is_preview=False):
view_args=resource_requestctx.view_args,
)
record_versions = self.api_service.search_versions(g.identity, api_record.id)
previous_version_json = json.dumps(next(record_versions.hits)["metadata"])
current_version_json = json.dumps(api_record.to_dict()["metadata"])
previous_version_json = json.dumps(next(record_versions.hits))
current_version_json = json.dumps(api_record.to_dict())

# TODO: handle permissions UI way - better response than generic error
record = self.config.ui_serializer.dump_obj(api_record.to_dict())
Expand Down
Loading

0 comments on commit a8d2409

Please sign in to comment.