You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/08 01:54:18 UTC
[PR] feat(certs): show the last successful load time [rocketmq-dashboard]
yyqdbngt opened a new pull request, #4097:
URL: https://github.com/apache/rocketmq-dashboard/pull/4097
## Summary
Show the last successful certificate-list load time ("最近更新 HH:mm:ss", i18n key `common.lastUpdated`) in the K8s certificates page toolbar. A successful `listK8sCerts` response (initial load or the new manual refresh button) stamps `Date.now()`; failed loads keep the previous successful value. The indicator is hidden until the first successful load. A "刷新" (Refresh) button was added next to it because the page previously had no way to reload the list.
## Why
The certificate list only loads once on mount, and the page had no refresh control, so operators could not tell how stale the records were. This adds a refresh affordance plus a freshness indicator, following the same pattern as the clients/proxy pages.
## Testing
- Local type-check: `cd web && ./node_modules/.bin/tsc -b tsconfig.app.json` → exit 0.
- Server Node 20: `./node_modules/.bin/vitest run src/pages/cluster/__tests__/K8sCertsPage.test.tsx` → all tests green.
- New tests (no existing test covered freshness):
- shows the last successful cert load time;
- updates the load time after a successful manual refresh;
- keeps the previous load time when a refresh fails.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(certs): show the last successful load time [rocketmq-dashboard]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on PR #4097:
URL: https://github.com/apache/rocketmq-dashboard/pull/4097#issuecomment-5601184514
⚠️ **Merge conflict detected**
This PR has conflicts with the base branch and cannot be merged. Please rebase or merge the base branch into your branch and resolve the conflicts:
```bash
git fetch origin
git checkout codex/yy-certs-freshness
git rebase origin/master
# resolve conflicts, then:
git push --force-with-lease
```
This is a one-time reminder. Feel free to @mention me for a re-review after conflicts are resolved.
---
*Automated notification by github-manager*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(certs): show the last successful load time [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #4097: feat(certs): show the last successful load time
URL: https://github.com/apache/rocketmq-dashboard/pull/4097
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org