Bug 5933 - link for the task order misses if anchor not in first page
Summary: link for the task order misses if anchor not in first page
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6 M5
Assignee: David Reyna
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-03-08 04:03 UTC by David Reyna
Modified: 2014-04-11 05:44 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.