Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Batch update meta records #1442

Merged
merged 11 commits into from
Aug 30, 2019
Merged

Batch update meta records #1442

merged 11 commits into from
Aug 30, 2019

Conversation

replay
Copy link
Contributor

@replay replay commented Aug 27, 2019

This adds an API endpoint to batch update all meta records. It also allows the user to specify a propagate flag, which makes MT fan out the update to all known peers. This is useful for users who want to first pre-generate all their meta records, and then completely replace the currently active set of records with the new generated one.

Additionally this PR cleans up the meta tags feature gate a bit. The MetaTagSupport flag exists in two packages, in idx.memory and expr.tagquery. Previously there were unnecessary cross-references between those two packages, which have been cleaned up now.

api/models/meta_records.go Outdated Show resolved Hide resolved
api/models/meta_records.go Outdated Show resolved Hide resolved
docs/http-api.md Outdated Show resolved Hide resolved
docs/http-api.md Outdated Show resolved Hide resolved
docs/http-api.md Outdated Show resolved Hide resolved
docs/http-api.md Outdated Show resolved Hide resolved
docs/http-api.md Outdated Show resolved Hide resolved
idx/idx.go Outdated Show resolved Hide resolved
Copy link
Contributor

@robert-milan robert-milan left a comment

Choose a reason for hiding this comment

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

LGTM

- formatting of docs
- return correct count of deleted records on swap
@replay replay merged commit d3f97fc into master Aug 30, 2019
@replay replay deleted the batch_update_meta_records branch August 30, 2019 15:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants