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

Support wildcards for getting repositories and snapshots #15151

Merged
merged 1 commit into from
Dec 11, 2015

Conversation

ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Dec 1, 2015

Supports the following:

GET /_snapshot/*
GET /_snapshot/repo*
GET /_snapshot/repo/*
GET /_snapshot/repo/prefix*

What is not supported:

GET /_snapshot/*/snap
GET /_snapshot/repo*/snap*

Relates to #4758

@dadoonet
Copy link
Member

dadoonet commented Dec 1, 2015

Wondering if it requires some documentation changes?

@ywelsch
Copy link
Contributor Author

ywelsch commented Dec 1, 2015

you're right, I'll add some docs.

@ywelsch
Copy link
Contributor Author

ywelsch commented Dec 1, 2015

@dadoonet I've added documentation. Could you review this PR?

@dadoonet dadoonet added the review label Dec 1, 2015
@@ -94,7 +94,8 @@ public void testRepositoryCreation() throws Exception {
assertThat(repositoriesMetaData.repository("test-repo-2").type(), equalTo("fs"));

logger.info("--> check that both repositories can be retrieved by getRepositories query");
GetRepositoriesResponse repositoriesResponse = client.admin().cluster().prepareGetRepositories().get();
Copy link
Member

Choose a reason for hiding this comment

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

Can we still test prepareGetRepositories() without any parameter? Unless we test it somewhere else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no parameter is tested in other places

@dadoonet
Copy link
Member

dadoonet commented Dec 1, 2015

Left a very small comment about test. It looks good to me. I'd prefer that @bleskes double checks though.

@imotov
Copy link
Contributor

imotov commented Dec 10, 2015

LGTM

@ywelsch ywelsch force-pushed the feature/get-snapshot-wildcards branch from 5bb9006 to db5594a Compare December 11, 2015 09:36
ywelsch pushed a commit that referenced this pull request Dec 11, 2015
Support wildcards for getting repositories and snapshots
@ywelsch ywelsch merged commit ce50fb4 into elastic:master Dec 11, 2015
ywelsch pushed a commit that referenced this pull request Dec 11, 2015
brwe added a commit to brwe/elasticsearch that referenced this pull request Dec 15, 2015
This was only introduced in 2.2 with elastic#15151 so we must not use
wildcards when running with 2.0 nodes.
pull bot pushed a commit to rogues-gallery/elasticsearch that referenced this pull request Jun 19, 2019
This commit adds multiple repositories support to get snapshots
request.
If some repository throws an exception this method does not fail fast
instead, it returns results for all repositories.
This PR is opened in favour of elastic#41799, because we decided to change
the response format in a non-BwC manner. It makes sense to read a
discussion of the aforementioned PR.
This is the continuation of work done here elastic#15151.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants