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

Added new required functions #827

Merged
merged 3 commits into from
May 11, 2022
Merged

Added new required functions #827

merged 3 commits into from
May 11, 2022

Conversation

Banner-Keith
Copy link
Contributor

Return the value instead of the value or undefined.

getInputRequired
getPathInputRequired
getEndpointUrlRequired
getEndpointDataParameterRequired
getEndpointAuthorizationSchemeRequired
getEndpointAuthorizationParameterRequired

@Banner-Keith
Copy link
Contributor Author

Fixes #824

I also saw that #826 was opened. I can rebase after that PR is completed.

I have added unit tests for everything I added and all tests are passing.

@ghost
Copy link

ghost commented Mar 22, 2022

CLA assistant check
All CLA requirements met.

…r undefined.

getInputRequired
getPathInputRequired
getEndpointUrlRequired
getEndpointDataParameterRequired
getEndpointAuthorizationSchemeRequired
getEndpointAuthorizationParameterRequired
@Banner-Keith
Copy link
Contributor Author

getInputRequired and getPathInputRequired are the important ones but I did the same addition on some other similar methods. If you only want some of those I can remove some of the additions.

I can also adjust naming or anything else if there's a suggestion.

node/task.ts Outdated
* @returns string
*/
export function getInputRequired(name: string): string {
var inval = im._vault.retrieveSecret('INPUT_' + im._getVariableKey(name));
Copy link
Contributor

@anatolybolshakov anatolybolshakov Mar 30, 2022

Choose a reason for hiding this comment

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

Please use the call of existing methods instead (like getInput(name, required) - to avoid duplication (and for other methods also)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean that I should have getInputRequired call getInput so that the internals of that method are not duplicated?

Copy link
Contributor

Choose a reason for hiding this comment

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

@Banner-Keith yep correct 👍

@anatolybolshakov
Copy link
Contributor

Thanks for contribution! Could you please take a look at comments?

@Banner-Keith
Copy link
Contributor Author

@anatolybolshakov sorry for the delay. I have made the adjustment you requested.

@anatolybolshakov
Copy link
Contributor

@Banner-Keith thanks for update! Let us quickly check

Copy link
Contributor

@anatolybolshakov anatolybolshakov left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! @SvetlanaMaliugina could you please take a look also?

Copy link
Contributor

@SvetlanaMaliugina SvetlanaMaliugina left a comment

Choose a reason for hiding this comment

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

Tested 'getInputRequired' and 'getPathInputRequired' methods manually. Looks fine for me.

@anatolybolshakov
Copy link
Contributor

@mmrazik could you please take a look also?

@SvetlanaMaliugina
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@SvetlanaMaliugina SvetlanaMaliugina merged commit a9aa775 into microsoft:master May 11, 2022
@Banner-Keith Banner-Keith deleted the required-functions branch May 11, 2022 21:44
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.

None yet

4 participants