Skip to content

Refactor(plex): improve get users list flow#787

Merged
arabcoders merged 2 commits intomasterfrom
dev
Feb 24, 2026
Merged

Refactor(plex): improve get users list flow#787
arabcoders merged 2 commits intomasterfrom
dev

Conversation

@arabcoders
Copy link
Owner

  • Updated getUsers function in both BackendAdd.vue and edit.vue to support requesting tokens for a specific user by adding withTokens and targetUser parameters. This allows fetching tokens only for the selected user instead of all users.
  • Added a "Generate Token" button to the Plex user selection UI in edit.vue, which triggers token generation for the currently selected user.
  • Improved logic for assigning and updating tokens and user metadata.
  • Added support for the target_user option in backend API endpoints and Plex user actions, so that token requests and responses are scoped to the specified user only.
  • Improved error handling in Plex backend actions and ensured the correct user information is passed when requesting tokens.
  • Added a test (test_get_users_list_target_token) to verify that tokens are only requested for the target user and not for all users.

@arabcoders arabcoders merged commit ee1c6bc into master Feb 24, 2026
12 checks passed
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.

1 participant