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

feat: obviate ghostlinkd #7336

Merged
merged 16 commits into from Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 7 additions & 6 deletions ietf/idindex/tasks.py
Expand Up @@ -13,6 +13,8 @@
from tempfile import NamedTemporaryFile
from typing import List

from django.conf import settings

from .index import all_id_txt, all_id2_txt, id_index_txt


Expand Down Expand Up @@ -49,12 +51,11 @@ def __exit__(self, exc_type, exc_val, exc_tb):
@shared_task
def idindex_update_task():
"""Update I-D indexes"""
# Why are these not using values from django.conf.settings?
id_path = Path("/a/ietfdata/doc/draft/repository")
derived_path = Path("/a/ietfdata/derived")
download_path = Path("/a/www/www6s/download")
ftp_path = Path("/a/ftp/internet-drafts")
all_archive_path = Path("/a/ietfdata/doc/draft/archive")
id_path = Path(settings.INTERNET_DRAFT_PATH)
derived_path = Path(settings.DERIVED_DIR)
download_path = Path(settings.ALLID_DOWNLOAD_DIR)
ftp_path = Path(settings.FTP_DIR) / "internet-drafts"
all_archive_path = Path(settings.INTERNET_ALL_DRAFTS_ARCHIVE_DIR)

with TempFileManager("/a/tmp") as tmp_mgr:
# Generate copies of new contents
Expand Down
1 change: 1 addition & 0 deletions ietf/settings.py
Expand Up @@ -685,6 +685,7 @@ def skip_unreadable_post(record):
MEETING_RECORDINGS_DIR = '/a/www/audio'
DERIVED_DIR = '/a/ietfdata/derived'
FTP_DIR = '/a/ftp'
ALLID_DOWNLOAD_DIR = '/a/www/www6s/download'
jennifer-richards marked this conversation as resolved.
Show resolved Hide resolved

DOCUMENT_FORMAT_ALLOWLIST = ["txt", "ps", "pdf", "xml", "html", ]

Expand Down