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: changes related with migrating endpoints from API v0 to API v1 #4807

Closed
wants to merge 2 commits into from

Conversation

jfcalvo
Copy link
Member

@jfcalvo jfcalvo commented May 8, 2024

Description

This is a PR grouping all the changes needed on argilla repo related with changes on argilla-server migrating endpoints from API v0 to API v1.

Warning

This PR should be only merged once we merge the migration changes on argilla-server repository.

Closes #4806

Type of change

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (change restructuring the codebase without changing functionality)
  • Improvement (change adding some improvement to an existing functionality)
  • Documentation update

How Has This Been Tested

(Please describe the tests that you ran to verify your changes. And ideally, reference tests)

  • Test should be passing as expected.

Checklist

  • I added relevant documentation
  • follows the style guidelines of this project
  • 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 (see text above)
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

@jfcalvo jfcalvo requested a review from frascuchon May 8, 2024 14:09
jfcalvo added a commit to argilla-io/argilla-server that referenced this pull request May 13, 2024
)

# Description

This PR add a new endpoint `POST /api/v1/workspaces/:workspace_id/users`
to create a new user for a workspace.

Changes introduced in this new endpoint compared to the old one:
* Now we must provide the `user_id` in the body of the `POST` request
instead of adding it in the URL.
* I have changed the `create_workspace_user` context function so we need
an additional change in `argilla` repo. The PR with the changes on
argilla is here: argilla-io/argilla#4807
* As done with previous PRs the returned user doesn't has `full_name` or
`workspaces`.

Closes #155 

**Type of change**

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

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Refactor (change restructuring the codebase without changing
functionality)
- [ ] Improvement (change adding some improvement to an existing
functionality)
- [ ] Documentation update

**How Has This Been Tested**

- [x] Adding new tests for the endpoint.

**Checklist**

- [ ] I added relevant documentation
- [ ] follows the style guidelines of this project
- [ ] 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/)
@jfcalvo
Copy link
Member Author

jfcalvo commented May 16, 2024

These changes were already added on PR: #4826

@jfcalvo jfcalvo closed this May 16, 2024
@jfcalvo jfcalvo deleted the feat/move-api-v0-functionality-to-v1 branch May 16, 2024 10:07
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.

[TASK] Change argilla repository to adapt changes from argilla-server
1 participant