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

fix: identity default for function:invoke w/o arg #3971

Conversation

karagulamos
Copy link
Contributor

@karagulamos karagulamos commented Jan 7, 2022

Fixes #3954

The fix eliminates the prompt that users of the Netlify CLI get when calling the functions:invoke command without identity header flags (i.e. --identity and --no-identity). In addition, when the functions:invoke is called without an identity flag, a --no-identity default is assumed.

Although now redundant, I started with a simple test to validate that we receive a response from the function when no identity flag is passed. However, I left it in the code to catch regressions should requirements change in the future.

Pup Vader

@erezrokah erezrokah added the type: bug code to address defects in shipped code label Jan 7, 2022
eduardoboucas
eduardoboucas previously approved these changes Jan 7, 2022
Copy link
Member

@eduardoboucas eduardoboucas left a comment

Choose a reason for hiding this comment

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

Great work, thanks!

Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
@erezrokah
Copy link
Contributor

@eduardoboucas can we merge and release this?

@eduardoboucas eduardoboucas added the automerge Add to Kodiak auto merge queue label Jan 11, 2022
@kodiakhq kodiakhq bot merged commit 739b010 into netlify:main Jan 11, 2022
@karagulamos karagulamos deleted the fix/function-invoke-infer-default-value-for-identity-headers branch January 11, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to Kodiak auto merge queue type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Infer default value for Identity headers in functions:invoke command
3 participants