Skip to content

Changing openapi refresh flag to false #1350

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

Closed
wants to merge 18 commits into from

Conversation

timayabi2020
Copy link
Contributor

Fixes #
This PR is supposed to fix issue #1345

Changes proposed in this pull request

  • Updating the ForceRefresh flag to false since its causing error 500 during download of beta version of openapi. Weekly referesh pipeline fails at this stage

image

-The image below shows successful downloads with ForceRefresh set to false

image

@@ -39,7 +39,7 @@ $ModuleMapping.Keys | ForEach-Object -Begin { $RequestCount = 0 } -End { Write-D
$ForceRefresh = $false
# Check whether ForceRefresh is required, Only required for the First Request.
if ($RequestCount -eq 0) {
$ForceRefresh = $true
Copy link
Member

@peombwa peombwa Jun 27, 2022

Choose a reason for hiding this comment

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

@timayabi2020, Is this a temporary change? ForceRefresh is needed to force DevX API to fetch the latest CSDL metadata. Without this, DevX API may serve us a cached version of the CSDL metadata. ForceRefresh is only called once per API version.

Copy link
Contributor Author

@timayabi2020 timayabi2020 Jun 27, 2022

Choose a reason for hiding this comment

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

@peombwa yes it is. We need this to atleast prevent the pipeline from failing during beta stage. I was hoping to use test (http://devxapitest.azurewebsites.net/) but it is also not stable. The staging one is also not stable.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good! So, we won't merge this PR once the build is complete? This is just to trigger generation of docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good! So, we won't merge this PR once the build is complete? This is just to trigger generation of docs.

Yes. We won't merge

Copy link
Member

Choose a reason for hiding this comment

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

@timayabi2020, I've added PR #1371, which allows us to optionally control forceRefresh and base branch from AzDo's UI. We can close this PR and merge #1371.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool. I'll go ahead and close it

@peombwa peombwa deleted the omitt_openapi_refresh_flag branch July 20, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants