Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework predicates in TransportGetSnapshotsAction #79517

Conversation

DaveCTurner
Copy link
Contributor

SnapshotPredicate and SnapshotPredicates do almost the same thing
and the way that the SnapshotPredicates is constructed is quite
convoluted. This commit combines the two classes into one and simplifies
the construction logic.

Relates #79341

`SnapshotPredicate` and `SnapshotPredicates` do almost the same thing
and the way that the `SnapshotPredicates` is constructed is quite
convoluted. This commit combines the two classes into one and simplifies
the construction logic.

Relates elastic#79341
@DaveCTurner DaveCTurner added >non-issue :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v8.0.0 v7.16.1 labels Oct 19, 2021
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Oct 19, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Member

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM, looks so much nicer now thanks! :)

@DaveCTurner DaveCTurner merged commit 965b2df into elastic:master Oct 20, 2021
@DaveCTurner DaveCTurner deleted the 2021-10-19-refactor-get-snapshots-predicates branch October 20, 2021 12:15
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

DaveCTurner added a commit that referenced this pull request Oct 20, 2021
`SnapshotPredicate` and `SnapshotPredicates` do almost the same thing
and the way that the `SnapshotPredicates` is constructed is quite
convoluted. This commit combines the two classes into one and simplifies
the construction logic.

Relates #79341
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v7.16.0 v8.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants