sdk-for-cli icon indicating copy to clipboard operation
sdk-for-cli copied to clipboard

πŸš€ Feature: Support Initializing a Project in an Existing Organization

Open stnguyen90 opened this issue 2 years ago β€’ 9 comments

πŸ”– 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?

stnguyen90 avatar Jun 23 '23 21:06 stnguyen90

@stnguyen90 Please assign this issue token to me?

Jaishree2310 avatar Oct 01 '23 09:10 Jaishree2310

@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

Haimantika avatar Oct 02 '23 09:10 Haimantika

I'd like to get assigned!

probablyArth avatar Oct 02 '23 20:10 probablyArth

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!

Haimantika avatar Oct 03 '23 09:10 Haimantika

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 teamId OR select from the list of teams

@stnguyen90

probablyArth avatar Oct 04 '23 03:10 probablyArth

@gewenyu99 what do you think of this?

Perhaps the first "How would you like to start?" should have two options:

  1. Create a new organization
  2. 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.

stnguyen90 avatar Oct 11 '23 16:10 stnguyen90

@gewenyu99 what do you think of this?

Perhaps the first "How would you like to start?" should have two options:

  1. Create a new organization
  2. 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!

gewenyu99 avatar Oct 11 '23 16:10 gewenyu99

got it, ill start working on it πŸ‘Œ

probablyArth avatar Oct 12 '23 11:10 probablyArth

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.

Haimantika avatar Oct 19 '23 11:10 Haimantika