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

feat(app): clone run with CSV file IDs #15550

Merged
merged 4 commits into from
Jul 1, 2024

Conversation

ncdiehl11
Copy link
Collaborator

@ncdiehl11 ncdiehl11 commented Jun 28, 2024

Closes AUTH-457

Overview

When cloning a run, we scrape runtime parameter values from the cloned run and pass along non-default runtime parameters as overrides to the new run. We need to mirror this functionality for CSV runtime parameters by passing file IDs associated with a previous run when cloning the run.

Test Plan

Difficult to test right now without backend accepting CSV runtime parameter values at /runs and /protocols. Please view updated test file useCloneRun.test.tsx

Changelog

  • update getRunTimeParameterValues util function to check for file ID associated with csv_file type runtime parameters
  • implement updated function in ChooseProtocolSlideout and ChooseRobotToRunProtocolSlideout
  • write tests

Risk assessment

low-medium

When cloning a run, we scrape runtime parameter values from the cloned run and pass along
non-default runtime parameters as overrides to the new run. We need to mirror this functionality for
CSV runtime parameters by passing file IDs associated with a previous run when cloning the run.

AUTH-457
@ncdiehl11 ncdiehl11 requested review from koji and jerader June 28, 2024 18:57
@ncdiehl11 ncdiehl11 marked this pull request as ready for review June 28, 2024 18:57
@ncdiehl11 ncdiehl11 requested a review from a team as a code owner June 28, 2024 18:57
@ncdiehl11 ncdiehl11 requested a review from a team as a code owner July 1, 2024 15:32
Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

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

the changes look good.

@ncdiehl11 ncdiehl11 merged commit 0dc6328 into edge Jul 1, 2024
22 checks passed
aaron-kulkarni pushed a commit that referenced this pull request Jul 3, 2024
Closes AUTH-457

When cloning a run, we scrape runtime parameter values from the cloned
run and pass along non-default runtime parameters as overrides to the
new run. We need to mirror this functionality for CSV runtime parameters
by passing file IDs associated with a previous run when cloning the run.
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.

2 participants