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

HER-23-add-teacher-to-roles-in-user #16

Merged
merged 10 commits into from
Dec 5, 2024

Conversation

mhope21
Copy link
Collaborator

@mhope21 mhope21 commented Nov 24, 2024

HER-23: Add teacher to roles in user

Issue

https://raquelanaroman.atlassian.net/browse/HER-23

As a teacher-user, I would like a way to distinguish myself from other types of users in the application.

Acceptance Criteria

  • add teacher to User::ROLES

HER-24

Changes

User model (app/models/user.rb):

  • Add teacher to ROLES

Review Checklist

  • I have documented my code with code comments.

raquii
raquii previously approved these changes Nov 26, 2024
Copy link
Collaborator

@raquii raquii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments are recommendations. lgtm

app/models/user.rb Outdated Show resolved Hide resolved
frontend/src/components/auth/Registration.jsx Outdated Show resolved Hide resolved
Comment on lines 20 to 28
setIsTeacher((prevIsTeacher) => {
const newIsTeacher = !prevIsTeacher;
if (newIsTeacher) {
console.log("I am a Teacher");
} else {
console.log("I am not a teacher");
}
return newIsTeacher;
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment on #15

Co-authored-by: Raquel Román-Rodriguez <[email protected]>
@mhope21 mhope21 requested a review from trca831 as a code owner December 3, 2024 17:15
@mhope21
Copy link
Collaborator Author

mhope21 commented Dec 3, 2024

Merge conflicts resolved. Fixed missing closing div on Registration page.

@mhope21 mhope21 requested a review from raquii December 4, 2024 03:12
Copy link
Collaborator

@dewi-anggraini dewi-anggraini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mhope21 mhope21 merged commit dfbe015 into main Dec 5, 2024
3 checks passed
@mhope21 mhope21 deleted the HER-23-add-teacher-to-roles-in-user branch December 5, 2024 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants