Bug 5933

Summary: link for the task order misses if anchor not in first page
Product: [Build System, Metadata & Runtime] Toaster Reporter: David Reyna <david.reyna>
Component: toasterAssignee: David Reyna <david.reyna>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.damian, belen.barros.pena, cristiana.voicu, jessica.zhang, Yuan.Sun2
Version: 1.6   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description David Reyna 2014-03-08 04:03:44 UTC
In the "task details" page, the link for the task order will not take you to the respective task if the anchor is not in the default first page.

Proposed solution is to add a test that looks for the anchor when requested in the URL after the pagination, and refetch the next page(s) until we find it. This is expensive if it ends up on a later page, but it is a special request and it is important for the customer experience to not fail.

Belen writes: "We try to implement it and see how it performs".
Comment 1 David Reyna 2014-03-29 04:55:52 UTC
The interesting aspect is that the "#" anchor is held by the browser and is not passed to the server.

That means that for the view class to find and return the right page for the anchor, the anchor must also be in the base part of the URL, for example:

  http://147.11.216.151:8000/gui/build/18/tasks/123/#123
Comment 2 David Reyna 2014-04-08 01:52:11 UTC
commit 0d39bee035923186afc3c5c113a3d2e710e1820d
Comment 3 Yuan Sun 2014-04-11 05:44:14 UTC
Verified in 046a9ea30356daf4f3f8f4ddfc5b57fcfd85a27f.