sdk-for-cli
sdk-for-cli copied to clipboard
π Feature: Support Initializing a Project in an Existing Organization
π Feature description
Right now, initializing a project creates a new organization:
https://github.com/appwrite/sdk-for-cli/blob/b4619977eb95ca6650aa5291eb6a26d6bfa46eda/lib/commands/init.js#L32-L37
It would be helpful to allow creating as part of an existing organization.
π€ Pitch
Creating in an existing organization makes organizing the project easier/cleaner.
π Have you spent some time to check if this issue has been raised before?
- [X] I checked and didn't find similar issue
π’ Have you read the Code of Conduct?
- [X] I have read the Code of Conduct
@stnguyen90 Please assign this issue token to me?
@stnguyen90 Please assign this issue token to me?
Hi, we have already assigned you two issues. Thatβs the maximum number of issues we can assign at a time to one person
I'd like to get assigned!
I'd like to get assigned!
Hi @probablyArth, I've assigned the issue to you! Happy Hacktoberfest π!
Notes:
Please update us with your progress every 3 days, so that we know you are working on it. Join us on Discord - https://appwrite.io/discord to chat about Hacktoberfest and Appwrite!
Here's what I have in mind :-
- add another question
do you want to create project in an existing organisation? - if yes then another question -
enter teamIdORselect from the list of teams
@stnguyen90
@gewenyu99 what do you think of this?
Perhaps the first "How would you like to start?" should have two options:
- Create a new organization
- Use an existing organization
"Use an existing organization" would show a list of organizations (teams) the user can select from. Make sure to show the organization name and ID like we do for project.
Then, ask, "Would you like to create a new project or link to an existing?".
If they select "Link this directory to an existing Appwrite project" make sure to filter the results to the projects under the chosen organization. This would help when you have the same project name in multiple organizations.
@gewenyu99 what do you think of this?
Perhaps the first "How would you like to start?" should have two options:
- Create a new organization
- Use an existing organization
"Use an existing organization" would show a list of organizations (teams) the user can select from. Make sure to show the organization name and ID like we do for project.
Then, ask, "Would you like to create a new project or link to an existing?".
If they select "Link this directory to an existing Appwrite project" make sure to filter the results to the projects under the chosen organization. This would help when you have the same project name in multiple organizations.
I like this approach. Make sure to include a non-interactive option!
got it, ill start working on it π
got it, ill start working on it π
Hi, are you working on it? If not, we will be reassigning the issue to the next person due to inactivity from your end.