Skip to content
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

project command: create cloud profile #17

Merged
merged 11 commits into from
Jul 7, 2022
Merged

project command: create cloud profile #17

merged 11 commits into from
Jul 7, 2022

Conversation

Richard-B18
Copy link
Contributor

No description provided.

@98sean98
Copy link
Contributor

Umm you're gonna have to do some rebasing against the main branch

@Richard-B18 Richard-B18 linked an issue Jul 4, 2022 that may be closed by this pull request
Richard-B18 and others added 6 commits July 6, 2022 15:48
* enable create command

* prompt workspace and query cloud profile in create command

* calls backend graphql api to createProject

* fix minor bugs of wrong api call, add some msg after api call

* add a validation for project name

* move cli msg to command callback instead of during api calling, minor bug fix

* push everything

* add is_authenticated decorator and refactor to use graphql fragments

* bump package version to 0.1.2

* refractor auth checking, minor bug fix

Co-authored-by: Sean Chok <seanchok@gmail.com>
* Project Browse Command

Adding project browse command to cli and get_workspace function to api

* Changes

Improved the browse and get project function

* final refactor and test

* bump package version to 0.1.3

Co-authored-by: Sean Chok <seanchok@gmail.com>
Copy link
Contributor

@98sean98 98sean98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The project create command shouldn't involve any cloud profile creation, the user should just choose an existing cloud profile. If they don't have any cloud profiles to begin with, the project create command should just raise an abort.

They should also manage cloud profiles through a new group of commands called cloud-profile, and create a new cloud profile with cloud-profile create, see #20

deploifai/api/__init__.py Outdated Show resolved Hide resolved
deploifai/project/create.py Outdated Show resolved Hide resolved
@98sean98 98sean98 added the enhancement New feature or request label Jul 6, 2022
deploifai/api/__init__.py Outdated Show resolved Hide resolved
Copy link
Contributor

@98sean98 98sean98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work. Just some very minor issues.

deploifai/project/create.py Outdated Show resolved Hide resolved
@Richard-B18 Richard-B18 merged commit 7a2e87c into main Jul 7, 2022
@Richard-B18 Richard-B18 deleted the project-create branch July 7, 2022 08:33
Richard-B18 added a commit that referenced this pull request Jul 7, 2022
…ir (#21)

* minor refractor on global config

* traverse up recursively and read config file if in child dir of client's project dir

* refractor local config file manager

* minor typo

* WIP

* change flow of project create command, minor refractor in local config

* change flow of cli, if project not found, set local config to none instead

* bug fix when user initializes a project

* change flow of command, create project locally b4 doing it in the backend

* refractor for commands using local config

* added a decorator to check if deploifai project found

* change flow of commmand again, bug fix for duplicate local file names

* change command flow, no more loops if invalid name

* minor bug fix

* project command: create cloud profile (#17)

* support gcp for the feature, added some enums, minor bug fix

* Project create command (#16)

* enable create command

* prompt workspace and query cloud profile in create command

* calls backend graphql api to createProject

* fix minor bugs of wrong api call, add some msg after api call

* add a validation for project name

* move cli msg to command callback instead of during api calling, minor bug fix

* push everything

* add is_authenticated decorator and refactor to use graphql fragments

* bump package version to 0.1.2

* refractor auth checking, minor bug fix

Co-authored-by: Sean Chok <seanchok@gmail.com>

* gcp cloud profile creation, refractor auth checking

* parse gcp key json file as string

* rm unnecessary imports

* Project Browse Command (#19)

* Project Browse Command

Adding project browse command to cli and get_workspace function to api

* Changes

Improved the browse and get project function

* final refactor and test

* bump package version to 0.1.3

Co-authored-by: Sean Chok <seanchok@gmail.com>

* refractor cloud profile creation

* change app structure for cloud profile creation

* minor bug fix on passing variables for querying graphql

* minor bug fix

* minor issue

Co-authored-by: Sean Chok <seanchok@gmail.com>
Co-authored-by: ExtinctWolf83 <89630581+ExtinctWolf83@users.noreply.github.com>

* minor refractor on global config

* traverse up recursively and read config file if in child dir of client's project dir

* refractor local config file manager

* minor typo

* WIP

* change flow of project create command, minor refractor in local config

* change flow of cli, if project not found, set local config to none instead

* bug fix when user initializes a project

* change flow of command, create project locally b4 doing it in the backend

* refractor for commands using local config

* added a decorator to check if deploifai project found

* change flow of commmand again, bug fix for duplicate local file names

* change command flow, no more loops if invalid name

* minor bug fix

Co-authored-by: Sean Chok <seanchok@gmail.com>
Co-authored-by: ExtinctWolf83 <89630581+ExtinctWolf83@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloud profile create command
3 participants