Skip to content

Add optional limit to searchimagescmd - #1332

Merged
KostyaSha merged 4 commits into
docker-java:masterfrom
jarebudev:add_optional_limit_to_searchimagescmd
Mar 10, 2020
Merged

Add optional limit to searchimagescmd#1332
KostyaSha merged 4 commits into
docker-java:masterfrom
jarebudev:add_optional_limit_to_searchimagescmd

Conversation

@jarebudev

@jarebudev jarebudev commented Feb 26, 2020

Copy link
Copy Markdown
Contributor

fixes #1323


This change is Reviewable

webResource = getBaseResource()
.path("/images/search")
.queryParam("term", command.getTerm())
.queryParam("limit", command.getLimit());

@KostyaSha KostyaSha Mar 8, 2020

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you can just add if check without duplication

I.e.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks @KostyaSha, have made change

@codecov-io

codecov-io commented Mar 8, 2020

Copy link
Copy Markdown

Codecov Report

Merging #1332 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1332   +/-   ##
=======================================
  Coverage   93.75%   93.75%           
=======================================
  Files           1        1           
  Lines          16       16           
=======================================
  Hits           15       15           
  Misses          1        1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49d8e29...3bc9182. Read the comment docs.


if (command.getLimit() != null) {
webResource = webResource.queryParam("limit", command.getLimit());

@KostyaSha KostyaSha Mar 9, 2020

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pls remove empty line

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i think i can manage that :)

@KostyaSha KostyaSha added this to the 3.2.1 milestone Mar 10, 2020
@KostyaSha
KostyaSha merged commit a180a01 into docker-java:master Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SearchImagesCmd should support setting a limit

3 participants