-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
feat: walking skeleton of private projects #4753
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
import { IProjectPermissionStore } from './projectPermissionStoreType'; | ||
import { IProjectPermissionChecker } from './projectPermissionCheckerType'; | ||
|
||
export class ProjectPermissionChecker implements IProjectPermissionChecker { |
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.
if we don't have any more code we can use the store directly. You can call the store as read model.
return found || defaultValue; | ||
} | ||
|
||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ |
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.
why disabling types?
req.checkProjectPermissions = async () => { | ||
const { user } = req; | ||
|
||
let projectId = |
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.
const
flagResolver, | ||
}: Pick<IUnleashConfig, 'getLogger' | 'flagResolver'>, | ||
{ projectService, accessService }: IUnleashServices, | ||
): any => { |
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.
I wouldn't use any. There's a type for async middleware
Next steps. Add tests and more capabilities