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

fix(labels): Prevent duplicate labels POST call #424

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

jan-law
Copy link
Contributor

@jan-law jan-law commented Apr 27, 2022

Fixes #409 - the target.target() Observable in postTargetRecordingMetadata seemed to be firing twice.

I also noticed the metadata labels notification subscription didn't check if the notification applied to the selected target. Added a check to prevent unnecessary computation when receiving metadata label notifications.

This fix prevents an error toast from popping up but leaves the state otherwise unchanged. Up to you if you want to backport it.

@andrewazores andrewazores merged commit 5a9b7be into cryostatio:main Apr 27, 2022
mergify bot pushed a commit that referenced this pull request Apr 27, 2022
* fix(labels): Prevent duplicate labels POST call

* Refresh labels only for same target

(cherry picked from commit 5a9b7be)
@jan-law jan-law deleted the double-labels-post branch April 27, 2022 21:21
andrewazores pushed a commit that referenced this pull request Apr 27, 2022
* fix(labels): Prevent duplicate labels POST call

* Refresh labels only for same target

(cherry picked from commit 5a9b7be)

Co-authored-by: Janelle Law <jalaw@redhat.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.

Active recordings table attempts to save labels twice after switching targets
2 participants