Commit abcef4a
authored
fix: refresh search token after library (openedx#2924)
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.1 parent 5c1cdcf commit abcef4a
2 files changed
Lines changed: 5 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
0 commit comments