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

cromwell metadata params [risk: low] #1456

Merged
merged 5 commits into from
Nov 14, 2018
Merged

Conversation

davidangb
Copy link
Contributor

@davidangb davidangb commented Nov 9, 2018

DataBiosphere/firecloud-app#213
DataBiosphere/firecloud-app#214

when making requests to the Cromwell workflow metadata API (via orch and rawls), specify only those includeKey values the UI needs. This hint allows Cromwell to do only the work that's truly necessary, and keeps the response sizes smaller by eliminating cruft.

additionally, don't load the data needed to power the timing diagram when first viewing a workflow's details, since the timing diagram is collapsed by default. Once the user clicks to expand the timing diagram, make a second ajax call to get the data it needs. This keeps the initial page much smaller and only gets timing data when absolutely necessary.


  • Submitter: Include the JIRA issue number in the PR description
  • Submitter: Check documentation and code comments. Add explanatory PR comments if helpful.
  • Submitter: If you changed a URL that is used elsewhere (e.g. in an email), comment about where it is used and ensure the dependent code is updated.
  • Submitter: JIRA ticket checks:
    • Acceptance criteria exists and is met
    • Note any changes to implementation from the description
    • To Demo flag is set
    • Release Summary is filled out, if applicable
    • Add notes on how to QA
  • Submitter: Update RC_XXX release ticket with any config or environment changes necessary
  • Submitter: Update FISMA documentation if changes to:
    • Authentication
    • Authorization
    • Encryption
    • Audit trails
  • Submitter: If you're adding new libraries, sign us up to security updates for them
  • Submitter: If you're adding new automated UI tests, review the test plan with QA
  • Review cycle:
    • LR reviews
    • Rest of team may comment on PR at will
    • LR assigns to submitter for feedback fixes
    • Submitter rebases to develop again if necessary
    • Submitter makes further commits. DO NOT SQUASH
    • Submitter updates documentation as needed
    • Submitter reassigns to LR for further feedback
  • TL sign off
  • LR sign off
  • Product Owner sign off
  • Submitter: Verify all tests go green, including CI tests and automated UI tests.
  • Submitter: Squash commits and merge to develop. If adding test code, merge application code and test code at the same time.
  • Submitter: Delete branch after merge
  • Submitter: Test this change works on dev environment after deployment. YOU own getting it fixed if dev isn't working for ANY reason!
  • Submitter: Mark JIRA issue as resolved once this checklist is completed

@davidangb davidangb changed the title cromwell metadata params cromwell metadata params [risk: low] Nov 14, 2018
Copy link
Contributor

@MattPutnam MattPutnam left a comment

Choose a reason for hiding this comment

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

👍

@@ -140,7 +141,7 @@
(set (keys query-parameters)))
(str "Malformed query parameters: " query-parameters))
{:path (str "/workspaces/" (id-path workspace-id) "/entityQuery/" type "?"
(clojure.string/join "&" (keep (fn [[k v]]
(string/join "&" (keep (fn [[k v]]
(some->> v str not-empty (str k "=")))
query-parameters)))
Copy link
Contributor

Choose a reason for hiding this comment

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

reindent

(links/create-internal {:onClick #(swap! state update :expanded? not)}
(if expanded? "Hide" "Show")))
;; use expanded? to show/hide the WorkflowTimingDiagram component via the DOM
[:div {:myattr "whereami" :style {:display (if expanded? "block" "none")}}
Copy link
Contributor

Choose a reason for hiding this comment

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

debugging artifact?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hahaha yes thank you for the catch.

@davidangb davidangb merged commit a11a086 into develop Nov 14, 2018
@davidangb davidangb deleted the da_212_CromwellMetadataParams branch November 14, 2018 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants