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

Async Samples Cloning #904

Merged
merged 7 commits into from
Jan 17, 2025
Merged

Async Samples Cloning #904

merged 7 commits into from
Jan 17, 2025

Conversation

ericenns
Copy link
Member

@ericenns ericenns commented Jan 17, 2025

What does this PR do and why?

Describe in detail what your merge request does and why.

Updates Projects::Samples::CloneController to enqueue a new Samples::CloneJob which calls the existing Samples::CloneService to perform the queueing and the new job uses Turbo broadcasts to update the UI with success or errors.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other pull requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Ensure that samples cloning works as expected, e.g. displays errors when unsuccessful, and success messages when successful.

PR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

…se turbo streams to refresh the ui once clone is complete
@ericenns ericenns self-assigned this Jan 17, 2025

This comment has been minimized.

This comment has been minimized.

Copy link

Code Metrics Report

Coverage Test Execution Time
92.7% 9m57s

Code coverage of files in pull request scope (100.0%)

Files Coverage
app/controllers/projects/samples/clones_controller.rb 100.0%
app/jobs/samples/clone_job.rb 100.0%
app/views/projects/samples/clones/_dialog.html.erb 100.0%
app/views/projects/samples/clones/create.turbo_stream.erb 100.0%
app/views/projects/samples/shared/_success.html.erb 100.0%

Reported by octocov

Copy link
Contributor

@deepsidhu85 deepsidhu85 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@deepsidhu85 deepsidhu85 merged commit 67ea740 into main Jan 17, 2025
4 checks passed
@deepsidhu85 deepsidhu85 deleted the async_samples_cloning branch January 17, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants