-
Notifications
You must be signed in to change notification settings - Fork 126
feat: Add Option to Suppress Pre- and Post-Retrieve Events #854
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
Conversation
since the apiVersionRetrieve event is not suppressed
preAndPostRetrieveEventCount = preAndPostRetrieveEventCount + 1; | ||
} | ||
}); | ||
expect(preAndPostRetrieveEventCount).to.equal(0); |
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.
Only checking for the absence of Pre and Post retrieve events.
/** | ||
* Specifies whether to suppress the <Pre|Post><Retrieve> events | ||
*/ | ||
suppressEvents?: boolean; |
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.
Only suppressing Pre and Post retrieve events. Other events are still fired (like apiVersionRetrieve).
@@ -557,6 +557,7 @@ v58 introduces the following new types. Here's their current level of support | |||
|Ai4mSettings|✅|| | |||
|CodeBuilderSettings|✅|| | |||
|DataWeaveResource|✅|| | |||
|DynamicFormsSettings|✅|| |
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.
Is this file auto-updated?
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.
yes, from git hooks.
@@ -557,6 +557,7 @@ v58 introduces the following new types. Here's their current level of support | |||
|Ai4mSettings|✅|| | |||
|CodeBuilderSettings|✅|| | |||
|DataWeaveResource|✅|| | |||
|DynamicFormsSettings|✅|| |
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.
yes, from git hooks.
@klewis-sfdc looks good to me. Can you have someone from VSCode QA and merge since y'all have a use case for it and we don't? |
Yep, we can do QA and merge. Thanks, Shane. |
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.
thanks @mshanemc & @klewis-sfdc great stuff
What does this PR do?
What issues does this PR fix or reference?
In the VSCE repo, work is underway to add source-tracking (STL) into the deploy* and retrieve* commands so that they can be used against scratch orgs (#4597).
In order to complete that work, two capabilities are needed:
@W-12551198@
Functionality Before
Functionality After
suppressEvents
option, a retrieve call can be made without emitting the events, therefore bypassing STL behaviorsAlternatives Considered: