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 project watch resourceversion=0 #8755

Merged
merged 2 commits into from
May 5, 2016

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented May 5, 2016

Passing resourceVersion=0 now gives you a full list of all your projects.

Also stops sending repeat modified events for projects we've already seen. I haven't stopped the re-evaluation in the project cache itself, only the emission of those events. Something in there is still recalculating more than we'd like.

@openshift/api-review I think we've agreed on the API change already
@Kargakis you've reviewed this area before. Up for another?

}

w.emit(watch.Event{
Type: watch.Added,
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this watch isn't normal but is this what happens in normal watches? We get only Added events up to the point we start watching?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know this watch isn't normal but is this what happens in normal watches? We get only Added events up to the point we start watching?

After it finishes sending the adds, it will drop into the "normal" operation loop below where it will continue the watch after its initial list.

I'm pretty sure that it only gives Add events with the current state of the object instead of every individual add/modify/remove. @liggitt care to confirm or deny? Even if it did, that information isn't available here, so its the best we can do.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, "ADD" with current state, not full history

@0xmichalis
Copy link
Contributor

One comment, lgtm otherwise

@deads2k
Copy link
Contributor Author

deads2k commented May 5, 2016

[merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented May 5, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/3621/) (Image: devenv-rhel7_4113)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to d37235b

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to d37235b

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/3621/)

@openshift-bot openshift-bot merged commit d48ee4a into openshift:master May 5, 2016
@deads2k deads2k deleted the fix-watch-0 branch September 6, 2016 17:13
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