Skip to content

Allow filtering by event type - #1367

Merged
bsideup merged 19 commits into
docker-java:masterfrom
trajano:patch-2
Jun 4, 2020
Merged

bsideup merged 19 commits into
docker-java:masterfrom
trajano:patch-2

Conversation

@trajano

@trajano trajano commented Apr 16, 2020 •

Copy link
Copy Markdown
Contributor

Since there's additional event types in the spec that were added in #1366 this allows filtering of the events being streamed.

This also adds the filter to the EventCmd

@trajano

trajano commented Apr 17, 2020

Copy link
Copy Markdown
Contributor Author

This seems to be failing in Netty https://travis-ci.com/github/docker-java/docker-java/jobs/320226609

@bsideup

bsideup commented May 23, 2020

Copy link
Copy Markdown
Member

@trajano please sync with the latest master

Comment thread docker-java-api/src/main/java/com/github/dockerjava/api/command/EventsCmd.java Outdated
Comment thread docker-java-api/src/main/java/com/github/dockerjava/api/command/EventsCmd.java Outdated
Comment thread docker-java-api/src/main/java/com/github/dockerjava/api/command/EventsCmd.java Outdated
bsideup and others added 6 commits May 24, 2020 10:30
…d/EventsCmd.java

Co-authored-by: Sergei Egorov <bsideup@gmail.com>
…d/EventsCmd.java

Co-authored-by: Sergei Egorov <bsideup@gmail.com>
…/FiltersBuilder.java

Co-authored-by: Sergei Egorov <bsideup@gmail.com>
…/FiltersBuilder.java

Co-authored-by: Sergei Egorov <bsideup@gmail.com>
@bsideup

bsideup commented May 25, 2020

Copy link
Copy Markdown
Member

@trajano sorry, it seems that I closed my tab with "please add tests" comment without sending it 😅
Could you, please?

@trajano

trajano commented May 25, 2020

Copy link
Copy Markdown
Contributor Author

I think that's beyond my knowledge of the code base to do that. But feel free to take over from here.

@bsideup

bsideup commented May 25, 2020

Copy link
Copy Markdown
Member

@trajano just have a look at EventsCmdIT, you can basically copy EventsCmdIT#testEventStreamingWithFilter :)

Archimedes Trajano and others added 2 commits June 3, 2020 07:37
Comment thread docker-java/src/test/java/com/github/dockerjava/cmd/EventsCmdIT.java Outdated
Comment thread docker-java/src/test/java/com/github/dockerjava/cmd/EventsCmdIT.java Outdated
Comment thread docker-java/src/test/java/com/github/dockerjava/cmd/EventsCmdIT.java Outdated
Comment thread docker-java/src/test/java/com/github/dockerjava/cmd/EventsCmdIT.java Outdated
@bsideup

bsideup commented Jun 4, 2020

Copy link
Copy Markdown
Member

@trajano looks good! Will merge once CI is green 👍

@bsideup bsideup added this to the next milestone Jun 4, 2020
@bsideup
bsideup merged commit c285fe5 into docker-java:master Jun 4, 2020
@trajano
trajano deleted the patch-2 branch June 4, 2020 11:26
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.

2 participants