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

[ui] Bugfix: prevent parent job from showing another job's dispatches when it has none #24668

Merged

Conversation

philrenaud
Copy link
Contributor

Resolves #24666

We had a bug where our watchChildJobs ember concurrency task (which kicks off whenever you hit a parameterized/periodic parent job route) would have a memoized list of childjobs from whenever it was last run. These components are not route-bound, and so don't shed data automatically when their route changes, and since we don't return a [] on /statuses with an ?index=1 parameter, but instead hold the blocking query open for further updates, we don't get any kind of "Clear what the app has in cache" signal.

This explicitly clears what the app has in cache on parent job route load.

@philrenaud philrenaud self-assigned this Dec 13, 2024
@philrenaud philrenaud linked an issue Dec 13, 2024 that may be closed by this pull request
@philrenaud philrenaud force-pushed the 24666-in-the-ui-one-job-displays-the-job-launches-of-another branch from 5c79ee8 to 9d77d2e Compare December 13, 2024 23:23
@philrenaud philrenaud marked this pull request as ready for review December 13, 2024 23:23
@philrenaud philrenaud requested review from a team as code owners December 13, 2024 23:24
@philrenaud philrenaud added the backport/1.9.x backport to 1.9.x release line label Dec 13, 2024
@philrenaud philrenaud requested review from mismithhisler and removed request for gulducat December 17, 2024 14:30
Copy link
Member

@mismithhisler mismithhisler 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

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

LGTM!

@philrenaud philrenaud merged commit 7746f29 into main Dec 17, 2024
23 checks passed
@philrenaud philrenaud deleted the 24666-in-the-ui-one-job-displays-the-job-launches-of-another branch December 17, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.9.x backport to 1.9.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In the UI, one job displays the job launches of another
3 participants