Skip to content

Add TestCase duration filters to case search#4358

Closed
absalonCRC wants to merge 1 commit into
kiwitcms:masterfrom
absalonCRC:testcase-duration-search-filters
Closed

Add TestCase duration filters to case search#4358
absalonCRC wants to merge 1 commit into
kiwitcms:masterfrom
absalonCRC:testcase-duration-search-filters

Conversation

@absalonCRC

Copy link
Copy Markdown

Summary

  • add setup/testing/expected duration min/max filters to /cases/search/
  • normalize duration RPC filter values so search UI seconds and API duration strings work with DurationField lookups
  • annotate expected_duration for TestCase.filter so it can be filtered the same way it is returned

Testing

  • LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 .venv/bin/python manage.py test -v2 --noinput --settings=tcms.settings.test tcms.rpc.tests.test_testcase.TestCaseFilter tcms.testcases.tests.test_views.TestSearchCases
  • git diff --check

Closes #1923.

@atodorov

Copy link
Copy Markdown
Member

Stop the AI slop.

Duplicate of #4357

@atodorov atodorov closed this May 21, 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.

2 duration fields in TestCase class

2 participants