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(snapshot): Cleanly handle empty snapshots #743

Merged
merged 56 commits into from
Dec 9, 2021
Merged

fix(snapshot): Cleanly handle empty snapshots #743

merged 56 commits into from
Dec 9, 2021

Conversation

hareetd
Copy link
Contributor

@hareetd hareetd commented Nov 2, 2021

@hareetd hareetd added the fix label Nov 2, 2021
@andrewazores
Copy link
Member

Nice work here so far. This is exactly how I would have done it.

@hareetd
Copy link
Contributor Author

hareetd commented Nov 2, 2021

Thanks, once tests are updated I'll open it up for a full review.

@hareetd
Copy link
Contributor Author

hareetd commented Nov 29, 2021

This PR should be ready to go with just a couple of tweaks.

The first issue is that when an empty Snapshot is created and subsequently deleted, the user shouldn't receive any recording creation or deletion notifications. I was able to separate the recording deletion notification process from the empty Snapshot handling but when it comes to the creation notification it looks like I'll have to change the API handling for Snapshot creation in Api.service.tsx on the frontend.

The second issue is that the -web PR I submitted to display a warning for empty Snapshots (cryostatio/cryostat-web#329) is outdated now. The warning modal should instead say something along the lines of "Snapshot failed to create....".

I'll open a -web issue to take care of those. Feel free to review this PR whenever you have time as the only remaining change will be to bump the web client version once the -web issue is resolved.

@hareetd hareetd marked this pull request as ready for review November 29, 2021 23:53
@hareetd hareetd marked this pull request as draft December 1, 2021 01:53
@hareetd hareetd marked this pull request as ready for review December 7, 2021 00:28
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2021

🎉 Great news! Looks like all the dependencies have been resolved:

💡 To add or remove a dependency please update this issue/PR description.

Brought to you by Dependent Issues (:robot: ). Happy coding!

@andrewazores
Copy link
Member

Please add a commit updating the web-client submodule as well now that the relevant frontend feature PR has been merged.

Hareet Dhillon added 26 commits December 8, 2021 18:13
…ception-wrapped ConnectionException due to an invalid target
…dd a javadoc comment for proper usage of snapshotIsReadable(...)
….lang.IllegalStateException: Response head already sent'
@hareetd hareetd requested a review from andrewazores December 9, 2021 18:28
Copy link
Member

@andrewazores andrewazores left a comment

Choose a reason for hiding this comment

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

Great work here, thanks

@andrewazores andrewazores merged commit 059e6de into cryostatio:main Dec 9, 2021
@hareetd hareetd deleted the cleanly-handle-empty-snapshots branch December 9, 2021 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cleanly handle Snapshots taken when there is no source data
2 participants