Bug 11207

Summary: Add bbclass search
Product: [Yocto Project Subprojects] Layer Index Reporter: Paul Eggleton <bluelightning>
Component: Layer IndexAssignee: Amanda Brindle <amanda.r.brindle>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: brian.avery, david.reyna, libertad.gonzalez.de.la.cruz, tanujassawant
Version: unspecified   
Target Milestone: 2.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2017-03-22 01:20:10 UTC
Add an new "Classes" top level button that takes you to a page where you can search for bbclasses, just like the recipe/machine/distro search pages. We already have the data, so this should be as simple as adding a template and a view.
Comment 1 Tanuja Sawant 2017-04-11 17:03:00 UTC
Where should I add the button? In Toaster? I'm a newbie :)
Comment 2 brian avery 2017-04-11 20:40:09 UTC
along the left, under 
Custom images
Image recipes
Software recipes
Machines
Layers
<bbclasses>

---

Paul, what are we hoping to be showing here?
Comment 3 Paul Eggleton 2017-04-11 20:56:36 UTC
This would be added to the layer index code ( http://git.yoctoproject.org/cgit/cgit.cgi/layerindex-web/ ). You'd need to add a view to layerindex/views.py (see DistroSearchView for the distro one that you should be able to mostly copy and modify). You'll also need to add a branch-specific URL handler in layerindex/urls_branch.py so that it's accessible. The templates for generating the HTML are in templates/layerindex - you'll need to create a new template and search for distro_search to see where you'd need to add links to the URL for the new search page. The model we would be looking at for this is "BBClass" (see layerindex/models.py). HTH.
Comment 4 Tanuja Sawant 2017-04-13 17:57:00 UTC
I can't seem to find the folder 'layerindex'. Is poky the correct clone for this?
Comment 5 Tanuja Sawant 2017-04-13 18:05:15 UTC
Okay I have cloned layerindex-web now.