Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing test plans in search test plan page #3313

Closed
mnive opened this issue Aug 10, 2023 · 1 comment
Closed

Missing test plans in search test plan page #3313

mnive opened this issue Aug 10, 2023 · 1 comment
Projects

Comments

@mnive
Copy link

mnive commented Aug 10, 2023

HINT: try to reproduce bugs and errors at https://public.tenant.kiwitcms.org!
This is always running the latest version and will automatically submit
traceback and debugging information to us!

Description of problem

In the Search test plan page while expanding the parent plan, some child test plans are not listed in the view

Version or commit hash (if applicable)

12.5

Steps to Reproduce

  1. Create a parent test plan with multi level nested child test plans.
  2. From the Search Test Plans page, filter by product and select the test plan created in step-1
  3. Expand the parent level test plans to view the test plan hierarchy

Actual results

All the test plans are not listed and some test plans are missing in the view.
Click on the parent level test plan and click on expand arrow, all the test plans are listed there.

image

Expected results

All the test plans should be listed as we expand the parent level test plan

Additional info (Python traceback, logs, etc.)

@atodorov atodorov added this to To do in BACKLOG Aug 11, 2023
@atodorov
Copy link
Member

@mnive can you replicate the same on public.tenant.kiwitcms.org ?

From the Search Test Plans page, filter by product and select the test plan created in step-1

Q2: Do all of the 5 child test plans have the same product as the parent ?

Notes:
my suspicion is that TP-963 is slightly different from the rest and from its parent and that's why is is missing from the search. I can replicate a similar scenario with https://public.tenant.kiwitcms.org/plan/7288/another-parent-tp

TP-7288 and it's first 4 children have type: Acceptance while TP-7293: Level 5 has a Type of Function. When I filter the search results by Type and select Acceptance as the filter value the fifth child doesn't appear in the results. When I don't filter by Type then the fifth child appears in the results.

The way child-parent relationships are displayed in the search table is that child rows are groupped together and then hidden from view before the table is rendered:
https://github.com/kiwitcms/Kiwi/blob/master/tcms/testplans/static/testplans/js/search.js#L127-L134

So this looks like an issue with managing expectations because the search table can't show rows which are being filtered out due to the search criteria.

I will keep this issue open for now and see if we can idicate that the resulting child-set may not be complete !

atodorov added a commit that referenced this issue Nov 27, 2023
to let the user know what parent-child hierarchies shown on the page
may be incomplete because the data has been filtered out by their search
criteria.

Closes #3313
BACKLOG automation moved this from To do to Done Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants