harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
36 stars 30 forks source link

Remove references to deleted Resource admin pages; fixes #1948 #1949

Closed lizadaly closed 1 year ago

lizadaly commented 1 year ago

This PR restores the use of some admin pages which were returning server errors.

In #1935 the Resource admin views were removed because they were not useful in their current state—the list pages timed out.

An unintended consequence was that some other admin pages had template customizations that tried to reverse() now-deleted views, and would then server error on load.

This removes the remaining references to Resource admin pages. If it's useful to follow the relationship from a Casebook to its internal resources, that could be traversed via ContentNode and grouping them by their resource type.

codecov-commenter commented 1 year ago

Codecov Report

Merging #1949 (c5c3ca9) into develop (b4c9e4b) will decrease coverage by 0.01%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #1949      +/-   ##
===========================================
- Coverage    76.71%   76.70%   -0.01%     
===========================================
  Files           60       60              
  Lines         6780     6775       -5     
===========================================
- Hits          5201     5197       -4     
+ Misses        1579     1578       -1     
Impacted Files Coverage Δ
web/main/views.py 71.46% <ø> (ø)
web/main/admin.py 69.39% <100.00%> (+0.09%) :arrow_up:
web/main/models.py 73.93% <100.00%> (-0.05%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.