Skip to content

Conversation

@AdamWill
Copy link
Contributor

The number of builds to show per job group on the front page of the web UI is hardcoded to 3.

SUSE's openQA has a ton of job groups so only showing three per group makes sense, but not every instance has so many groups, and the front page can look unnecessarily empty. This allows the instance maintainer to set an appropriate value.

The value can be overridden for a single query with the limit_builds query param, but that's unwieldy and doesn't solve things for casual views of the home page.

@AdamWill AdamWill force-pushed the front-page-builds-configurable branch from 1e19008 to 9a2f92e Compare November 17, 2025 22:23
@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.26%. Comparing base (1801a6d) to head (3971eed).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6843   +/-   ##
=======================================
  Coverage   99.26%   99.26%           
=======================================
  Files         402      402           
  Lines       41396    41402    +6     
=======================================
+ Hits        41090    41096    +6     
  Misses        306      306           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

#api_hmac_time_tolerance = 300
## How many builds to show per job group on the web UI front page
## Can be overridden with the limit_builds query param
# frontpage_builds = 3
Copy link
Member

Choose a reason for hiding this comment

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

I think we can the page either index page or dashboard. I wouldn't introduce another term but if we already use frontpage elsewhere then it's fine

Copy link
Contributor Author

@AdamWill AdamWill Nov 18, 2025

Choose a reason for hiding this comment

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

Well, I think it's usually called 'dashboard', but it seems to be mostly in source code, not user/admin-facing docs. The word appears a few times in docs/UsersGuide.asciidoc , but only one time is it specifically referring to the home page and it doesn't really explain what it means (just says "index dashboard"). As a user/admin, if you say "dashboard" or "index dashboard" I really don't know what you mean. If you say "front page", I know what you mean. Still, I guess the comment explains it.

We can't really change it to 'dashboard_builds', though, because the group overviews are also called 'dashboards' and they do not use this value (and default to 10). So it'd have to be index_dashboard_builds ?

Copy link
Member

Choose a reason for hiding this comment

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

ok, fine. I guess at least "frontpage" is unique and not ambiguous :)

Copy link
Contributor

@d3flex d3flex left a comment

Choose a reason for hiding this comment

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

Also I think the [misc_limits] is better fit for this variable. wdyt?

@okurz
Copy link
Member

okurz commented Nov 18, 2025

Also I think the [misc_limits] is better fit for this variable. wdyt?

No. misc_limits is for asset limits, storage limits, functional limits but not display preferences. IMHO the current place for the newly added variable is fine

The number of builds to show per job group on the front page of
the web UI is hardcoded to 3.

SUSE's openQA has a ton of job groups so only showing three per
group makes sense, but not every instance has so many groups, and
the front page can look unnecessarily empty. This allows the
instance maintainer to set an appropriate value.

The value can be overridden for a single query with the
limit_builds query param, but that's unwieldy and doesn't solve
things for casual views of the home page.

Signed-off-by: Adam Williamson <[email protected]>
@AdamWill AdamWill force-pushed the front-page-builds-configurable branch from 9a2f92e to 3971eed Compare November 18, 2025 16:48
Copy link
Contributor

@Martchus Martchus left a comment

Choose a reason for hiding this comment

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

I still find that misc_limits is more intuitive. (And we do have display limits like next_jobs_default_limit there.) However, I don't really care so I'm approving.

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.

5 participants