fix(backend): populate task runtime state in TaskStore scanRows. Fixes #13975 - #13976
fix(backend): populate task runtime state in TaskStore scanRows. Fixes #13975#13976jahnavigajjala-3 wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @jahnavigajjala-3. Thanks for your PR. I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
The Two formatting things. The indentation in There's also a leftover on State: model.RuntimeState(state.String), // <-- Add this lineOn coverage: every added expectation is |
Signed-off-by: jahnavigajjala3-commits <jahnavigajjala3@gmail.com>
73375b1 to
4caceed
Compare
|
@dobbydobap, Thanks for the detailed review! I've made changes accordingly,I'd appreciate another look when you have a chance |
|
Checked at Production diff is a clean |
Fixes #13975
Description
This PR fixes
TaskStore.scanRows()to correctly populate theTask.Statefield when reading task records from the database.Previously, the
Statecolumn was selected from the database but was not scanned into theTaskmodel. As a result, tasks returned byListTasks,GetTask, andpatchWithExistingTasksalways had an empty runtime state, even when a persisted state existed in the database.Changes
Statecolumn inTaskStore.scanRows().Task.Statefrom the scanned database value.Testing
Checklist