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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin interface: Change display name (#2849) #2908

Merged
merged 1 commit into from Apr 27, 2023

Conversation

DeanChugall
Copy link
Contributor

Hello 馃憢,

I hope you're doing great! I'm delighted to submit this pull request for enhancing the admin interface #2849 by adding the ability to change the display name of users.

馃専 Changes Made

Below is a summary of the changes I've made in this PR:

FRONTEND:


  • [id].tsx - remove isDisabled from FormControl.
  • oasst_api_client.ts - change API PUT url in set_user_status method to accept display_name parameter.
  • update_user.tsx add display_name parameter.

BACKEND:


  • user.py -> update update_user function signature *(added display_name: Optional[str] = None)
  • user_repository.py update update_user function signature *(added display_name: Optional[str] = None) and add check in if statment.

馃 Your Feedback is Valued

I appreciate your time in reviewing this PR, and I'm looking forward to any feedback or suggestions you might have. If you have any questions or need further clarification, please don't hesitate to reach out. I'll be more than happy to assist.

Thank you once again for considering this contribution to the project! Let's continue working together to make our admin interface even better! 馃槉

Best regards,

datatab.

Copy link
Collaborator

@notmd notmd left a comment

Choose a reason for hiding this comment

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

Thank you! Web changes lgtm

@notmd notmd linked an issue Apr 26, 2023 that may be closed by this pull request
Copy link
Collaborator

@melvinebenezer melvinebenezer left a comment

Choose a reason for hiding this comment

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

backend changes look fine

@melvinebenezer melvinebenezer merged commit 9e43d98 into LAION-AI:main Apr 27, 2023
4 checks passed
grgau pushed a commit to grgau/Open-Assistant that referenced this pull request May 8, 2023
### Hello 馃憢,

I hope you're doing great! I'm delighted to submit this pull request for
enhancing the admin interface LAION-AI#2849 by adding the ability to change the
display name of users.

## 馃専 Changes Made
Below is a summary of the changes I've made in this PR:

### FRONTEND:
---
- ```[id].tsx``` - remove ```isDisabled``` from FormControl.
- ```oasst_api_client.ts``` - change API PUT url in
```set_user_status``` method to accept ```display_name``` parameter.
- ```update_user.tsx``` add ```display_name``` parameter.

### BACKEND:
---
- ```user.py``` -> update ```update_user``` function signature *(added
```display_name: Optional[str] = None```)
- ```user_repository.py``` update ```update_user``` function signature
*(added ```display_name: Optional[str] = None```) and add check in if
statment.


## 馃 Your Feedback is Valued
I appreciate your time in reviewing this PR, and I'm looking forward to
any feedback or suggestions you might have. If you have any questions or
need further clarification, please don't hesitate to reach out. I'll be
more than happy to assist.

Thank you once again for considering this contribution to the project!
Let's continue working together to make our admin interface even better!
馃槉

Best regards,

datatab.
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.

Admin interface: Change display name
3 participants