Skip to content

Conversation

@andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Mar 11, 2025

Jira ticket: CLOUDP-305844

Branded preview list v2.json and v2.yaml specs and the preview does not work for private preview specs.

This PR updates the branded_preview.sh logic to remove the v2.json|yaml files and to use the correct path for private preview specs

@andreaangiolillo andreaangiolillo marked this pull request as ready for review March 11, 2025 13:49
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner March 11, 2025 13:49
Comment on lines +23 to +28
if [[ "${version}" == *"private"* ]]; then
all_urls+=("https://raw.githubusercontent.com/mongodb/openapi/${branch_name:?}/openapi/v2/private/openapi-${version}.json")
all_urls+=("https://raw.githubusercontent.com/mongodb/openapi/${branch_name:?}/openapi/v2/private/openapi-${version}.yaml")
continue
fi

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if [[ "${version}" == *"private"* ]]; then
all_urls+=("https://raw.githubusercontent.com/mongodb/openapi/${branch_name:?}/openapi/v2/private/openapi-${version}.json")
all_urls+=("https://raw.githubusercontent.com/mongodb/openapi/${branch_name:?}/openapi/v2/private/openapi-${version}.yaml")
continue
fi

do we want to add private preview though? I was under the impression that we didn't (note: public preview will be automatically added already)

Copy link
Collaborator Author

@andreaangiolillo andreaangiolillo Mar 11, 2025

Choose a reason for hiding this comment

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

In the scope we only says that the access to the private preview spec will be within the mongodb/openapi repo. we don't mention branded_preview. I think is a nice addition since we could just share a link to the selected customers with the branded preview link. With that sad, I am open to remove it too

Update: we could also have a branded_private_preview

Copy link
Collaborator

Choose a reason for hiding this comment

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

no strong opinion from m side, easy enough to revisit

@andreaangiolillo andreaangiolillo merged commit b2dcfa7 into main Mar 12, 2025
12 checks passed
@andreaangiolillo andreaangiolillo deleted the CLOUDP-305844 branch March 12, 2025 13:46
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