Skip to content

Commit 3cf6394

Browse files
committed
Remove dead code related to the project_tree view #623
Signed-off-by: Thomas Druez <tdruez@nexb.com>
1 parent 65c84ca commit 3cf6394

File tree

4 files changed

+0
-78
lines changed

4 files changed

+0
-78
lines changed

scanpipe/templates/scanpipe/project_tree.html

Lines changed: 0 additions & 59 deletions
This file was deleted.

scanpipe/tests/test_auth.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ def test_scancodeio_auth_views_are_protected(self):
126126
("project_resources", [a_uuid]),
127127
("project_packages", [a_uuid]),
128128
("project_errors", [a_uuid]),
129-
("project_tree", [a_uuid]),
130129
("project_archive", [a_uuid]),
131130
("project_delete", [a_uuid]),
132131
("project_reset", [a_uuid]),

scanpipe/urls.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@
6666
views.ProjectErrorListView.as_view(),
6767
name="project_errors",
6868
),
69-
path(
70-
"project/<uuid:uuid>/tree/",
71-
views.ProjectTreeView.as_view(),
72-
name="project_tree",
73-
),
7469
path(
7570
"project/<uuid:uuid>/archive/",
7671
views.ProjectArchiveView.as_view(),

scanpipe/views.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -733,19 +733,6 @@ def form_valid(self, form):
733733
return redirect(project)
734734

735735

736-
class ProjectTreeView(ConditionalLoginRequired, ProjectViewMixin, generic.DetailView):
737-
template_name = "scanpipe/project_tree.html"
738-
739-
def get_context_data(self, **kwargs):
740-
context = super().get_context_data(**kwargs)
741-
742-
fields = ["name", "path"]
743-
project_codebase = codebase.ProjectCodebase(self.object)
744-
context["tree_data"] = [codebase.get_tree(project_codebase.root, fields)]
745-
746-
return context
747-
748-
749736
@conditional_login_required
750737
def execute_pipeline_view(request, uuid, run_uuid):
751738
project = get_object_or_404(Project, uuid=uuid)

0 commit comments

Comments
 (0)