feat: add API Migration Status page#48
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an “API Migration Status” dashboard to the Docusaurus site to track REST endpoint migration progress from nethcti-server (legacy) to nethcti-middleware (new backend), backed by a generated JSON report and an automated updater workflow.
Changes:
- Added a Docusaurus page (
/migration-status) that fetches and displays migration stats plus filterable endpoint tables. - Added a Python extractor script + a manual mapping file to generate
static/migration-data.json. - Added a scheduled GitHub Actions workflow to regenerate and commit updated migration data; added a navbar link.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
static/migration-data.json |
Generated migration report consumed by the dashboard page. |
src/pages/migration-status.tsx |
New UI page rendering stats/progress and endpoint tables from the JSON report. |
scripts/extract-migration-status.py |
New extractor that scans the two repos and produces the JSON report + stats. |
migration-map.json |
Manual mapping overrides for endpoints that don’t match 1:1. |
docusaurus.config.ts |
Adds “Migration Status” to the navbar. |
.github/workflows/migration-status.yml |
Scheduled/dispatch workflow to regenerate and commit updated report data. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
d77cfdd to
55f5d54
Compare
There was a problem hiding this comment.
Pull request overview
Adds an API migration status dashboard to the docs site, backed by a generated JSON dataset that tracks which legacy nethcti-server endpoints are migrated/mapped to nethcti-middleware.
Changes:
- Adds a Docusaurus page (
/migration-status) that renders migration stats and endpoint tables fromstatic/migration-data.json. - Introduces a Python extractor script (plus a manual mapping file) to generate/maintain the migration dataset.
- Adds a scheduled GitHub Actions workflow to regenerate and commit the dataset automatically.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
static/migration-data.json |
Generated snapshot of endpoint inventory + migration status consumed by the dashboard. |
src/pages/migration-status.tsx |
New dashboard page UI (stats, filters, tables) fetching the JSON from /migration-data.json. |
scripts/extract-migration-status.py |
Extracts endpoints from upstream repos and categorizes migration status; writes static/migration-data.json. |
scripts/README.md |
Documents how to generate the migration dataset locally and how it behaves. |
migration-map.json |
Defines manual legacy→middleware endpoint mappings used during categorization. |
docusaurus.config.ts |
Adds “Migration Status” navbar link to the new page. |
.github/workflows/migration-status.yml |
Scheduled/manual workflow to regenerate and push updated dataset to the repo. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… regeneration option
There was a problem hiding this comment.
Pull request overview
Adds a Docusaurus “API Migration Status” dashboard to visualize endpoint migration progress from nethcti-server (legacy) to nethcti-middleware (new backend), backed by a generated JSON report and an automated refresh workflow.
Changes:
- Add a new
/migration-statuspage that loads and displays migration stats + endpoint tables fromstatic/migration-data.json. - Introduce a Python extractor script + manual mapping file to generate/annotate migration status data.
- Add a scheduled GitHub Actions workflow to regenerate and commit
static/migration-data.json.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
static/migration-data.json |
Generated migration report consumed by the dashboard page. |
src/pages/migration-status.tsx |
New dashboard UI: stats, filters, and endpoint tables. |
scripts/extract-migration-status.py |
Extracts endpoints from upstream repos, applies mappings, computes stats, writes JSON. |
scripts/README.md |
Documents how to generate/refresh the migration data. |
migration-map.json |
Manual mappings for endpoints that don’t match 1:1 between legacy and middleware. |
docusaurus.config.ts |
Adds a navbar link to the new dashboard page. |
.github/workflows/migration-status.yml |
Scheduled + dispatch workflow to update the generated JSON in-repo. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
cadfa58 to
399fcb6
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a migration status dashboard to track API endpoint migration progress from
nethcti-server(legacy) tonethcti-middleware(new backend).