Skip to content

CLOUDP 328959: OperationID Validation functions for Create, Delete, and Update methods #805

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

Merged
merged 27 commits into from
Jul 9, 2025

Conversation

sphterry
Copy link
Collaborator

@sphterry sphterry commented Jul 4, 2025

Proposed changes

Jira ticket: CLOUDP-328959

Further comments

Exception support to be added in separate ticket. Rules are not enabled.

@sphterry sphterry requested review from a team as code owners July 4, 2025 14:39
Copy link
Collaborator

@yelizhenden-mdb yelizhenden-mdb left a comment

Choose a reason for hiding this comment

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

Nice work on this structure — just had a few small questions to clarify direction. Let me know what your plan about yaml inclusion, testing and exception detection is

@sphterry
Copy link
Collaborator Author

sphterry commented Jul 7, 2025

@yelizhenden-mdb For clarification:

  • I've drafted yaml inclusion, but as of Lovisa's and my current plan, those changes won't be included until after the NPM package is first published.
  • I planned on doing testing alongside the sister ticket to this PR CLOUDP-328955 and the rest of the exception detection alongside the implementation of the custom extension CLOUDP-306294. Please let me know if theres a better order of operations to do this (my plan is in the tech design Tickets section).

I've prioritised speed here, my motivation is to get the list of changes together ASAP.

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 once the lint errors are fixed

@sphterry sphterry self-assigned this Jul 7, 2025
@sphterry sphterry requested a review from yelizhenden-mdb July 9, 2025 09:59
message:
'Invalid OperationID. The Operation ID must start with the verb “create” and should be followed by a noun or compound noun. The noun(s) in the Operation ID should be the collection identifiers from the resource identifier in singular form. ',
path: ['paths', '/api/atlas/v2/groups/{groupId}/invites', 'post'],
severity: DiagnosticSeverity.Warning,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just asking to learn:
I’m not fully sure how severity: off behaves. Does it completely disable the rule, or does it still run but return errors with DiagnosticSeverity.Off?
If it’s the first case, can we assume the rule isn't being tested at all?

Copy link
Collaborator Author

@sphterry sphterry Jul 9, 2025

Choose a reason for hiding this comment

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

Severity off still runs the rule but hides the errors, which is what i want here until the package and extension are supported (ie: closer to the time of correction). The rule isn't being tested because it's not active yet, but I have run the tests on error and warning severity and they pass.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Perfect! Thanks ❤️

Copy link
Collaborator

@yelizhenden-mdb yelizhenden-mdb left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the changes! Exciting! 🚀

@sphterry sphterry merged commit d3b721a into main Jul 9, 2025
8 checks passed
@sphterry sphterry deleted the CLOUDP-328959 branch July 9, 2025 12:26
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.

5 participants