View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0030812 | mantisbt | other | public | 2022-07-28 23:41 | 2022-09-05 22:16 |
Reporter | sandyj | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Target Version | 2.26.0 | Fixed in Version | 2.26.0 | ||
Summary | 0030812: "Copy Categories From" copies global categories | ||||
Description | When using the "Copy Categories From" button when editing a project, all Global (All Projects) categories as well as local categories are copied across. Tested this with a project that has "Inherit Global Categories" checked as well as when this is unchecked. In both cases Global categories are copied. Only Local categories should be copied across. Possibly when "Inherit Global Categories" is UNchecked you may want to include Global categories but ideally they just check the box rather than copy them from another project. | ||||
Steps To Reproduce | Edit a project | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
I agree. |
|
Following discussion with @atrol in the original PR, I just submitted an alternative approach providing more flexibility by letting the user decide whether the copy operation should be restricted to the source project's "local" categories, excluding the global ones as well as those inherited from the parent project(s) or not. |
|
@sandyj, testing and feedback on the proposed implementations and thoughts about which one is better, would be appreciated. |
|
@dregad I don't think it makes sense to copy global categories. To copy them across once and then want independence from the global categories, defeats the purpose of the concept of Global vs Local. If they want independence, they need to create local categories. Giving them control is a good compromise. I'd make the 'Shallow' copy the default option. Ideally, if target project does not inherit global categories but copied project does, an idea might be to have a warning like "The project you are copying from inherits global categories, you may want to enable inheriting global categories." |
|
I thought the same initially, but I think @atrol made a good point (see PR discussion)
That's why I made the copy of global categories optional in the 2nd PR |
|
Thanks @dregad for considering my point. |
|
thanks @dregad ! The duplication is my main concern which this addresses. |
|
MantisBT: master 781cbb1e 2022-08-05 12:36 Details Diff |
Allow copy of categories excluding inherited ones Add a new checkbox next to the Copy to/from buttons on Manage Project Page, allowing user to decide whether the copy operation should be restricted to the source project's "local" categories, excluding the global ones as well as those inherited from the parent project(s). Fixes 0030812 |
Affected Issues 0030812 |
|
mod - lang/strings_english.txt | Diff File | ||
mod - manage_proj_cat_copy.php | Diff File | ||
mod - manage_proj_edit_page.php | Diff File |