Skip to content

Refactor participants controller #300

Open
aanand-1706 wants to merge 14 commits intoexpertiza:mainfrom
aanand-1706:refactor-participants-controller
Open

Refactor participants controller #300
aanand-1706 wants to merge 14 commits intoexpertiza:mainfrom
aanand-1706:refactor-participants-controller

Conversation

@aanand-1706
Copy link
Copy Markdown
Contributor

From PR: #192

@aanand-1706 aanand-1706 force-pushed the refactor-participants-controller branch from edc1a6b to 51c3234 Compare March 18, 2026 05:02
@aanand-1706 aanand-1706 reopened this Mar 18, 2026
@github-actions
Copy link
Copy Markdown

1 Warning
⚠️ Pull request is too big (more than 500 LoC).

Generated by 🚫 Danger

@github-actions
Copy link
Copy Markdown

🚨 RSpec Tests Report

All tests passed.

@github-actions
Copy link
Copy Markdown

🚨 RSpec Tests Report

Failing Controller Test Cases:
rspec ./spec/requests/api/v1/participants_controller_spec.rb:56 # Participants API /participants/user/{user_id} get Returns participants returns a 200 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:69 # Participants API /participants/user/{user_id} get Participant not found with user_id returns a 200 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:79 # Participants API /participants/user/{user_id} get User Not Found returns a 404 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:87 # Participants API /participants/user/{user_id} get Unauthorized returns a 401 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:105 # Participants API /participants/assignment/{assignment_id} get Returns participants returns a 200 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:118 # Participants API /participants/assignment/{assignment_id} get Assignment Not Found returns a 404 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:127 # Participants API /participants/assignment/{assignment_id} get Unauthorized returns a 401 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:307 # Participants API /participants/{authorization} post Participant successfully added returns a 201 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:319 # Participants API /participants/{authorization} post Participant successfully added with mixed-case authorization returns a 201 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:342 # Participants API /participants/{authorization} post Participant already exist returns a 500 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:352 # Participants API /participants/{authorization} post User not found returns a 404 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:361 # Participants API /participants/{authorization} post Assignment not found returns a 404 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:370 # Participants API /participants/{authorization} post Authorization not found returns a 422 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:379 # Participants API /participants/{authorization} post Invalid authorization returns a 422 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:389 # Participants API /participants/{authorization} post Test ID 24: Missing user_id in request body returns a 404 response
rspec ./spec/requests/api/v1/participants_controller_spec.rb:400 # Participants API /participants/{authorization} post Test ID 25: Missing assignment_id in request body returns a 404 response

@github-actions
Copy link
Copy Markdown

🚨 RSpec Tests Report

All tests passed.

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.

1 participant