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

[DOCS] Mini-typo in update-a-user page #5798

Open
patrickfleith opened this issue Jan 29, 2025 · 2 comments
Open

[DOCS] Mini-typo in update-a-user page #5798

patrickfleith opened this issue Jan 29, 2025 · 2 comments
Assignees

Comments

@patrickfleith
Copy link

Which page or section is this issue related to?

Hi, I have finally some time digging into argilla. First of all congrats for the great tool.

I spotted a mini typo while reading the docs

The documentation update a user suggest the following:

import argilla as rg

client = rg.Argilla(api_url="<api_url>", api_key="<api_key>")

user_to_update = client.users('my_username')

user.username = 'new_username'
user.first_name = 'new_first_name'
user.last_name = 'new_last_name'
user.role = 'admin'

updated_user = user_to_update.update()

I believe when updating the fields it should be

user_to_update.username = 'new_username'
user_to_update.first_name = 'new_first_name'
user_to_update.last_name = 'new_last_name'
user_to_update.role = 'admin'
@davidberenstein1957
Copy link
Member

Hi @patrickfleith thanks for highlighting this. Would you be able to fix this in a PR?

@patrickfleith
Copy link
Author

Sure

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

No branches or pull requests

2 participants