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

CORE-310: add 'Estimated' or 'Final cost' to workflow costs #5257

Merged
merged 4 commits into from
Feb 20, 2025

Conversation

davidangb
Copy link
Contributor

@davidangb davidangb commented Feb 19, 2025

Jira Ticket: https://broadworkbench.atlassian.net/browse/CORE-310

Dependencies

This requires broadinstitute/rawls#3172 for full functionality. Without that Rawls PR, this terra-ui PR will always show either "Final cost" or nothing; we'll never show "Estimated". I think it's good to get this PR out first, then follow up with the Rawls PR later; that way, we'll ensure we have the proper annotation for costs before we start showing esimated costs.

Summary of changes:

Adds a "Final cost" or "Estimated" annotation to the Run Cost column when displaying workflows.

Bonus fix: vertically aligns the "Status" column to be consistent with the rest of the table.

before:
Screenshot 19-02-2025 at 15 34 (2)

after:

when a workflow has a cost, we give it a final/estimated annotation:
Screenshot 19-02-2025 at 15 34

when a workflow has "n/a" for cost, we omit the annotation:
Screenshot 19-02-2025 at 15 34 (1)

Testing strategy

Tested by running locally. I could not find an existing test suite for the SubmissionWorkflowsTable component or the SubmissionDetails.js file, and this felt small enough that I didn't want to blow up scope to create a new one.

@davidangb davidangb added this pull request to the merge queue Feb 20, 2025
Merged via the queue into dev with commit 37ff7e9 Feb 20, 2025
11 checks passed
@davidangb davidangb deleted the da_CORE-310_workflowCostEstimates branch February 20, 2025 16:59
davidangb added a commit that referenced this pull request Feb 21, 2025
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.

5 participants