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

Transfer groundControl (and admin panel) from staff to admin route #1180

Merged
merged 31 commits into from
Nov 16, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6b7e54e
Create a new staff scope
josh1248 Sep 8, 2024
d28d757
Move Admin Panel requests into admin scope
josh1248 Sep 8, 2024
18dc689
Change appropriate routes into admin scope
josh1248 Sep 8, 2024
e77aa05
Find-replace galore
josh1248 Sep 8, 2024
9e67112
Fix linting
josh1248 Sep 8, 2024
bb28b7e
Merge branch 'master' into No-GC-For-Staff
josh1248 Sep 8, 2024
ed959e8
Linting does not work :(
josh1248 Sep 8, 2024
8241a96
Revert "Find-replace galore"
josh1248 Sep 10, 2024
83f9232
Revert "Change appropriate routes into admin scope"
josh1248 Sep 10, 2024
23a7487
Revert "Create a new staff scope"
josh1248 Sep 10, 2024
b39dc56
Move dangerous routes into a new scope
josh1248 Sep 10, 2024
dfd940a
Fix linting
josh1248 Sep 10, 2024
6220481
Linting works in mysterious ways
josh1248 Sep 10, 2024
63b915d
One more formatting change
josh1248 Sep 10, 2024
a217204
Merge branch 'source-academy:master' into No-GC-For-Staff
josh1248 Sep 29, 2024
2afa68c
Merge branch 'source-academy:master' into No-GC-For-Staff
josh1248 Oct 6, 2024
4c9893b
Swap order of all-staff and admin-only routes
josh1248 Oct 6, 2024
1880897
Update error message for grading routes
josh1248 Oct 13, 2024
410d030
Update error messages for users
josh1248 Oct 13, 2024
66b5b4c
Add test cases for assets for staff
josh1248 Oct 13, 2024
93f8ed8
Update test auth to admin for assets
josh1248 Oct 13, 2024
b0a6843
Update and add tests for course config routes
josh1248 Oct 13, 2024
6d75ef9
Update and add tests for assessment-level routes
josh1248 Oct 13, 2024
831ca60
Fix sourcecast error
josh1248 Oct 13, 2024
79c5a5d
Revert "Fix sourcecast error"
josh1248 Oct 13, 2024
9686184
Transfer asset routes to admin
josh1248 Oct 13, 2024
8f7bec5
Merge branch 'master' into No-GC-For-Staff
josh1248 Oct 27, 2024
064f73c
Merge branch 'master' into No-GC-For-Staff
RichDom2185 Oct 29, 2024
70bb7f7
Merge branch 'master' into No-GC-For-Staff
josh1248 Nov 13, 2024
0645990
Revert accidental formatting changes
josh1248 Nov 13, 2024
fe8c762
Merge branch 'master' into No-GC-For-Staff
RichDom2185 Nov 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change appropriate routes into admin scope
josh1248 committed Sep 8, 2024
commit 18dc689a4df4836fc6967bf0f74dc252964bd175
3 changes: 2 additions & 1 deletion lib/cadet_web/router.ex
Original file line number Diff line number Diff line change
@@ -185,7 +185,6 @@ defmodule CadetWeb.Router do
# The admin route for getting total xp of a specific user
get("/users/:course_reg_id/total_xp", AdminUserController, :combined_total_xp)
put("/users/:course_reg_id/role", AdminUserController, :update_role)
delete("/users/:course_reg_id", AdminUserController, :delete_user)
get("/users/:course_reg_id/goals", AdminGoalsController, :index_goals_with_progress)
post("/users/:course_reg_id/goals/:uuid/progress", AdminGoalsController, :update_progress)

@@ -235,6 +234,8 @@ defmodule CadetWeb.Router do
AdminGradingController,
:unpublish_all_grades
)

delete("/users/:course_reg_id", AdminUserController, :delete_user)
end

# Other scopes may use custom stacks.
Loading