Skip to content

Conversation

@davidmrdavid
Copy link
Contributor

@davidmrdavid davidmrdavid commented Jan 10, 2023

This PR is a follow up to #839

In it, we introduced a new optional environment variable named ExternalDurablePowerShellSDK. This environment variable controls whether the external DF SDK logic is invoked.

In this PR, we turn that variable name into a constant string, for re-usability and logging. No logic changes have taken place other than logging the variable name in usage warnings.

Issue describing the changes in this PR

resolves N/A

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Additional PR information

Copy link
Contributor

@Francisco-Gamino Francisco-Gamino left a comment

Choose a reason for hiding this comment

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

LGTM. Please add a test case if you do not already have one for this scenario. Thank you.

@davidmrdavid
Copy link
Contributor Author

davidmrdavid commented Jan 10, 2023

Thanks @Francisco-Gamino. The use of this environment variable has been tested in this several times. We mock it's contents everytime we mock the result of "isExternalDurableSdkLoaded".

Does that meet your request?

@Francisco-Gamino
Copy link
Contributor

Thanks @Francisco-Gamino. The use of this environment variable has been tested in this several times. We mock it's contents everytime we mock the result of "isExternalDurableSdkLoaded".

Does that meet your request?

Thank you @davidmrdavid for the follow up. Do we have a test case that validates the expected log statement when the feature flag is enabled?

_logger.Log(isUserOnlyLog: false, LogLevel.Error, String.Format(PowerShellWorkerStrings.PotentialDurableSDKClash, Utils.ExternalDurableSdkName, Utils.ExternalDurableSdkEnvVariable));

@davidmrdavid
Copy link
Contributor Author

@Francisco-Gamino. Ah, not for the log itself. I'll look to add that.

@davidmrdavid
Copy link
Contributor Author

As discussed, tracked here: #910

@davidmrdavid davidmrdavid merged commit a5a8132 into dev Jan 10, 2023
@davidmrdavid davidmrdavid deleted the dajusto/patch-external-sdk-log branch January 10, 2023 22:58
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.

3 participants