-
Notifications
You must be signed in to change notification settings - Fork 274
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
Added new required functions #827
Conversation
…r undefined. getInputRequired getPathInputRequired getEndpointUrlRequired getEndpointDataParameterRequired getEndpointAuthorizationSchemeRequired getEndpointAuthorizationParameterRequired
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)); |
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.
Please use the call of existing methods instead (like getInput(name, required) - to avoid duplication (and for other methods also)
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.
Do you mean that I should have getInputRequired
call getInput
so that the internals of that method are not duplicated?
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.
@Banner-Keith yep correct 👍
Thanks for contribution! Could you please take a look at comments? |
@anatolybolshakov sorry for the delay. I have made the adjustment you requested. |
@Banner-Keith thanks for update! Let us quickly check |
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.
LGTM, thanks! @SvetlanaMaliugina could you please take a look also?
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.
Tested 'getInputRequired' and 'getPathInputRequired' methods manually. Looks fine for me.
@mmrazik could you please take a look also? |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
* Added new required functions. Return the value instead of the value or undefined. getInputRequired getPathInputRequired getEndpointUrlRequired getEndpointDataParameterRequired getEndpointAuthorizationSchemeRequired getEndpointAuthorizationParameterRequired * Fix undefined in json file * Simplify Required functions. Add tests. Co-authored-by: Keith Banner <[email protected]>
Return the value instead of the value or undefined.
getInputRequired
getPathInputRequired
getEndpointUrlRequired
getEndpointDataParameterRequired
getEndpointAuthorizationSchemeRequired
getEndpointAuthorizationParameterRequired