-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Front Door] Add update func for backend and fix backend_host_header #3394
Conversation
…judgment in create func
Front Door |
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 check the start value of index
parameter and update help message for it.
c.update_param('private_link_location', private_link_location, None) | ||
c.update_param('private_link_approval_message', private_link_approval_message, None) | ||
client.begin_create_or_update(resource_group_name, front_door_name, frontdoor).result() | ||
return backend |
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.
Why the return value is not from request result?
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.
Based on add_fd_backend
, backend is a part of frontdoor, we just need return backend, not all result from frontdoor.
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.
I think we should extract the backend from the result again instead of returning the backend object used in request construction. Because the backend in result may be not the same as the backend in request. For example, some read only property may be changed in result.
Please update extension version and history before release. |
Closed Azure/azure-cli#17270
Closed Azure/azure-cli#17269
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)python scripts/ci/test_index.py -q
locally?For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update
src/index.json
automatically.The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify
src/index.json
.