Skip to content

feat(ipa): Support reset custom method for singletons#1122

Merged
yelizhenden-mdb merged 4 commits intomainfrom
CLOUDP-371866
Feb 4, 2026
Merged

feat(ipa): Support reset custom method for singletons#1122
yelizhenden-mdb merged 4 commits intomainfrom
CLOUDP-371866

Conversation

@yelizhenden-mdb
Copy link
Collaborator

@yelizhenden-mdb yelizhenden-mdb commented Feb 4, 2026

Proposed changes

Jira ticket: CLOUDP-371866

New warning-level validations have been introduced to support updated IPA guidelines for the reset custom method on singletons.

For a high-level overview, it’s recommended to review the changes in the README.md file.

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works

Changes to Spectral

  • I have read the README file for Spectral Updates

Further comments

return false;
}

const collectionPath = collectionIdentifier[0];
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

FYI: The reason for this change is that the current logic doesn’t check the singleton resource requirements for multiple resource paths (for example, when both a singleton resource and a singleton resource with a custom method exist)

Tests are updated for other IPA113 validations

@yelizhenden-mdb yelizhenden-mdb marked this pull request as ready for review February 4, 2026 15:18
@yelizhenden-mdb yelizhenden-mdb requested a review from a team as a code owner February 4, 2026 15:18
Copy link
Collaborator

@matt-condon matt-condon left a comment

Choose a reason for hiding this comment

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

LGTM

@yelizhenden-mdb yelizhenden-mdb merged commit 55dbcae into main Feb 4, 2026
11 checks passed
@yelizhenden-mdb yelizhenden-mdb deleted the CLOUDP-371866 branch February 4, 2026 15:48
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