Skip to content
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

As a student, i want to be able to upgrade my account to be a lecturer. #394

Open
8 tasks
Blatzheim opened this issue Feb 6, 2020 · 1 comment
Open
8 tasks
Labels
Story A Story denotes a distinct peace of work / feature Team RESTless This issue is assigned to the team of AB

Comments

@Blatzheim
Copy link
Contributor

Blatzheim commented Feb 6, 2020

Description:
In the profile settings, under edit, a student should have the ability to upgrade his account to a lecturer account by going through the same process as in the signup, with the lecturer key.

Depends on: #326

AC:

  • On a students profiles edit page (click on upper right corner button "show profile" > edit profile) , there is a text-filed labeled "Lecturer Key"
  • Below the text field, it says in small grey letters "Become a lecturer by entering the lecturer key."
  • The title matches the other fields title's, and so does the subtitle match the others subtile.
  • Given the user has entered a lecturer key (field is not empty), clicking on "Update" will prompt a warning: "Are you sure you want to be a lecturer? This action can not be undone! You will loose all your course data."
  • Given that the warning is displayed, the user has the option of either accepting or denying (Yes / No ).
  • Given that the student entered the wrong lecturer key and accepted the warning (clicked "Yes"), a message "Lecturer key incorrect" is displayed at the top in a red checkbox (like all announcements we have).
  • Given that the student entered the correct lecturer key and accepted the warning (clicked "Yes"), his account will effectively be promoted to that of a lecturers.
  • Given that the user choose any of the warnings options, he will be redirected to his profiles page (/users/show, not /users/edit).

Hint: Be aware that the students data might have to be deleted / reset in order to not affect correct behaviour."

@Blatzheim Blatzheim added Story A Story denotes a distinct peace of work / feature Team RESTless This issue is assigned to the team of AB labels Feb 6, 2020
@adrianjost adrianjost self-assigned this Feb 6, 2020
@adrianjost adrianjost removed their assignment Feb 6, 2020
@adrianjost
Copy link
Contributor

My Idea would be to delete the account when doing this action and creating a new one automatically. Then the user might have to log in again and is a teacher. I think upgrading a teacher account to a lecturer account is unsafe because of a lot of possible side effects like duplicate views and so on.
Also because there is no way of downgrading yet, the information for the ex-student would be lost anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Story A Story denotes a distinct peace of work / feature Team RESTless This issue is assigned to the team of AB
Projects
None yet
Development

No branches or pull requests

2 participants