Conversation
Naragod
force-pushed
the
refresh_autotest_schema_api
branch
from
September 16, 2026 20:41
3d1a2d1 to
3b03700
Compare
Collaborator
Coverage Report for CI Build 35232493781Coverage increased (+0.006%) to 90.776%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
Naragod
force-pushed
the
refresh_autotest_schema_api
branch
from
September 17, 2026 14:16
3b03700 to
aa4f30a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
This adds an API route. It refreshes a course's autotester schema.
One path updates
autotest_settings.schematoday. It is the "Refresh autotest schema" button in Admin > Courses > edit (#7828). A markus-autotesting release can change a tester's settings. Each MarkUs instance then takes one click per autotester URL. This route lets a deploy script do that step.PUT /api/courses/:id/refresh_autotest_schemacopiesAdmin::CoursesController#refresh_autotest_schema. It pulls the schema from the autotester. It saves it. Admin keys pass the policy check.Changes:
config/routes.rbaddsput 'refresh_autotest_schema'next toreset_autotest_connection.app/controllers/api/courses_controller.rbadds the action.app/policies/api/course_policy.rbputs the new rule under theadmin_user?alias.spec/controllers/api/courses_controller_spec.rbcovers all four responses.docs/docs/technical-guides/restful-api.mdlists the route with the other autotest course routes.Changelog.mdgains one line.Verification:
rspec spec/controllers/api/courses_controller_spec.rbpasses 98 examples with 0 failures.One
AutotestSettingrow serves every course that shares a URL. One call per URL covers that instance.Type of Change
Checklist
Before opening your pull request:
After opening your pull request:
Questions and Comments
One
AutotestSettingrow serves every course that shares a URL. A deploy script can call this route once per URL per MarkUs instance.