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 code replaced by El Proxito and stateless servers #6535

Merged
merged 19 commits into from
May 6, 2020
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
2 changes: 0 additions & 2 deletions docs/development/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ for your own :doc:`custom installation </custom_installs/index>`.
front-end
design/index
buildenvironments
symlinks
settings
install
i18n
issue-labels
design
RTD Theme <https://sphinx-rtd-theme.readthedocs.io/en/latest/>

80 changes: 0 additions & 80 deletions docs/development/symlinks.rst

This file was deleted.

43 changes: 1 addition & 42 deletions readthedocs/builds/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,37 +322,13 @@ def get_absolute_url(self):
external=external,
)

def save(self, *args, **kwargs): # pylint: disable=arguments-differ
"""Add permissions to the Version for all owners on save."""
from readthedocs.projects import tasks
obj = super().save(*args, **kwargs)
broadcast(
type='app',
task=tasks.symlink_project,
args=[self.project.pk],
)
return obj

def delete(self, *args, **kwargs): # pylint: disable=arguments-differ
from readthedocs.projects import tasks
log.info('Removing files for version %s', self.slug)
broadcast(
type='app',
task=tasks.remove_dirs,
args=[self.get_artifact_paths()],
)

# Remove resources if the version is not external
if self.type != EXTERNAL:
tasks.clean_project_resources(self.project, self)

project_pk = self.project.pk
super().delete(*args, **kwargs)
broadcast(
type='app',
task=tasks.symlink_project,
args=[project_pk],
)

@property
def identifier_friendly(self):
Expand Down Expand Up @@ -420,23 +396,6 @@ def get_build_path(self):
return path
return None

def get_artifact_paths(self):
"""
Return a list of all production artifacts/media path for this version.

:rtype: list
"""
paths = []

for type_ in ('pdf', 'epub', 'htmlzip'):
paths.append(
self.project
.get_production_media_path(type_=type_, version_slug=self.slug),
)
paths.append(self.project.rtd_build_path(version=self.slug))

return paths

def get_storage_paths(self):
"""
Return a list of all build artifact storage paths for this version.
Expand Down Expand Up @@ -625,7 +584,7 @@ def __init__(self, *args, **kwargs):
pass
super().__init__(*args, **kwargs)

def save(self, *args, **kwargs):
def save(self, *args, **kwargs): # pylint: disable=arguments-differ
return 0


Expand Down
178 changes: 0 additions & 178 deletions readthedocs/builds/syncers.py

This file was deleted.

39 changes: 0 additions & 39 deletions readthedocs/core/management/commands/archive.py

This file was deleted.

Loading