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

Remove the rest of the LOCKSS app. #3452

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Empty file removed perma_web/lockss/__init__.py
Empty file.
29 changes: 0 additions & 29 deletions perma_web/lockss/migrations/0001_initial.py

This file was deleted.

35 changes: 0 additions & 35 deletions perma_web/lockss/migrations/0002_auto_20180625_2258.py

This file was deleted.

16 changes: 0 additions & 16 deletions perma_web/lockss/migrations/0003_delete_mirror.py

This file was deleted.

Empty file.
7 changes: 0 additions & 7 deletions perma_web/perma/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1426,13 +1426,6 @@ def permanent(self):
user_deleted=False,
)

def visible_to_lockss(self):
"""
Expose the bundled WARC after the required wait period,
if capture succeeded, unless deleted or made private by the user or by admins.
"""
return self.filter(cached_can_play_back=True).exclude(private_reason__in=['user', 'takedown'])

def visible_to_memento(self):
return self.discoverable().filter(cached_can_play_back=True)

Expand Down
8 changes: 1 addition & 7 deletions perma_web/perma/settings/deployments/settings_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@
# our apps
'perma',
'reporting',
'lockss',

# third party apps
'ratelimit',
Expand Down Expand Up @@ -578,16 +577,11 @@
TEST_RUNNER = 'django.test.runner.DiscoverRunner' # In Django 1.7, including this silences a warning about tests
TESTING = False

### LOCKSS ###
### MIRRORS ###

from datetime import timedelta
ARCHIVE_DELAY = timedelta(hours=24)

LOCKSS_CONTENT_IPS = "" # IPs of Perma servers allowed to play back LOCKSS content -- e.g. "10.1.146.0/24;140.247.209.64"
LOCKSS_CRAWL_INTERVAL = "12h"
LOCKSS_QUORUM = 3
LOCKSS_DEBUG_IPS = False

#
# Email
#
Expand Down
2 changes: 1 addition & 1 deletion perma_web/perma/tests/test_cloudflare_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
message = """
Cloudflare has updated its list of IP addresses since we last grabbed a
copy. We rely on an up-to-date list of IP addresses for rate limiting,
LOCKSS security, and other purposes. Please run `invoke dev.update-cloudflare-cache`
and other purposes. Please run `invoke dev.update-cloudflare-cache`
and commit the updated files.
"""

Expand Down
Loading