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

Allow searching for jobs by comment text #5425

Merged
merged 3 commits into from
Jan 15, 2024

Conversation

Martchus
Copy link
Contributor

See particular commit messages and https://progress.opensuse.org/issues/151402

It works exactly like the `match` parameter and is also implemented as part
of the complex query function.

I tested the performance locally with a dump of the OSD database. Here it
takes around 1.5 seconds to load the finished jobs on the "All tests" page.
When adding `?comment=poo` the time goes up to around 3.4 seconds. When
specifying a comment parameter so that only a few jobs are returned like
`?comment=poo%23119515` the time is even a bit lower (here 2.2 seconds for
this example).
This test means the lookup speed has more than doubled when the `comment`
parameter is used. However, it is still acceptably low for the default
limit of 500 jobs.

Related ticket: https://progress.opensuse.org/issues/151402
t/10-tests_overview.t Outdated Show resolved Hide resolved
The same as the previous commit did for the "All tests" page.

Related ticket: https://progress.opensuse.org/issues/151402
Copy link

codecov bot commented Jan 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6814720) 98.37% compared to head (c2c838f) 98.37%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5425   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         389      389           
  Lines       37709    37724   +15     
=======================================
+ Hits        37097    37112   +15     
  Misses        612      612           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as is. You can consider adding a small help text like in

. '<p>Additionally you can use the <code>group_glob</code> and <code>not_group_glob</code> query parameters to include and exclude job groups with comma separated lists of globs, like <code>*kernel*,*Tumbleweed*</code>.</p>',

@mergify mergify bot merged commit 5365490 into os-autoinst:master Jan 15, 2024
41 checks passed
@Martchus Martchus deleted the comment-search branch January 16, 2024 00:53
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.

4 participants