Skip to content

fix: refresh search token after library #12

Merged
Waleed-Mujahid merged 1 commit into
develop-ulmofrom
waleed/8307
Mar 9, 2026
Merged

fix: refresh search token after library #12
Waleed-Mujahid merged 1 commit into
develop-ulmofrom
waleed/8307

Conversation

@Waleed-Mujahid

Copy link
Copy Markdown
Member

Description

This PR cherry-picks upstream (#2924)

Ticket

https://projects.arbisoft.com/project/edly-product/task/8307

creation for course creator access

  When a course creator creates a new library, the cached JWT token for
  Meilisearch needs to be refreshed to include the new library's access_id.
  Without this, newly added components won't appear in search results until
  the page is refreshed.

  This works in conjunction with the backend fix that creates SearchAccess
  records immediately on library creation.

  The fix invalidates the content_search query, triggering React Query to
  refetch the token with updated access permissions.
@Waleed-Mujahid Waleed-Mujahid self-assigned this Mar 9, 2026
@Waleed-Mujahid
Waleed-Mujahid merged commit c5e18cf into develop-ulmo Mar 9, 2026
3 of 4 checks passed
@Waleed-Mujahid
Waleed-Mujahid deleted the waleed/8307 branch March 9, 2026 09:13
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.

2 participants