[Integrate-2699] Enable cache refreshment for webapi dataset#2854
Open
hengxian-jiang wants to merge 4 commits into
Open
[Integrate-2699] Enable cache refreshment for webapi dataset#2854hengxian-jiang wants to merge 4 commits into
hengxian-jiang wants to merge 4 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds end-to-end support (UI + backend) for manually refreshing the TrexSQL cache for webapi datasets, and surfaces cache status details in the System Admin dataset UI.
Changes:
- Adds a new “Refresh cache” action in the System Admin dataset action selector, wired to a new
RefreshCacheDialog. - Enhances Source Information to fetch and display cache status (last refreshed / building / no cache) for webapi datasets.
- Adds backend support for POST
/system-portal/dataset/:id/refresh-cacheand GET/system-portal/dataset/:id/cache-status, including auth routing and Deno tests.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| plugins/ui/apps/portal/src/types/study.ts | Extends action value union to include refresh-cache. |
| plugins/ui/apps/portal/src/plugins/SystemAdmin/StudyOverview/StudyOverview.tsx | Wires the refresh-cache handler and dialog into Study Overview. |
| plugins/ui/apps/portal/src/plugins/SystemAdmin/StudyOverview/SourceInformationDialog/SourceInformationDialog.tsx | Fetches and displays cache status for webapi datasets. |
| plugins/ui/apps/portal/src/plugins/SystemAdmin/StudyOverview/RefreshCacheDialog/RefreshCacheDialog.tsx | New UI dialog to trigger cache refresh. |
| plugins/ui/apps/portal/src/plugins/SystemAdmin/StudyOverview/RefreshCacheDialog/RefreshCacheDialog.scss | Styles for the new refresh-cache dialog. |
| plugins/ui/apps/portal/src/plugins/SystemAdmin/StudyOverview/ActionSelector/ActionSelector.tsx | Adds the refresh-cache action option and dispatch handler. |
| plugins/ui/apps/portal/src/contexts/app-context/states/translation-state.ts | Adds new i18n keys for refresh-cache UI and cache status text. |
| plugins/ui/apps/portal/src/constant.ts | Enables refresh-cache action for webapi dataset type. |
| plugins/ui/apps/portal/src/axios/system-portal.ts | Adds client calls for refresh-cache and cache-status endpoints. |
| plugins/ui/apps/portal/public/translations/zh.json | Adds Chinese translations for new refresh/cache status strings. |
| plugins/ui/apps/portal/public/translations/de.json | Adds German translations for new refresh/cache status strings. |
| plugins/functions/portal/src/webapi/webapi-source.service.ts | Adds refreshCache method and passes through lastModified. |
| plugins/functions/portal/src/webapi/webapi-source.service.test.ts | Adds Deno unit tests for cache status + refresh delegation. |
| plugins/functions/portal/src/webapi/webapi-source.api.ts | Extends cache-status response typing with lastModified. |
| plugins/functions/portal/src/dataset/dataset.controller.ts | Adds the refresh-cache endpoint (and existing cache-status route). |
| plugins/functions/package.json | Adds route auth scope entries for refresh-cache and cache-status. |
suwarnoong
reviewed
Jul 6, 2026
suwarnoong
approved these changes
Jul 6, 2026
csafreen
approved these changes
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge Checklist
Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.
developbranch)