Bug 15738

Summary: Allow changing yp-compat version on the edit layer page for users with correct privileges
Product: [Yocto Project Subprojects] Layer Index Reporter: Michael Halstead <mhalstead>
Component: Layer IndexAssignee: Mathieu Dubois-Briand <mathieu.dubois-briand>
Status: RESOLVED FIXED QA Contact: apoorv sangal <apoorvsangal>
Severity: normal    
Priority: Medium+ CC: mathieu.dubois-briand, randy.macleod
Version: unspecified   
Target Milestone: 5.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Michael Halstead 2025-02-06 23:38:34 UTC
Currently changing Yocto Project Compatible version for a layer requires editing the layer in the admin scaffolding. This is inconvenient UI and requires giving admin permissions to users who only need to access to edit layers.

We should add a selector for this on the main layer editing pages like https://layers.openembedded.org/layerindex/branch/master/edit/{layer}/.

The compatible version dropdown should only display to users with staff access.
Comment 1 Randy MacLeod 2025-02-13 15:34:02 UTC
Likely not for Tim to do. Richard has some candidates in mind.
Comment 2 Mathieu Dubois-Briand 2025-02-24 12:47:40 UTC
I just sent a patch that should fix this issue.

https://lore.kernel.org/yocto-patches/20250224-mathieu-yp-compat-staff-v1-2-9b8d07f00af7@bootlin.com/T/#u
Comment 3 Michael Halstead 2025-02-26 20:56:36 UTC
I've tested this and deployed. Thank you!
Comment 4 Michael Halstead 2025-02-26 20:57:08 UTC
I've merged it into master-next. I'll wait for Tim to pull it into master.