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

feat: import and update a project #186

Merged
merged 1 commit into from
May 2, 2023
Merged

feat: import and update a project #186

merged 1 commit into from
May 2, 2023

Conversation

drstrangelooker
Copy link
Collaborator

@drstrangelooker drstrangelooker commented May 2, 2023

Creating a project is a multistep process.

  1. Change to dev mode.
  2. Create the project without git config
  3. Create the repository credentials # not show here yet
  4. Update the project with the git config
gzr session login --host looker.example.com
gzr session get --token_file --host  looker.example.com
# observe that the workspace_id is `production`
gzr session update dev --token_file --host looker.example.com
gzr session get --token_file --host  looker.example.com
# observe that the workspace_id is `dev`
$ cat Project_faa.json 
{
  "name": "faa",
  "uses_git": true
}
gzr project import Project_faa.json --token_file --host looker.example.com
$ cat bare_repo.json 
{
  "git_remote_url": null,
  "git_service_name": "bare"
}
gzr project update faa-drstrangelove bare_repo.json --token_file --host looker.example.com

Copy link
Contributor

@jkaster jkaster left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

Ruby-CI Tests

    4 files      4 suites   1m 30s ⏱️
136 tests 136 ✔️ 0 💤 0 ❌
544 runs  544 ✔️ 0 💤 0 ❌

Results for commit 26b70c0.

@github-actions

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants