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

[fix] Prevent overlapping report groups #4215

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions web/server/codechecker_server/api/report_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2089,6 +2089,13 @@ def getRunResults(self, run_ids, limit, offset, sort_types,
sort_type_map,
order_type_map)

# Most queries are using paging of reports due their great
# number. This is implemented by LIMIT and OFFSET in the SQL
# queries. However, if there is no ordering in the query, then
# the reports in different pages may overlap. This ordering
# prevents it.
q = q.order_by(Report.id)

if report_filter.annotations is not None:
annotations = defaultdict(list)
for annotation in report_filter.annotations:
Expand Down
Loading