Skip to content

Testplan multi-clone - #4001

Merged
atodorov merged 10 commits into
masterfrom
testplan-multi-clone
Sep 30, 2026
Merged

atodorov merged 10 commits into
masterfrom
testplan-multi-clone

Conversation

@atodorov

@atodorov atodorov commented May 26, 2025 •

Copy link
Copy Markdown
Member

Cherry-picks some of the initial work in #3985 and refactors it to better fit the existing code style and how we do things in Kiwi TCMS.

@atodorov
atodorov marked this pull request as draft May 26, 2025 19:23
Comment thread tcms/testplans/static/testplans/js/search.js Fixed
@oskarhurst

Copy link
Copy Markdown
Contributor

Hi @atodorov, sorry I got distracted away from this issue. Is this still something you are intrested in adding into Kiwi. Is there anything I can do to help?

@atodorov

atodorov commented Nov 7, 2025

Copy link
Copy Markdown
Member Author

Is this still something you are intrested in adding into Kiwi.

Yes, although it's not an immediate priority.

Is there anything I can do to help?

Not for now. I'll let you know once I can get back to this.

@atodorov
atodorov force-pushed the testplan-multi-clone branch 2 times, most recently from 3e2c380 to bee0131 Compare September 29, 2026 18:06
Comment thread tcms/testplans/static/testplans/js/search.js Fixed
@atodorov
atodorov force-pushed the testplan-multi-clone branch 2 times, most recently from 81edcf6 to cf68720 Compare September 30, 2026 09:44
@kiwitcms-bot
kiwitcms-bot force-pushed the testplan-multi-clone branch 4 times, most recently from 850a887 to ea1202f Compare September 30, 2026 10:04
@atodorov
atodorov force-pushed the testplan-multi-clone branch from ea1202f to c609716 Compare September 30, 2026 10:07
oskarhurst and others added 8 commits September 30, 2026 13:29
The multi-clone URL is built from the checkbox DOM, never from the
DataTables Select extension state, so table.row().select()/deselect()
only maintained unused state.

initComplete now only checks/unchecks the row checkboxes without firing
a change event for them.
When selecting test plans for multi-clone do not automatically include
the children of a parent row. Only explicitly checked rows are cloned.

NOTE: 'Select all' only affects visible checkboxes
Some rows are hidden (e.g. child rows of an expanded parent) so skip
them when the header checkbox is toggled.
to prevent it from showing inside 'Column visibility' selection
make the button more square-ish which looks better with the rest of the
buttons. The fa-code-fork icon is very narrow and doesn't look good.

Also update button text to just the action -> "Clone"
Render data-plan-id on each checkbox, sourced from data.id, and read it
directly via jQuery .data() instead of digging the ID out of the third
table cell.
Both columns inherited the default cell padding and grew as wide as the
ID column, leaving a lot of empty space around the checkbox and the
expand marker. Move the override into a standalone stylesheet and pin
the columns to their content.
@atodorov atodorov changed the title WIP: Testplan multi-clone Testplan multi-clone Sep 30, 2026
@atodorov
atodorov marked this pull request as ready for review September 30, 2026 11:28
@atodorov
atodorov merged commit e66098a into master Sep 30, 2026
38 of 40 checks passed
@atodorov
atodorov deleted the testplan-multi-clone branch September 30, 2026 12:12
@atodorov atodorov mentioned this pull request Sep 30, 2026
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