Skip to content

Commit

Permalink
models, commands: remove unused code (#202)
Browse files Browse the repository at this point in the history
- remove Repo.is_initialized (bug 1915203)
- remove Worker.ssh_private_key (bug 1936864)
- remove unused landing_worker management command (bug 1927139)
  • Loading branch information
zzzeid authored Jan 27, 2025
1 parent 09d8542 commit f5be8cd
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 93 deletions.
90 changes: 0 additions & 90 deletions src/lando/main/management/commands/landing_worker.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 5.1.4 on 2025-01-27 14:58

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("main", "0014_rename_error_breakdown_diffwarning_data"),
]

operations = [
migrations.RemoveField(
model_name="repo",
name="is_initialized",
),
migrations.RemoveField(
model_name="worker",
name="ssh_private_key",
),
]
2 changes: 0 additions & 2 deletions src/lando/main/models/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ def path(self) -> str:
blank=True,
default=None,
)
is_initialized = models.BooleanField(default=False)

system_path = models.CharField(
max_length=255,
blank=True,
Expand Down
1 change: 0 additions & 1 deletion src/lando/main/models/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class Worker(BaseModel):
name = models.CharField(max_length=255, unique=True)
is_paused = models.BooleanField(default=False)
is_stopped = models.BooleanField(default=False)
ssh_private_key = models.TextField(null=True, blank=True)
applicable_repos = models.ManyToManyField(Repo)

throttle_seconds = models.IntegerField(default=10)
Expand Down

0 comments on commit f5be8cd

Please sign in to comment.