Skip to content

Conversation

@ebinbellini
Copy link

  • Added endpoint for updating the name of the logged in user by fetching from the member registry.
  • The button to update user info from our member registry now calls that endpoint.
  • Added a new Button component with a cool animation while it's loading to show that member data is being fetched.
  • Added an endpoint to fetch the membership status and how long the user has been a user.
  • The account page now calls that endpoint and displays the information in the "Membership status" card.
  • Added requests to requirements.txt to be able to use the unicore endpoints.

- Added endpoint for updating the name of the logged in user by fetching
  from the member registry.
- The button to update user info from our member registry now calls that
  endpoint.
- Added a new Button component with a cool animation while it's loading
  to show that member data is being fetched.
- Added an endpoint to fetch the membership status and how long the user
  has been a user.
- The account page now calls that endpoint and displays the information
  in the "Membership status" card.
- Added requests to requirements.txt to be able to use the unicore
  endpoints.
@ebinbellini ebinbellini changed the base branch from feature/translation to dev January 29, 2026 18:28

Choose a reason for hiding this comment

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

Hi @ebinbellini, may I know why this model is deleted?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, should have mentioned this in the PR, but this code is unused and the logic is duplicated by Member in backend/backend/models.py and MemberManager in backend/backend/models.py, so this file isn't needed.

Copy link
Author

Choose a reason for hiding this comment

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

Actually, what does differently is to fetch some data from Unicore. I added back some of that functionality to the create_user method on MemberManager. Also I removed the create_superuser which seemed superfluous.

- Fetch id from Unicore in create_user
- Made create_user take explicit arguments
- Removed superfluous create_superuser
- Removed a console.log on the account page
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.

3 participants