Skip to content

feat: add API Migration Status page#48

Merged
tommaso-ascani merged 7 commits into
mainfrom
feat_migration_status_page
Apr 27, 2026
Merged

feat: add API Migration Status page#48
tommaso-ascani merged 7 commits into
mainfrom
feat_migration_status_page

Conversation

@tommaso-ascani
Copy link
Copy Markdown
Contributor

Add a migration status dashboard to track API endpoint migration progress from nethcti-server (legacy) to nethcti-middleware (new backend).

@tommaso-ascani tommaso-ascani self-assigned this Apr 22, 2026
@tommaso-ascani tommaso-ascani marked this pull request as ready for review April 22, 2026 10:45
@gsanchietti gsanchietti requested a review from Copilot April 22, 2026 10:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread scripts/extract-migration-status.py
Comment thread src/pages/migration-status.tsx Outdated
Comment thread .github/workflows/migration-status.yml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Member

@gsanchietti gsanchietti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash and merge

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 from static/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.

Comment thread scripts/extract-migration-status.py
Comment thread scripts/README.md Outdated
Comment thread src/pages/migration-status.tsx Outdated
Comment thread src/pages/migration-status.tsx
Comment thread src/pages/migration-status.tsx Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-status page that loads and displays migration stats + endpoint tables from static/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.

Comment thread scripts/extract-migration-status.py Outdated
Comment thread src/pages/migration-status.tsx
Comment thread src/pages/migration-status.tsx Outdated
Comment thread scripts/README.md
Comment thread .github/workflows/migration-status.yml
github-actions Bot pushed a commit that referenced this pull request Apr 27, 2026
@tommaso-ascani tommaso-ascani force-pushed the feat_migration_status_page branch from cadfa58 to 399fcb6 Compare April 27, 2026 14:32
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tommaso-ascani tommaso-ascani merged commit f710863 into main Apr 27, 2026
2 checks passed
@tommaso-ascani tommaso-ascani deleted the feat_migration_status_page branch April 27, 2026 14:59
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.

3 participants