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

DOP-3963: Render only latest version of spec at base spec component #901

Merged
merged 4 commits into from
Aug 30, 2023

Conversation

casthewiz
Copy link
Contributor

@casthewiz casthewiz commented Aug 29, 2023

Context

DOP-3963 has most details, but TLDR:

We want to render only the latest spec at the base route of any versioned OpenAPI spec - this resolves some out-of-order issues with resources in dropdowns vs version in the left sidenav, and consumers of the spec typically want to see the latest versions regardless.

Staging Link

https://mongodbcom-cdn.website.staging.corp.mongodb.com/docs-qa/atlas/master/reference/api-resources-spec/v2/

@casthewiz casthewiz requested review from rayangler and mmeigs August 30, 2023 14:18
@@ -192,7 +192,7 @@ describe('pageBuilder', () => {

await buildOpenAPIPages(testEntries, testOptions);

expect(mockExecute).toBeCalledTimes(testEntries.length * 2);
expect(mockExecute).toBeCalledTimes(4);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Given that we specify toBeCalledWith for each invocation, I'm fine with hardcoding the number of calls now that the logic isn't as straightforwards.

Open to any other equations that determine that intended number of calls though.

Copy link
Contributor

@mmeigs mmeigs left a comment

Choose a reason for hiding this comment

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

LGTM!

@casthewiz casthewiz merged commit 7d20361 into master Aug 30, 2023
6 of 7 checks passed
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