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(dal,sdf): Close and Put On hold actions v2 endpoints #3764

Conversation

vbustamante
Copy link
Contributor

@vbustamante vbustamante commented May 10, 2024

  • Close actions by deleting them from the graph
  • put actions on hold by updating the status
  • send all actions to frontend instead of just enqueued ones
  • fix some issues in the actions_v2 tests

@github-actions github-actions bot added A-sdf Area: Primary backend API service [Rust] A-dal A-web A-dal-test labels May 10, 2024
workspace_snapshot.get_node_weight(prototype_idx).await?
else {
continue;
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was breaking component creation when they had both new and old creation actions

| ActionState::Failed
| ActionState::OnHold => return Err(ActionError::InvalidOnHoldTransition(request.id)),
ActionState::Queued => {}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Likewise for these ones - are these conditions correct?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think putting a Failed action on hold makes sense. It would effectively be re-queueing it immediately into the On Hold state.

@vbustamante vbustamante force-pushed the victor/eng-2546-create-sdf-enpoint-that-onholds-actions-with-a-task-id-and-a branch from 9a3e7e7 to 7493a90 Compare May 10, 2024 23:23
@paulocsanz paulocsanz force-pushed the victor/eng-2546-create-sdf-enpoint-that-onholds-actions-with-a-task-id-and-a branch from 99db381 to 41659d9 Compare May 13, 2024 17:43
@paulocsanz paulocsanz force-pushed the victor/eng-2546-create-sdf-enpoint-that-onholds-actions-with-a-task-id-and-a branch from 41659d9 to 8f698e5 Compare May 13, 2024 17:51
@paulocsanz paulocsanz force-pushed the victor/eng-2546-create-sdf-enpoint-that-onholds-actions-with-a-task-id-and-a branch 2 times, most recently from 982e67e to e62f7fe Compare May 14, 2024 16:34
@paulocsanz
Copy link
Contributor

bors try

si-bors-ng bot added a commit that referenced this pull request May 14, 2024
@si-bors-ng
Copy link
Contributor

si-bors-ng bot commented May 14, 2024

try

Build failed:

@paulocsanz paulocsanz force-pushed the victor/eng-2546-create-sdf-enpoint-that-onholds-actions-with-a-task-id-and-a branch from e62f7fe to 4f8127d Compare May 14, 2024 16:47
@paulocsanz
Copy link
Contributor

bors try

si-bors-ng bot added a commit that referenced this pull request May 14, 2024
@si-bors-ng
Copy link
Contributor

si-bors-ng bot commented May 14, 2024

try

Build failed:

@paulocsanz
Copy link
Contributor

bors merge

@si-bors-ng
Copy link
Contributor

si-bors-ng bot commented May 14, 2024

🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@si-bors-ng
Copy link
Contributor

si-bors-ng bot commented May 14, 2024

Build succeeded:

@si-bors-ng si-bors-ng bot merged commit dbd4559 into main May 14, 2024
9 checks passed
@si-bors-ng si-bors-ng bot deleted the victor/eng-2546-create-sdf-enpoint-that-onholds-actions-with-a-task-id-and-a branch May 14, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dal A-dal-test A-rebaser A-sdf Area: Primary backend API service [Rust] A-web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants