-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the missing 'Edit Releases' tab for projects #516
Comments
I support this feature request! In the meantime, should we provide some documentation somewhere for contributors to help them understand how releases get marked as "recommended" and how to fix it if it doesn't happen automatically? |
Actually, this can be done, but maybe requires special permissions or special sleuthing skills to figure out how? For https://backdropcms.org/project/webform_civicrm, I was able to manually navigate to https://backdropcms.org/node/1397/edit/releases, which is not actually represented as a tab in the UI. There I could set the "Recommended major version," which then fixed both the recommended version and the latest update date on the project page itself. So perhaps the real need here is making that |
I cannot figure this one out... I've made sure my local site is all up-to-date with the current B.org site. When I login as user 1, I can see the secondary menu with the Releases tab (see screenshot), but when I login as my own account (which has the Developer role), I can't see the secondary menu. There are no permissions I'm missing that would display this, and I can't find any code that would hide this. Help? |
Darn, I thought you had a fix. Perhaps somewhere it's checking for user 1, not permissions? |
Ok, so I've found the issue. It's with Project module... It has this code: function project_menu_alter(&$callbacks) {
$callbacks['node/%node/edit/project'] = $callbacks['node/%node/edit'];
$callbacks['node/%node/edit/project']['type'] = MENU_DEFAULT_LOCAL_TASK;
$callbacks['node/%node/edit/project']['title'] = 'Project';
// Only take over secondary local tasks for projects.
$callbacks['node/%node/edit/project']['access callback'] = 'project_user_access';
$callbacks['node/%node/edit/project']['access arguments'] = array(1, 'edit project');
} This changes the access callback for
So that's why user 1 gets access, and why no one else (other than the node author) does. The solution here is either to fix the Project module, or bypass it in order to grant more people access to the Releases tab. Ping @quicksketch 🙏 |
I've filed a PR against project that adds back the missing |
@jenlampton do you have a link to the PR? |
Yes, that would be helpful wouldn't it :) |
It seems so. I confirmed that I couldn't access the Releases sub-tab on my local when logged in using my own account (i.e. not user 1). I then patched the Project module with @jenlampton's PR and it added new permissions. After assigning the 'Administer projects' permission to the Developer role, I was able to see and access the Releases sub-tab. So I guess once there's a new release of the Project module we can make a PR here that updates the module and adds that permission for developers. |
Any update on this? |
Has this patch not been applied to b.org? Oh jeez, sorry. Adding now... |
patch applied, tested, and deployed. Sorry for the delay everyone, for some reason my brain stopped at making the patch. Usually I make the patch while documenting it in the project that needs it, so IDK why that part got skipped this time! |
If there are issues with the automated GitHub webhook that creates project releases on B.org, you can manually change release's 'supported' status, and change the 'recommended' branch. However the page where you can do this (
https://backdropcms.org/node/[NID]/edit/releases
) doesn't have a tab to access it (i.e you need to know and manually enter the URL).Let's fix this so the tab appears properly.
Original post:
From Gitter:
The text was updated successfully, but these errors were encountered: