Skip to content

Conversation

@longshuicy
Copy link
Member

@longshuicy longshuicy commented Jul 2, 2024

This PR add the correct "update" flag to places where elasticsearch entry already existed.
Fixed a bug related to "update dataset metadata".
Fixed a few parameters to its correct data type e.g. DatasetOut, FileOut

@longshuicy longshuicy marked this pull request as ready for review July 2, 2024 19:49
@longshuicy longshuicy requested a review from max-zilla as a code owner July 2, 2024 19:49
@longshuicy longshuicy changed the title make sure when updating fields of existing es entry use the update flag Use the update flag when updating fields of existing Elasticsearch entry Jul 2, 2024
return await patch_metadata(md, content, es)
patched_metadata = await patch_metadata(md, content, es)
await index_dataset(es, DatasetOut(**dataset.dict()), update=True)
return patched_metadata
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a bug here. The metadata is updated after indexing hence the updated metadata never reflected

@longshuicy longshuicy requested review from ddey2, lmarini and tcnichol July 2, 2024 20:01
@longshuicy longshuicy self-assigned this Jul 2, 2024
Copy link
Member

@ddey2 ddey2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. Good catch for the bug!

@lmarini lmarini merged commit ced3e15 into main Jul 17, 2024
@lmarini lmarini deleted the 1122-index-file-update-flag-need-to-be-specifically-set-to-true-in-the-put-endpoint branch July 17, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

index file update flag need to be specifically set to true in the PUT endpoint

4 participants