-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Permissions] Require at least one item in allOf/anyOf criteria #9348
Conversation
🦋 Changeset detectedLatest commit: bbf2150 The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
plugins/permission-node/src/integration/createPermissionIntegrationRouter.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
28a559e
to
4448ba4
Compare
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
8e5514a
to
0ccd3fe
Compare
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! One question but 👍 either way.
plugins/permission-node/src/integration/createConditionTransformer.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 , just a minor nit if you agree with it
@@ -65,6 +75,14 @@ export function isReadPermission(permission: Permission): boolean; | |||
// @public | |||
export function isUpdatePermission(permission: Permission): boolean; | |||
|
|||
// @public | |||
export type NonEmptyArray<T> = [T, ...T[]]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly unfortunate to export this. If you mark it with /** @ignore */
you can avoid exporting it without warnings in the API report. The DX of using the criteria should stay the same afaik, as in you'll see the same editor hints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I tried using @internal
but that broke the api report. I'll give @ignore
a try!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah @internal
is for when you want to explicitly say that something should not be part of the external API, and API Extractor will then help you enforce that. @ignore
is for when you wanna tell API Extractor "i know what I'm doing", it's our own invention though.
Update looks 👌
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
Signed-off-by: Joe Porpeglia josephp@spotify.com
Hey, I just made a Pull Request!
Closes #9280
✔️ Checklist
Signed-off-by
line in the message. (more info)