-
Notifications
You must be signed in to change notification settings - Fork 27
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
Permit Environment Management Commands #18
Comments
/bounty 250 |
💎 $250 bounty • Permit.ioSteps to solve:
Thank you for contributing to permitio/permit-cli! Add a bounty • Share on socials
|
/attempt #18
|
@35C4n0r can we collaborate on this issue |
Sorry @Abiji-2020, I prefer working solo :) |
@35C4n0r In order to assign you to the issue, I would kindly ask that you share your progress on the issue and the design of your components/lib files for review. I will assign you after the design review. |
Works, but please try to write a proposal ASAP so I can assign you to it |
@gemanor here is my proposal for this one =)
|
@gemanor I have one proposal for Login, sign-up, Environment management, separate error handling, testing including unit and e2e and for the overall app. permit-cli Project Structure using CLEAN code practices
|
/attempt #18
|
Hey @Rutik7066, as you saw, @35C4n0r already submitted a proposal for this one and PR for the other login flow. We are currently working on a first-come, first-serve model, so we will continue with him at this point. Also, we have already based our structure on the Pastel structure recommendation, so there is no need for extra best practices for organizing the Node.js CLI app. I'm more than inviting you to submit bounties on other PRs in this repo, or get back to that in a week in case @35C4n0r will have to cancel his attempt. |
@35C4n0r The proposal looks good, and you've approved continuing with it. Two comments:
As usual, please try to bring it ASAP so I can assign it to you. |
@35C4n0r can we collaborate? |
@gemanor, thanks for the feedback, here is the revised proposal:
|
@35C4n0r sounds good to me |
/attempt #18 Options |
Related to permitio#18 Implement environment management commands for Permit CLI. * Add `env.tsx` in `source/commands` directory to implement the required commands: - `permit env select` uses the existing component from permitio#28. - `permit env copy` takes user input via a component and flags: `--target`, `--conflictStrategy`, and `--scope`. - `permit env member` uses a new `useMemberApi` hook to add users with roles. * Create a hook to get a project-level access token with write permissions for `permit env copy`. * Add `useMemberApi.ts` to create a new hook to add users with roles interactively or via flags. * Add `useProjectToken.ts` to create a hook to get a project-level access token with write permissions. * Add unit tests in `env.test.tsx` for `permit env select`, `permit env copy`, and `permit env member` commands. * Add e2e tests in `env.e2e.tsx` for the basic flow of each command to validate their functionality.
Related to permitio#18 Implement environment management commands for Permit CLI. * Add `env.tsx` in `source/commands` directory to implement the required commands: - `permit env select` uses the existing component from permitio#28. - `permit env copy` takes user input via a component and flags: `--target`, `--conflictStrategy`, and `--scope`. - `permit env member` uses a new `useMemberApi` hook to add users with roles. * Create a hook to get a project-level access token with write permissions for `permit env copy`. * Add `useMemberApi.ts` to create a new hook to add users with roles interactively or via flags. * Add `useProjectToken.ts` to create a hook to get a project-level access token with write permissions. * Add unit tests in `env.test.tsx` for `permit env select`, `permit env copy`, and `permit env member` commands. * Add e2e tests in `env.e2e.tsx` for the basic flow of each command to validate their functionality. Signed-off-by: Vishwanath Martur <[email protected]>
💡 @35C4n0r submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
We want to create a set of commands that will help users manage their Permit environments. The following is the skeleton of the commands required in this issue:
permit env select
- selecting a different environment and storing the relevant key. This should incorporate with the following issue and use the same components: Refactoring Login Flow and Handling Errors #13permit env copy
- will allow users to copy their existing logged-in environment to a new environment and change their active environment to itpermit env member
will allow users to add more members to their environment with proper rolesAcceptance criteria:
The text was updated successfully, but these errors were encountered: