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

Feature: Implement experiment run name update functionality #4098

Merged
merged 5 commits into from
Sep 21, 2023

Conversation

gustavoteixeirah
Copy link

@gustavoteixeirah gustavoteixeirah commented Sep 21, 2023

Added functionality to update the name of an experiment run by modifying the methods in FutureExperimentRunServiceImpl and FutureExperimentRunDAO classes. The changes permit the updating of the experiment run name in the database. This functionality was implemented in response to the need for modification of experiment run details after their creation. Also, optimized the import statements in FutureExperimentRunDAO class for better readability and maintenance.

Impact and Context

Risks and Area of Effect

  • Is this a breaking change?

Testing

  • Unit test
  • Deployed to dev env
  • Other (explain)

Reverting

  • Contains Migration - Do Not Revert

Added functionality to update the name of an experiment run by modifying the methods in FutureExperimentRunServiceImpl and FutureExperimentRunDAO classes. The changes permit the updating of the experiment run name in the database. This functionality was implemented in response to the need for modification of experiment run details after their creation. Also, optimized the import statements in FutureExperimentRunDAO class for better readability and maintenance.
@github-actions
Copy link

Common Code Coverage

Overall Project 15.01% 🍏

There is no coverage information present for the Files changed

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Backend Code Coverage

Overall Project 61.37% -0.01% 🍏
Files changed 94.05% 🍏

File Coverage
FutureExperimentRunDAO.java 92.87% -0.12% 🍏
FutureExperimentRunServiceImpl.java 76.43% 🍏

Implemented new methods updateModifiedTimestampV2 and
updateVersionNumberV2 in FutureExperimentRunDAO for update operation of
experiment run name. Refactored updateExperimentRunName method to use
the new implementations. Optimal import statements also added as part of
readability improvement. Aim is to provide efficient way of updating
experiment run name after creation.
@jkwatson-verta
Copy link
Contributor

needs a unit test, and simplify the update into a single sql update, and this should be fine

Gustavo Teixeira added 2 commits September 21, 2023 19:24
Added validation in FutureExperimentRunServiceImpl to ensure that the
experiment run's name is not blank. An exception is thrown if a name
argument isn't present when updating the experiment run's name. To
ensure the proper implementation, added corresponding tests in
ExperimentRunTest to verify correct results and the absence of any
exceptions when the name is properly updated. Also tested the scenario
when the name argument is missing.
Incremented the version number each time the name of the experiment run
is updated. This enhancement was done to track the changes in the name
over time. Removed unneeded methods `updateModifiedTimestampV2` and
`updateVersionNumberV2` as the changes are handled within the `UPDATE`
sql statement. Verified these changes in the `ExperimentRunTest` by
asserting that the version number increases by one after a name update.
Copy link
Contributor

@jkwatson-verta jkwatson-verta left a comment

Choose a reason for hiding this comment

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

:shipit:

@gustavoteixeirah gustavoteixeirah merged commit d83f316 into main Sep 21, 2023
1 check passed
@gustavoteixeirah gustavoteixeirah deleted the teixeira/update-er-name branch September 21, 2023 22:47
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.

2 participants