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

Add option to set team in config for studio #527

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

amritghimire
Copy link
Contributor

As part of https://github.com/iterative/studio/issues/10774,
this adds a command as below:

datachain studio team team_name
Set default team to 'team_name' in <PATH>/.datachain/config
datachain studio team team_name --global
Set default team to 'team_name' in /Users/amritghimire/Library/Application Support/datachain/config

As part of iterative/studio#10774,
this adds a command as below:

```sh
datachain studio team team_name
Set default team to 'team_name' in <PATH>/.datachain/config
```

```sh
datachain studio team team_name --global
Set default team to 'team_name' in /Users/amritghimire/Library/Application Support/datachain/config
```
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 94.11765% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.38%. Comparing base (a70f1be) to head (38cd627).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/datachain/studio.py 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #527      +/-   ##
==========================================
+ Coverage   87.36%   87.38%   +0.01%     
==========================================
  Files          97       97              
  Lines       10136    10151      +15     
  Branches     1386     1387       +1     
==========================================
+ Hits         8855     8870      +15     
  Misses        923      923              
  Partials      358      358              
Flag Coverage Δ
datachain 87.32% <94.11%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/datachain/cli.py Outdated Show resolved Hide resolved
src/datachain/cli.py Outdated Show resolved Hide resolved
action="store",
help="The name of the team to set as the default.",
)
team_parser.add_argument(
Copy link
Member

Choose a reason for hiding this comment

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

is it system or user config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By default, it is global config. Example: /Users/amritghimire/Library/Application Support/datachain/config

Copy link
Member

@shcheklein shcheklein left a comment

Choose a reason for hiding this comment

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

some minor comments / questions

Copy link

cloudflare-workers-and-pages bot commented Oct 22, 2024

Deploying datachain-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: 38cd627
Status: ✅  Deploy successful!
Preview URL: https://494e0d5f.datachain-documentation.pages.dev
Branch Preview URL: https://amrit-studio-team.datachain-documentation.pages.dev

View logs

@amritghimire amritghimire merged commit 02ec01f into main Oct 22, 2024
38 checks passed
@amritghimire amritghimire deleted the amrit/studio-team branch October 22, 2024 14:30
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