Skip to content

2346 - Fixed root buttons of view, edit and export#2670

Merged
crivetimihai merged 7 commits intomainfrom
bugFix/2346-root-buttons-fix
Feb 7, 2026
Merged

2346 - Fixed root buttons of view, edit and export#2670
crivetimihai merged 7 commits intomainfrom
bugFix/2346-root-buttons-fix

Conversation

@VladMRusu1
Copy link
Copy Markdown
Collaborator

🐛 Bug-fix PR

Before opening this PR please:

  1. make lint - passes ruff, mypy, pylint
  2. make test - all unit + integration tests green
  3. make coverage - ≥ 80 %
  4. make docker docker-run-ssl or make podman podman-run-ssl
  5. Update relevant documentation.
  6. Tested with sqlite and postgres + redis.
  7. Manual regression no longer fails. Ensure the UI and /version work correctly.

📌 Summary

Fixed View/Edit/Export buttons from roots page to do an action and do not send an error in console anymore

🔁 Reproduction Steps

  1. Enter root page
  2. Try to click any button instead of delete
  3. Check Browser Console
  4. viewRoot/editRoot/exportRoot is not defined

🐞 Root Cause

💡 Fix Description

Implemented API and JavaScript logic function for view, edit and export. I have added also the modal for view and edit in html.
Updated API logic for POST Root to get also expected errors

🧪 Verification

Check Command Status
Lint suite make lint
Unit tests make test
Coverage ≥ 80 % make coverage
Manual regression no longer fails steps / screenshots

📐 MCP Compliance (if relevant)

  • Matches current MCP spec
  • No breaking change to MCP clients

✅ Checklist

  • Code formatted (make black isort pre-commit)
  • No secrets/credentials committed
Screenshot 2026-02-03 at 12 55 17 Screenshot 2026-02-03 at 12 55 09

Screenshot 2026-02-03 at 12 55 04

@VladMRusu1 VladMRusu1 self-assigned this Feb 3, 2026
@VladMRusu1 VladMRusu1 force-pushed the bugFix/2346-root-buttons-fix branch from 745dad2 to f1dbb66 Compare February 3, 2026 11:02
@VladMRusu1 VladMRusu1 marked this pull request as draft February 3, 2026 11:10
@VladMRusu1 VladMRusu1 marked this pull request as ready for review February 3, 2026 14:32
@crivetimihai
Copy link
Copy Markdown
Member

Thanks for implementing the View/Edit/Export root buttons, @VladMRusu1. CI is all green and the fix looks well-structured with tests included.

One thing to clean up: 10 unrelated files under plugins/unified_pdp/ and tests/unit/plugins/ are included that only add # -*- coding: utf-8 -*- headers. These likely came from an incorrect rebase picking up changes from another branch. Please remove them from this PR to keep it focused:

git checkout origin/main -- plugins/unified_pdp/ tests/unit/plugins/test_unified_pdp.py tests/unit/plugins/test_unified_pdp_plugin.py
git commit -s -m "chore: remove unrelated files from rebase"

After that cleanup, this should be ready to merge.

@crivetimihai crivetimihai self-assigned this Feb 4, 2026
Mihai-Vlad Rusu and others added 4 commits February 7, 2026 01:11
Signed-off-by: Mihai-Vlad Rusu <vladrusu@MacBookPro.lan>
Signed-off-by: Mihai-Vlad Rusu <vladrusu@MacBookPro.lan>
Signed-off-by: Mihai-Vlad Rusu <vladrusu@MacBookPro.lan>
- Move /changes endpoint before catch-all /{root_uri:path} to fix routing
- Remove debug print statement from update_root
- Restore correct test expectations for SSE endpoint

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
@crivetimihai crivetimihai force-pushed the bugFix/2346-root-buttons-fix branch from f64ebf1 to 9d5c3cc Compare February 7, 2026 01:19
- Normalize URIs in get/update/remove_root to match storage key
- Fix JS null-deref when Content-Disposition header is missing
- Fix misleading 'getting' log message in update_root
- Return Root object directly instead of dict for type consistency

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
@crivetimihai crivetimihai force-pushed the bugFix/2346-root-buttons-fix branch 2 times, most recently from fb2c41c to 9a78595 Compare February 7, 2026 10:17
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
@crivetimihai crivetimihai merged commit 379a4a0 into main Feb 7, 2026
1 check passed
@crivetimihai crivetimihai deleted the bugFix/2346-root-buttons-fix branch February 7, 2026 10:29
kcostell06 pushed a commit to kcostell06/mcp-context-forge that referenced this pull request Feb 24, 2026
* 2346 - Fixed root buttons of view, edit and export

Signed-off-by: Mihai-Vlad Rusu <vladrusu@MacBookPro.lan>

* Fixed lint, test and format issue

Signed-off-by: Mihai-Vlad Rusu <vladrusu@MacBookPro.lan>

* chore: remove unrelated files from rebase

Signed-off-by: Mihai-Vlad Rusu <vladrusu@MacBookPro.lan>

* fix: correct route ordering for /roots/changes endpoint

- Move /changes endpoint before catch-all /{root_uri:path} to fix routing
- Remove debug print statement from update_root
- Restore correct test expectations for SSE endpoint

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>

* fix: address code review findings

- Normalize URIs in get/update/remove_root to match storage key
- Fix JS null-deref when Content-Disposition header is missing
- Fix misleading 'getting' log message in update_root
- Return Root object directly instead of dict for type consistency

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>

* lint

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>

* lint

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>

---------

Signed-off-by: Mihai-Vlad Rusu <vladrusu@MacBookPro.lan>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Co-authored-by: Mihai-Vlad Rusu <vladrusu@MacBookPro.lan>
Co-authored-by: Mihai Criveti <crivetimihai@gmail.com>
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.

2 participants