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

[FEATURE] Add list workspace command python -m argilla workspaces list #3587

Closed
Tracked by #3579
gabrielmbmb opened this issue Aug 18, 2023 · 0 comments · Fixed by #3594
Closed
Tracked by #3579

[FEATURE] Add list workspace command python -m argilla workspaces list #3587

gabrielmbmb opened this issue Aug 18, 2023 · 0 comments · Fixed by #3594
Labels
area: cli Indicates that an issue or pull request is related to the Command Line Interface (CLI) good first issue Indicates a good issue for first-time contributors type: enhancement Indicates new feature requests
Milestone

Comments

@gabrielmbmb
Copy link
Member

gabrielmbmb commented Aug 18, 2023

Add a new command that will list the workspaces to which the logged in belongs. The command will make use of argilla.client.workspace.Workspace class and its method list to get the workspaces to which the user belongs. As rich is a dependency of Argilla, use rich.table.Table to display the workspaces.

The table will contain the following columns: ID, Name, Creation Date and Update Date.

python -m argilla workspaces list
@gabrielmbmb gabrielmbmb changed the title Add list workspace command python -m argilla workspaces list [FEATURE] Add list workspace command python -m argilla workspaces list Aug 18, 2023
@gabrielmbmb gabrielmbmb added type: enhancement Indicates new feature requests good first issue Indicates a good issue for first-time contributors client labels Aug 18, 2023
@gabrielmbmb gabrielmbmb added this to the 1.15.0 milestone Aug 18, 2023
@gabrielmbmb gabrielmbmb modified the milestones: v1.15.0, v1.16.0 Aug 28, 2023
gabrielmbmb added a commit that referenced this issue Aug 29, 2023
# Description

**NOTE**: This PR is not ready yet, it assumes the [PR
3582](#3582) is already
integrated.

This PR adds a new cli command `python -m argilla workspaces list`.

Closes #3587

**Type of change**

(Please delete options that are not relevant. Remember to title the PR
according to the type of change)

- [x] New feature (non-breaking change which adds functionality)

**How Has This Been Tested**

No tests were done yet. Maybe a new module under `tests/unit/tasks`
should be added?
In that case, the current implementation (when properly logged), prints
to the console a table like:


![image](https://github.com/argilla-io/argilla/assets/56895847/4ec57268-70d4-495c-9198-2a5692f9bc50)

**Checklist**

- [ ] I added relevant documentation
- [x] I followed the style guidelines of this project
- [x] I did a self-review of my code
- [ ] I made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK)
(see text above)
- [ ] I have added relevant notes to the `CHANGELOG.md` file (See
https://keepachangelog.com/)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: gabrielmbmb <gmartinbdev@gmail.com>
@gabrielmbmb gabrielmbmb added area: cli Indicates that an issue or pull request is related to the Command Line Interface (CLI) and removed client labels Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cli Indicates that an issue or pull request is related to the Command Line Interface (CLI) good first issue Indicates a good issue for first-time contributors type: enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant