liqd / aula

An online platform for political participation in schools in Germany (not in active development)
https://liqd.net
Other
27 stars 5 forks source link

Rename and delete `IdeaSpace`s. [5] #1002

Closed fisx closed 7 years ago

fisx commented 7 years ago

approach 1:

  1. Change ideaspace data type to carry AUID
  2. Add admin page for renaming
  3. Extend admin page for renaming with deleting

approach 2:

Global rename of the string directly, like with userLogin. This way there is no need forAUID. Drawback: Need to findIdeaSpace` by hand; old URL does not work any more.

CAVEATS:

Violation of hard assumptions: (1) user always has an idea space; (2) names for idea spaces will never change. if student ends up without idea space, she will often have zero roles left. admin can change that on request.

fisx commented 7 years ago

orphans are users who have no roles. since some users only have, say, a student role that depends on a school class, deleting that class will create an orphan.

two options:

  1. fail to delete the class, and report a list of users that would become orphans.
  2. move to a new page, list all soon-to-be orphans with a popup menu for role assignment, and force the admin to assign new roles to all students (not including the one to be deleted, obviously). submit of this form will delete the class without creating orphans.

the latter is NTH.

fisx commented 7 years ago

btw will this make an acid-state migration necessary? if not i would like to deploy this once together with #1001 soon when it's done.

fisx commented 7 years ago

@rittermo i updated the description to say that we do not support recovering of deleted ideas. do you remember if we have agreed on that yet? if not we should get it confirmed. thanks! (-:

fisx commented 7 years ago

@rittermo (added another point).

fisx commented 7 years ago

Fixed in #1011.