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

Remove /healthz call + use token when calling /maintenanceStatus #495

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Remove /healthz call + use token when calling /maintenanceStatus #495

merged 2 commits into from
Oct 18, 2023

Conversation

dehoward
Copy link
Contributor

@dehoward dehoward commented Oct 12, 2023

Motivation and Context

the call to /healthz isn't needed since we can determine if the backend is down when calling /maintenanceStatus.
the call to /maintenanceStatus throws a 401 when AAD is used since the token is not passed. noticed this when fixing #485.

Contribution Checklist

@dehoward dehoward self-assigned this Oct 12, 2023
@github-actions github-actions bot added the webapp Pull requests that update Typescript code label Oct 12, 2023
alliscode
alliscode previously approved these changes Oct 12, 2023
@dehoward dehoward changed the title Use token when calling /maintenanceStatus Remove /healthz call + use token when calling /maintenanceStatus Oct 12, 2023
@dehoward dehoward requested a review from teresaqhoang October 12, 2023 21:52
@dehoward dehoward added this pull request to the merge queue Oct 18, 2023
Merged via the queue into microsoft:main with commit d8ac3b9 Oct 18, 2023
@dehoward dehoward deleted the token-for-maintenance-status branch October 18, 2023 17:01
Ryangr0 pushed a commit to webgrip/chat-copilot that referenced this pull request Oct 26, 2023
…rosoft#495)

### Motivation and Context

<!-- Thank you for your contribution to the chat-copilot repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
the call to `/healthz` isn't needed since we can determine if the
backend is down when calling `/maintenanceStatus`.
the call to `/maintenanceStatus` throws a 401 when AAD is used since the
token is not passed. noticed this when fixing microsoft#485.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
teamleader-dev pushed a commit to vlink-group/chat-copilot that referenced this pull request Oct 7, 2024
…rosoft#495)

### Motivation and Context

<!-- Thank you for your contribution to the chat-copilot repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
the call to `/healthz` isn't needed since we can determine if the
backend is down when calling `/maintenanceStatus`.
the call to `/maintenanceStatus` throws a 401 when AAD is used since the
token is not passed. noticed this when fixing microsoft#485.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
kb0039 pushed a commit to aaronba/chat-copilot that referenced this pull request Jan 8, 2025
…rosoft#495)

### Motivation and Context

<!-- Thank you for your contribution to the chat-copilot repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
the call to `/healthz` isn't needed since we can determine if the
backend is down when calling `/maintenanceStatus`.
the call to `/maintenanceStatus` throws a 401 when AAD is used since the
token is not passed. noticed this when fixing microsoft#485.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webapp Pull requests that update Typescript code
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

4 participants