Merge lp:~matthew-constable/tiqit/tiqit into lp:tiqit
Proposed by
Matthew Constable
Status: | Needs review |
---|---|
Proposed branch: | lp:~matthew-constable/tiqit/tiqit |
Merge into: | lp:tiqit |
Diff against target: |
67 lines (+35/-0) 2 files modified
static/scripts/coledit.js (+4/-0) static/scripts/results.js (+31/-0) |
To merge this branch: | bzr merge lp:~matthew-constable/tiqit/tiqit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Matthew Hall | Needs Fixing | ||
Review via email: mp+278934@code.launchpad.net |
Description of the change
Enhanced coledit.js and results.js to produce the correct URL in the taskbar (and history) when a column is added/removed on a results page.
To post a comment you must log in.
Unmerged revisions
- 6. By Matthew Constable <email address hidden>
-
Enhanced coledit.js and results.js to produce the correct URL in the taskbar (and history) when a column is added/removed on a results page.
This is a good change, but unfortunately there's currently inconsistent behaviour displayed when search results are grouped by one of the fields.
* When a column is added using the buttons above any group, it is added to all groups and the URL updated. I think this is fine.
* When a column is removed using the buttons above any group but the first, it is removed from only that group and the URL isn't updated. The existing behaviour of the group isn't ideal, but at least your new URL handling is being consistent with it.
* When a column is remove using the buttons above the first group, it is removed from only that group and the URL *is* updated. Again, the existing grouping behavior arguably isn't ideal, but now there's also an inconsistency between the union of all columns displayed on the page and the columns listed in the URL.
We either need to avoid updating the URL when removing a column from the first group, or change the grouping behavior so that removing a column always affects all groups.