Skip to content

Comments

Allow swagger on disabled versions.#3196

Merged
fisx merged 2 commits intodevelopfrom
unblock-swagger
Mar 29, 2023
Merged

Allow swagger on disabled versions.#3196
fisx merged 2 commits intodevelopfrom
unblock-swagger

Conversation

@fisx
Copy link
Contributor

@fisx fisx commented Mar 28, 2023

https://wearezeta.atlassian.net/browse/SQPIT-1691

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Mar 28, 2023
@fisx
Copy link
Contributor Author

fisx commented Mar 28, 2023

feel free to merge right away if you approve.

-- | swagger-delivering end-points are not disableable: they should work for all versions.
requestIsDisableable :: Request -> Bool
requestIsDisableable (pathInfo -> path) = case path of
["api", "swagger-ui"] -> False
Copy link
Contributor

Choose a reason for hiding this comment

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

It think api-internal is missing. See e.g. https://staging-nginz-https.zinfra.io/api-internal/swagger-ui/brig

Copy link
Contributor

Choose a reason for hiding this comment

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

Err nevermind, internal apis are not versioned :)

@smatting smatting self-requested a review March 29, 2023 08:48
@fisx fisx merged commit b6d2ad8 into develop Mar 29, 2023
@fisx fisx deleted the unblock-swagger branch March 29, 2023 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants