form-picker-macros should not do a bunch of manual js assembly

Bug #799847 reported by j.c.sackett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
j.c.sackett

Bug Description

A large portion of picker configuration and setup is done in form-picker-macros. While we want the final setup done in this file so that all the necessary widgets are wired up together right, we shouldn't have so much of the configuration assembled in the page template and passed in from the view. Instead we should use the JSONCache

Additionally, we shouldn't repeat as much of the javascript as we do; much of the make_picker code could be part of an actual javascript file.

Related branches

j.c.sackett (jcsackett)
Changed in launchpad:
status: Confirmed → Triaged
j.c.sackett (jcsackett)
description: updated
j.c.sackett (jcsackett)
Changed in launchpad:
assignee: nobody → j.c.sackett (jcsackett)
Curtis Hovey (sinzui)
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
William Grant (wgrant) wrote :

This breaks the attachment of pickers to their text inputs. I suspect bad conflict resolution:

83 - var picker = Y.lp.app.picker.create('${view/vocabulary_name}',
84 - config,
85 - '${view/input_id}');

wallyworld added that last argument a few days back, and this branch removed it.

It has for now been reverted.

tags: added: bad-commit-13485 qa-bad
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-bad
Changed in launchpad:
status: In Progress → Fix Committed
j.c.sackett (jcsackett)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
tags: added: disclosure
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.