Skip to content

Conversation

@fmenezes
Copy link
Collaborator

@fmenezes fmenezes commented Feb 12, 2025

Proposed changes

fix x-sunset should be defined at responses

Jira ticket: CLOUDP-299959

Closes #[issue number]

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated test/README.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

Further comments

@fmenezes fmenezes marked this pull request as ready for review February 12, 2025 11:28
@fmenezes fmenezes requested a review from a team as a code owner February 12, 2025 11:28
@fmenezes fmenezes enabled auto-merge (squash) February 12, 2025 11:29

// Helper function to add content type to version map.
func addContentTypeToVersion(versionedContentType string, versionsMap map[string]*api.Version, isRequest bool) error {
func addContentTypeToVersion(versionedContentType string, versionsMap map[string]*api.Version, isRequest bool, sunset *time.Time) error {
Copy link
Collaborator

@andreaangiolillo andreaangiolillo Feb 12, 2025

Choose a reason for hiding this comment

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

[Curious] Could you direct me to where we use versionsMap to generate the commands?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

operationToCommand calls buildVersions and there we check if no versions are found we skip the operation.

Copy link
Collaborator

Choose a reason for hiding this comment

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

thank you

Copy link
Collaborator

@andreaangiolillo andreaangiolillo left a comment

Choose a reason for hiding this comment

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

LGTM

@apix-bot
Copy link
Contributor

apix-bot bot commented Feb 12, 2025

Coverage Report 📉

Branch Commit Coverage
master 7a039a1 39.4%
CLOUDP-299959_fix bb5114b %
Difference -39.4%

@fmenezes fmenezes merged commit 3f5d990 into master Feb 12, 2025
23 of 24 checks passed
@fmenezes fmenezes deleted the CLOUDP-299959_fix branch February 12, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants