-
Notifications
You must be signed in to change notification settings - Fork 1
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
Build institutional user lists for institutional managers on open source networks #42
Comments
I got a WIP PR: #159 |
@MichelleWeremczuk please, feel free to provide feedback as needed in https://ricardodev.pressbooks.network about this feature. Example of testing case described in #159. |
Everything seems to be working as expected except for one thing:
I recognize that I might not have something set up properly on my system, or I might be looking at the wrong thing. |
@MichelleWeremczuk good catch! it is in the last item. I'll work on it |
WP does not provide an easy way to change/edit an existing column from the user list, despite it does for custom columns like An option I can see today is to override the WP_List_Table class for users, something like: class wpUserListTable extends WP_Users_List_Table {
// Override the column method for the blogs column
function column_blogs( $item ) {
return str_replace($item, ...); // replace links here
}
} I do not like this approach because it would require to do some tricky things like: add_action('load-users.php', function() {
$GLOBALS['wp_list_table'] = new wpUserListTable;
}); since WP does not provide a hook or something to override it. I need to find a better way to make this column change. |
@richard015ar aside from the item Michelle pointed out, the only other issue I notice so far in early testing is that as an institutional manager, I'm not able to add a new user to the network from https://ricardodev.pressbooks.network/wp/wp-admin/network/user-new.php, which the 'Add New User' button in the user list links to |
It seems to be a pre-existing bug. In addition, as an IM I cannot add users either through the I'll work on both cases in the same PR. |
On the topic of modifying the I will try it on. |
Another bug found is when the H5P Plugin is active at the root site level, the menu item is displayed for IMs during root site pages navigation. We should remove it. |
I was able to:
Pending to fix:
Although we estimated this task as a 5, I consider I already spent 5 story points working on this. |
As an institutional manager on a self-hosted open source PB network (i.e. one without pressbooks-network-analytics), I should see a user list with information specific to my institution, instead of the full network user list.
See https://www.figma.com/file/hAvkPJpDgJDDyh8g358AqR/PB-Site-Adjustments?type=design&node-id=34-10298&mode=design&t=6NpK2f6ILNHepftM-0
This should look like the current user list, but with a new column called 'Institution'. As an institutional manager, I should only be presented with the users assigned to my institution. If I try to view the full network user list, I should see a 'you don't have permissions to do this' style message.
DoD:
BOOKTITLE/wp-admin
rather thanwp-admin/network/site-info.php?id=765
The text was updated successfully, but these errors were encountered: