[Toaster] [review-request] reconcile non-manage-mode landing classes [6483]

Reyna, David david.reyna at windriver.com
Fri Feb 27 01:08:06 PST 2015


Hi Belén,

Thanks to your re-opening this defect I have analyzed the managed mode URLs, view classes, and their non-managed landing classes, and I discovered many mismatches. This patch addresses them.

   git push -f poky-contrib dreyna/landing_not_managed_6483_v2

For the three mismatches that you found, here are the root causes:

Mismatch class parameters versus landing wrapper:
  http://127.0.0.1:8000/toastergui/project/<project_id>/configuration
  http://127.0.0.1:8000/toastergui/project/<project_id>/builds
Dead URL:
  http://127.0.0.1:8000/toastergui/layer/<layer_id>/

Here are the details:

1) Dead URL's

There are two URL's that are obsolete and replaced by newer calls. I have removed them both since they are wrong.

  url(r'^layer/$', 'layerdetails', name='layerdetails'),
  url(r'^project/$', 'project', name='project'),

In both cases the newer view classes require a layerid/pid. Here are the adjacent and real URLs.

  url(r'^layer/(?P<layerid>\d+)/$', 'layerdetails', name='layerdetails'),
  url(r'^project/(?P<pid>\d+)/$', 'project', name='project'),

2) Mismatch parameter lists between classes and their landing wrappers

The "l" ones are the landing wrappers. These are now matched with their respective real class.

   def projectconf(request, pid):
l  def projectconf(request):
   def projectbuilds(request, pid):
l  def projectbuilds(request):
   def xhr_configvaredit(request, pid):
l  def xhr_configvaredit(request):

3) Wrapper class with no real class

The class "targetdetails" exists as a wrapper but apparently the real class was removed. I have deleted it.

4) Managed class (and wrapper landing page) that is not called by anything

The class "build_artifact" is not called by anything, and appears to be superseded by "build_artifact_storage_dir".

I propose that we keep both until the class owner formally deletes them.

- David


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20150227/1630f8b1/attachment.html>


More information about the toaster mailing list