Resultsdb - fix the pagination issue
ClosedPublic

Authored by jskladan on Jan 12 2017, 1:18 PM.

Details

Summary

When page=xyz was not present in the URL the next/previous URLs were sometimes produced in the wrong way.
Instead of checking for presence of other URL-encoded attributes ?page=1 was blindly added to the end of the URL string, while sometimes, it should have been &page=1.
This patch fixes that.

Test Plan

Adjusted unittests

Diff Detail

Repository
rRSDB resultsdb
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jskladan retitled this revision from to Resultsdb - fix the pagination issue.Jan 12 2017, 1:18 PM
jskladan updated this object.
jskladan edited the test plan for this revision. (Show Details)
jskladan added a reviewer: resultsdb.
kparal accepted this revision.Jan 13 2017, 1:25 PM
kparal added a reviewer: kparal.
kparal added a subscriber: kparal.

That looks like it should fix it. Thanks!

This revision is now accepted and ready to land.Jan 13 2017, 1:25 PM
Closed by commit rRSDBd7f7ad945211: Resultsdb - fix the pagination issue (authored by Josef Skladanka <jskladan@redhat.com>). · Explain WhyJan 13 2017, 3:31 PM
This revision was automatically updated to reflect the committed changes.