Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Batch-edit users / batch-add requirements #1063

Open
orenyk opened this issue Dec 11, 2014 · 6 comments
Open

Batch-edit users / batch-add requirements #1063

orenyk opened this issue Dec 11, 2014 · 6 comments

Comments

@orenyk
Copy link
Contributor

orenyk commented Dec 11, 2014

We've been asked if there's a way to add a requirement to multiple users simultaneously. We might benefit from a batch-edit functionality where you can either change the role of multiple users or add a requirement, maybe taking a list of netids / usernames as an input? Something to be considered for the future.

@squidgetx
Copy link
Contributor

Sounds like something hard to do in rails but easy to do while doing #1061. I feel like there are several issues that are like this one in that way; maybe we should have a milestone for things like that

@orenyk
Copy link
Contributor Author

orenyk commented Jan 4, 2015

We can definitely hijack the user import functionality for updating roles (since it's a parameter of the User object). For requirements we need to create associations, but we don't really need a table, just a list. On a requirement show page we could allow for admins to upload a comma-separated list of usernames / e-mails and then just loop through it and assign those users that requirement. Might be good for v4.3.0, otherwise we can try a JS solution after #1061.

In terms of lumping JS-potential issues together, I'll create a label for that instead of a milestone.

@orenyk orenyk added the JS label Jan 4, 2015
@squidgetx squidgetx modified the milestone: Wish List Jan 4, 2015
@orenyk orenyk modified the milestone: Wish List Feb 20, 2015
@orenyk
Copy link
Contributor Author

orenyk commented Apr 12, 2015

Just realized that this is very similar to the solution discussed in #557, so those two should be worked on together, however it's done.

@orenyk
Copy link
Contributor Author

orenyk commented Nov 9, 2015

Ok, here's how I'm thinking we could solve this (in a way that also allows for the batch banning of users based on an affiliation query):

  1. Have a batch processing view / controller that allows for custom searches of different resources (specifically Users here, but it could be generalized) by their various parameters to return sets of records from the database (basically an interface to ActiveRecord).
  2. These query results would be added to a "batch", which is ultimately a larger collection of records.
  3. Each resource type would have a set of actions that could be performed on that collection of records - for example, banning or role modification for users, archiving for reservations, deactivation or permanent deactivation for equipment, etc

This would be a pretty significant improvement in the administration of Reservations, so I'd like to bump it up in priority and move it into one of our upcoming sprints.

@orenyk orenyk added pri: 3 and removed JS pri: 1 labels Nov 9, 2015
@orenyk orenyk modified the milestones: v5.6.0, Wish List Nov 9, 2015
@orenyk
Copy link
Contributor Author

orenyk commented Jan 11, 2016

It might be nice to build this on top of Administrate, Thoughtbot's admin engine that should easily allow us to set up custom actions for each resource.

@zeffman zeffman self-assigned this Mar 8, 2016
@orenyk orenyk modified the milestones: 6.0.0, 6.1.0 Mar 8, 2016
@orenyk
Copy link
Contributor Author

orenyk commented May 23, 2016

We've run into this again now that we have a new set of seniors to ban and it turns out that in v5.5.x, CSV export from Rails Admin is currently broken (see here). We can work around this by exporting an XML file with the relevant users and converting it to a CSV offline so it can be re-imported for banning, but this is a much needed feature moving forward.

EDIT The CSV export issue has since been fixed in a later version of Rails Admin and should be resolved in v6.1.x following #1553 (and possibly even #1329).

@orenyk orenyk modified the milestones: 6.1.0, 6.2.0 Jun 1, 2016
@orenyk orenyk modified the milestones: 6.2.0, 6.1.0 Jun 1, 2016
@esoterik esoterik modified the milestones: 6.3.0, 6.2.0 Jun 30, 2016
@esoterik esoterik modified the milestones: 6.5.0, 6.3.0 Aug 3, 2016
@esoterik esoterik modified the milestones: 6.5.0, 6.3.0, 7.0.0 Sep 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants