Skip to content

refactor(UserAPIController): Extract RunInfoController #296

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Aaron-Detre
Copy link
Contributor

@Aaron-Detre Aaron-Detre commented Apr 8, 2025

Changes

  • Moved methods and tests relating to "run info" from the Student and User API controllers into its own RunInfoAPIController class.

Test

  • For this to work, you'll also need this client PR: Updated URLs for RunInfoAPIController refactor WISE-Client#2132
  • To test the endpoint at api/run-info/run/info, go to 'Student Home,' click 'Add Unit,' and enter some text that isn't a valid access code. Click off to the side, and it should say "Invalid Access Code."
    • Then enter a valid access code, and the warning should go away.
  • To test the endpoint at api/run-info/run/info-by-id, go to 'Student Home' and click 'Report Problem' on any unit. The contact form should include a line showing the name of the project that you clicked on.
  • Make sure moved tests still pass.

Closes #292

@Aaron-Detre Aaron-Detre added the Code Quality Improves code quality label Apr 8, 2025
@Aaron-Detre Aaron-Detre self-assigned this Apr 8, 2025
@Aaron-Detre Aaron-Detre marked this pull request as ready for review April 8, 2025 16:10
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Code Quality Improves code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor(UserAPIController): Extract RunInfoController
1 participant