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

E2330. Reimplement Invitation Controller #32

Merged
merged 31 commits into from Jun 15, 2023

Conversation

rohitgeddam
Copy link
Contributor

@rohitgeddam rohitgeddam commented Apr 12, 2023

Project Title: E2330. Reimplement Invitation Controller
Team: sgeddam2, ktelapr, dshah6
Mentor: Ankur Mundra

Followed test driven development to implement invitation model.
Added FactoryBot to Gemfile.
@rohitgeddam rohitgeddam changed the title add invitation model and invitation model tests E2330. Reimplement Invitation Controller Apr 12, 2023
@mundra-ankur mundra-ankur self-requested a review April 19, 2023 15:55
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
Copy link
Member

@mundra-ankur mundra-ankur left a 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!

app/controllers/api/v1/invitations_controller.rb Outdated Show resolved Hide resolved
config/routes.rb Outdated Show resolved Hide resolved
app/controllers/api/v1/invitations_controller.rb Outdated Show resolved Hide resolved
app/controllers/api/v1/invitations_controller.rb Outdated Show resolved Hide resolved
app/models/invitation.rb Outdated Show resolved Hide resolved
app/models/invitation.rb Show resolved Hide resolved
moved invitation model validations to invitation_validator.
updated invitation spec files.
Copy link
Member

@mundra-ankur mundra-ankur left a 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!

@mundra-ankur mundra-ankur merged commit 53bd24a into expertiza:main Jun 15, 2023
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.

None yet

2 participants