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

[Front Door] Add update func for backend and fix backend_host_header #3394

Merged
merged 10 commits into from
Jul 1, 2021

Conversation

00Kai0
Copy link
Contributor

@00Kai0 00Kai0 commented May 19, 2021

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

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run 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.

@00Kai0 00Kai0 requested a review from kairu-ms May 19, 2021 03:20
@yonzhan yonzhan added this to the S187 milestone May 19, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented May 19, 2021

Front Door

@yonzhan yonzhan requested a review from jsntcy May 19, 2021 04:14
Copy link
Contributor

@kairu-ms kairu-ms left a 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.

@yonzhan yonzhan modified the milestones: S187, S188 Jun 2, 2021
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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@kairu-ms
Copy link
Contributor

kairu-ms commented Jul 1, 2021

Please update extension version and history before release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants