View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0032470 | mantisbt | api rest | public | 2023-04-30 05:12 | 2026-09-02 12:56 |
| Reporter | vboctor | Assigned To | vboctor | ||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.25.7 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0032470: REST API: Project Category Add/Update/Delete | ||||
| Description | Add APIs for managing project categories | ||||
| Tags | No tags attached. | ||||
|
Following discussion in PR https://github.com/mantisbt/mantisbt/pull/1853, the new endpoints should also allow enabling/disabling categories (see 0031017). |
|
|
MantisBT: master 1358aa93 2026-08-23 02:25 Details Diff |
Category API: add project category command Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - core/category_api.php | Diff File | ||
| add - core/commands/CategoryAddCommand.php | Diff File | ||
|
MantisBT: master ccc48250 2026-08-23 02:25 Details Diff |
Category API: add category update command Fixes 0032470 |
Affected Issues 0032470 |
|
| add - core/commands/CategoryUpdateCommand.php | Diff File | ||
|
MantisBT: master 12850f72 2026-08-23 02:25 Details Diff |
Category API: add category delete command Fixes 0032470 |
Affected Issues 0032470 |
|
| add - core/commands/CategoryDeleteCommand.php | Diff File | ||
|
MantisBT: master ff9dfaf3 2026-08-23 02:25 Details Diff |
Category API: add category get command Fixes 0032470 |
Affected Issues 0032470 |
|
| add - core/commands/CategoryGetCommand.php | Diff File | ||
|
MantisBT: master 68609e41 2026-08-23 02:25 Details Diff |
REST API: expose project category commands Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - api/rest/mantisbt_openapi.yaml | Diff File | ||
| mod - api/rest/restcore/projects_rest.php | Diff File | ||
|
MantisBT: master 5c5b7267 2026-08-23 02:25 Details Diff |
SOAP API: use project category commands Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - api/soap/mc_project_api.php | Diff File | ||
|
MantisBT: master f734bff6 2026-08-23 02:25 Details Diff |
Tests: cover project category APIs Fixes 0032470 |
Affected Issues 0032470 |
|
| add - tests/Mantis/CategoryCommandTest.php | Diff File | ||
| add - tests/Mantis/CategoryDeleteCommandTest.php | Diff File | ||
| add - tests/rest/RestProjectCategoryTest.php | Diff File | ||
| mod - tests/soap/CategoryTest.php | Diff File | ||
|
MantisBT: master c867fcc0 2026-08-23 02:25 Details Diff |
Web UI: use project category commands Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - manage_proj_cat_add.php | Diff File | ||
| mod - manage_proj_cat_copy.php | Diff File | ||
| mod - manage_proj_cat_delete.php | Diff File | ||
| mod - manage_proj_cat_update.php | Diff File | ||
|
MantisBT: master 596ae02a 2026-08-23 02:46 Details Diff |
Project categories: use enabled and support global categories Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - api/rest/mantisbt_openapi.yaml | Diff File | ||
| mod - api/soap/mc_project_api.php | Diff File | ||
| mod - core/commands/CategoryAddCommand.php | Diff File | ||
| mod - core/commands/CategoryDeleteCommand.php | Diff File | ||
| mod - core/commands/CategoryUpdateCommand.php | Diff File | ||
| mod - manage_proj_cat_update.php | Diff File | ||
| mod - tests/Mantis/CategoryCommandTest.php | Diff File | ||
| mod - tests/rest/RestProjectCategoryTest.php | Diff File | ||
|
MantisBT: master c132af68 2026-08-23 04:38 Details Diff |
Preserve stale category handler assignments Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - core/category_api.php | Diff File | ||
| mod - core/commands/CategoryGetCommand.php | Diff File | ||
| mod - core/commands/CategoryUpdateCommand.php | Diff File | ||
| mod - tests/Mantis/CategoryCommandTest.php | Diff File | ||
|
MantisBT: master abef802d 2026-08-23 04:45 Details Diff |
Use category command in project edit page Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - manage_proj_edit_page.php | Diff File | ||
|
MantisBT: master 981b41ce 2026-08-23 04:45 Details Diff |
Use category command in projects page Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - manage_proj_page.php | Diff File | ||
|
MantisBT: master a148aa0a 2026-08-23 04:46 Details Diff |
Use category command in category edit page Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - manage_proj_cat_edit_page.php | Diff File | ||
|
MantisBT: master abfbb131 2026-08-23 14:14 Details Diff |
Apply category command style improvements Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - api/rest/restcore/projects_rest.php | Diff File | ||
| mod - api/soap/mc_project_api.php | Diff File | ||
| mod - core/category_api.php | Diff File | ||
| mod - core/commands/CategoryAddCommand.php | Diff File | ||
| mod - core/commands/CategoryDeleteCommand.php | Diff File | ||
| mod - core/commands/CategoryGetCommand.php | Diff File | ||
| mod - core/commands/CategoryUpdateCommand.php | Diff File | ||
| mod - core/print_api.php | Diff File | ||
| mod - manage_proj_cat_add.php | Diff File | ||
| mod - manage_proj_cat_copy.php | Diff File | ||
| mod - manage_proj_cat_delete.php | Diff File | ||
| mod - manage_proj_cat_edit_page.php | Diff File | ||
| mod - manage_proj_cat_update.php | Diff File | ||
| mod - manage_proj_edit_page.php | Diff File | ||
| mod - manage_proj_page.php | Diff File | ||
| mod - tests/Mantis/CategoryCommandTest.php | Diff File | ||
| mod - tests/Mantis/CategoryDeleteCommandTest.php | Diff File | ||
| mod - tests/soap/CategoryTest.php | Diff File | ||
|
MantisBT: master 4b0c66f1 2026-08-23 14:50 Details Diff |
Standardize handler field handling Fixes 0032470 |
Affected Issues 0032470 |
|
| mod - api/rest/mantisbt_openapi.yaml | Diff File | ||
| mod - api/soap/mc_project_api.php | Diff File | ||
| mod - core/commands/CategoryAddCommand.php | Diff File | ||
| mod - core/commands/CategoryGetCommand.php | Diff File | ||
| mod - core/commands/CategoryUpdateCommand.php | Diff File | ||
| mod - manage_proj_cat_edit_page.php | Diff File | ||
| mod - manage_proj_cat_update.php | Diff File | ||
| mod - manage_proj_edit_page.php | Diff File | ||
| mod - manage_proj_page.php | Diff File | ||
| mod - tests/Mantis/CategoryCommandTest.php | Diff File | ||
| mod - tests/rest/RestProjectCategoryTest.php | Diff File | ||
|
MantisBT: master 3c07e41e 2026-08-30 05:59 Details Diff |
PHPUnit: fix skipped Category tests Incorrect check for a global default category caused some tests to be skipped in: - testDeleteCategoryReassignsIssues - testProjectCategoryCannotDeleteDefault Check was adjusted to also work when the default category is global. Issue 0032470 |
Affected Issues 0032470 |
|
| mod - tests/rest/RestProjectCategoryTest.php | Diff File | ||
| mod - tests/soap/CategoryTest.php | Diff File | ||
|
MantisBT: master 70a18e52 2026-08-30 06:15 Details Diff |
Fix testDeleteCategoryReassignsIssues PHPUnit was throwing an error, due to attempting to delete the category created for the test twice (once as part of the test itself, and again during tearDown). 1) Mantis\tests\soap\CategoryTest::testDeleteCategoryReassignsIssues SoapFault: Error Type: APPLICATION ERROR 0001503, Error Description: Category "soaptest_source_20260830_121111" not found for project "PHPUnit". Solved by not adding the category to categoryNamesToDelete. Issue 0032470 |
Affected Issues 0032470 |
|
| mod - tests/soap/CategoryTest.php | Diff File | ||