-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use bulk default activity arguments and remove getEffectiveActivityArguments calls #1605
base: develop
Are you sure you want to change the base?
Use bulk default activity arguments and remove getEffectiveActivityArguments calls #1605
Conversation
// Get effective arguments for all revisions by coalescing defaults with args supplied in revision | ||
effectiveRevisionArguments = activityRevisions.map(revision => { | ||
const defaultArguments = $activityArgumentDefaultsMap[activityType?.name || ''] ?? null; | ||
defaultArguments.effectiveRevisionArguments = activityRevisions.map(revision => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be setting an effectiveRevisionArguments
on the defaultArguments
object here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops nope, not sure how I ended up with that, good catch. Should just be assigning effectiveRevisionArguments
to the right side I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -20,7 +21,7 @@ | |||
placement: Placement; | |||
}; | |||
|
|||
export let rowData: RowData | undefined; | |||
export let cancellable: boolean = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename this to explicitly tie it to downloading? e.g. isDownloadCancellable
or something like that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
6e0f20a
to
d01275f
Compare
…e names instead of full activity types
…ncelable but still show progress
eff39ba
to
d960eee
Compare
Quality Gate passedIssues Measures |
Exclusively rely on
getActivityEffectiveArgumentsBulk
instead of the deprecatedgetActivityEffectiveArguments
. This entails using the newly made cache of these arguments as well as fetching the set of needed default args for a plan during export. Improves loading performance of activity and span parameters. Additionally improves plan export performance drastically. Previously, plan export performance inversely correlated to the number of activities in the plan since each activity needed a query to get default args. This meant on large plans with thousands of activities, plan export could take tens of minutes if not much longer. With this change, plan export should be nearly instantaneous.Closes #1594