Closed lizadaly closed 1 year ago
Merging #2000 (8df9438) into develop (652c1fa) will increase coverage by
0.04%
. The diff coverage is92.30%
.
@@ Coverage Diff @@
## develop #2000 +/- ##
===========================================
+ Coverage 76.79% 76.83% +0.04%
===========================================
Files 62 62
Lines 6904 6916 +12
===========================================
+ Hits 5302 5314 +12
Misses 1602 1602
Impacted Files | Coverage Δ | |
---|---|---|
web/main/admin.py | 69.39% <ø> (ø) |
|
web/main/urls.py | 100.00% <ø> (ø) |
|
web/main/models.py | 73.94% <50.00%> (+0.01%) |
:arrow_up: |
web/main/test/test_search.py | 100.00% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
This adds a field to the
Casebook
model to set a casebook as "not publicly listed". This is distinct from whether it is published—a casebook can be published but not listed (an unpublished casebook is already effectively unlisted).Setting the
listed_publicly
field toFalse
in the Django admin will make a published casebook drop out of the search index, and also set as disallowed inrobots.txt
, removing it from Google's search.Also fixes #1990 because that was blocking access to the Casebook admin page.
Effect on robots.txt
After, when casebooks have the
listed_publicly
field toggled, the change torobots.txt
will happen immediately because the exclusion filter is always run when the page is accessed (since it's indexed, this should always be fast):