[feat] Flow Scanner: resolve FlowDefinition ID and support FlowRecord pages#1129
Open
CamilleGuillory wants to merge 2 commits into
Conversation
Owner
|
Thanks @CamilleGuillory |
… pages - Resolve FlowDefinition ID (300xxx) to active/latest Flow version when only that ID is available - Support opening Flow Scanner from FlowRecord pages (/lightning/r/FlowRecord/...) - Display the analyzed flow version number in the Flow Information card - Sanitize URL parameters to handle null/undefined string values gracefully
2e22f79 to
fde6c47
Compare
…ion pages Resolve the active (or latest) Flow version ID in the popup before building the Flow Compare URL, so the button works when opened from FlowRecord (2aF) or FlowDefinition (300) pages — not just Flow version (301) pages.
Contributor
Author
|
@tprouvot I added the fix for the FlowRecord page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Resolve FlowDefinition ID (300xxx) to the active Flow version (or latest as fallback) when only a definition ID is available. Support opening Flow Scanner from FlowRecord pages (
/lightning/r/FlowRecord/...). Display the analyzed flow version number in the Flow Information card.Details:
sanitizeUrlParam()to normalize"null"/"undefined"URL param strings tonullresolveFlowIds()to handle all ID resolution scenarios (300→301, missing IDs, mixed inputs)getDefinitionIdFromFlowVersion()— looks up FlowDefinition from a Flow version via Tooling APIgetFlowVersionFromDefinition()— looks up active (or latest fallback) Flow version from a FlowDefinitionversionNumberfield displayed in the Flow Information cardhostis required; at least one offlowDefIdorflowIdis sufficientgetFlowScannerUrl()in popup.js to generate correct URLs for FlowDefinition (300xxx), FlowRecord (2aF...), and Flow version (301xxx) IDsIssue ticket number and link
Closes #1127
Checklist before requesting a review