Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Upgrade to v1 of the genomics API. #89

Merged
merged 3 commits into from
Apr 27, 2016
Merged

Conversation

deflaux
Copy link
Contributor

@deflaux deflaux commented Apr 27, 2016

No description provided.

@@ -203,9 +204,9 @@ private Datasets(Genomics genomics) {
super(genomics);
}

@Override Genomics.Datasets.List createSearch(Genomics.Datasets api, Long request,
@Override Genomics.Datasets.List createSearch(Genomics.Datasets api, String request,
Copy link
Contributor

Choose a reason for hiding this comment

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

request -> projectId

Same for createSearch()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@melissachang I renamed it. createSearch exists many times in that file though. Can you PTAL and let me know if I understood you correctly?

Copy link
Contributor

Choose a reason for hiding this comment

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

I was referring to Paginator.java line 280. But looking closer at the code, the argument passed into operations.list isn't used for anything. How about something like this?

@Override Genomics.Operations.List createSearch(Genomics.Operations api, 
      Optional<String> pageToken) throws IOException {                Optional<String> pageToken) throws IOException {
   return api.search(pageToken       +      return pageToken.isPresent() ? api.list(request).setPageToken(pageToken.get())
       .transform(       +          : api.list("unused argument");

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@melissachang
Copy link
Contributor

LGTM

@deflaux deflaux merged commit 7b479e7 into googlegenomics:master Apr 27, 2016
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

3 participants