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

Migrate to non-deprecated functions of api/types/filters #1237

Merged

Conversation

vdemeester
Copy link
Collaborator

  • Use Contains instead of Include
  • Use ToJSON instead of ToParam
  • Remove usage of ParseFlag as it is deprecated too

See https://godoc.org/github.com/docker/docker/api/types/filters for Deprecated methods.

Signed-off-by: Vincent Demeester vincent@sbr.pm

- Use `Contains` instead of `Include`
- Use `ToJSON` instead of `ToParam`
- Remove usage of `ParseFlag` as it is deprecated too

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
@vdemeester vdemeester force-pushed the use-non-deprecated-filters-funcs branch from 88cdacf to 55edeb4 Compare July 27, 2018 13:37
@codecov-io
Copy link

codecov-io commented Jul 27, 2018

Codecov Report

Merging #1237 into master will decrease coverage by 0.01%.
The diff coverage is 7.14%.

@@            Coverage Diff             @@
##           master    #1237      +/-   ##
==========================================
- Coverage   54.25%   54.23%   -0.02%     
==========================================
  Files         268      268              
  Lines       17799    17805       +6     
==========================================
  Hits         9656     9656              
- Misses       7536     7542       +6     
  Partials      607      607

Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
Copy link
Member

screen shot 2018-07-27 at 15 44 01

Needs 42.86% more coverage :trollface:

@vdemeester vdemeester merged commit edfd623 into docker:master Jul 27, 2018
@GordonTheTurtle GordonTheTurtle added this to the 18.09.0 milestone Jul 27, 2018
@vdemeester vdemeester deleted the use-non-deprecated-filters-funcs branch July 27, 2018 14:47
selansen pushed a commit to selansen/cli that referenced this pull request Jul 29, 2018
…ters-funcs

Migrate to non-deprecated functions of `api/types/filters`
selansen pushed a commit to selansen/cli that referenced this pull request Jul 29, 2018
…ters-funcs

Migrate to non-deprecated functions of `api/types/filters`

Signed-off-by: selansen <elango.siva@docker.com>
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.

5 participants