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
E2330. Reimplement Invitation Controller #32
Conversation
Followed test driven development to implement invitation model. Added FactoryBot to Gemfile.
Added method signatures that will act as placeholders for further implementation.
implemented InvitationController#create update invitation.rb add validation to prevent duplicate invitation. add faker in Gemfile
Setup InvitationSentMailer for the purpose of sending invitations. Implemented invitation_factory to help with creation of a new invitation with the given parameters.
converted class methods to instance methods. renamed list_all_invitations_for_user_assignment to invitations_for_user_assignment.
update description in invitation_controller for swagger docs
added _ before parameters to signify unused paramater
updated test case descriptions in invitation_controller_spec.
Fix Rubocop issues
updated comments in invitation_controller.rb, invitation.rb for better understanding of the purpose of the unimplemented methods.
removed unused method remove_users_sent_invites_for_assignment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there!
I just reviewed your pull request and I must say, you did a great job with the implementation. However, I do have a few suggestions that I would like you to work on. Nothing major, just a couple of things that will make the code even better. Keep up the good work!
moved invitation model validations to invitation_validator. updated invitation spec files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks great!
Project Title: E2330. Reimplement Invitation Controller
Team: sgeddam2, ktelapr, dshah6
Mentor: Ankur Mundra