Skip to content

Commit

Permalink
bugfix: pipeline runtime admin page search error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
homholueng committed Dec 3, 2021
1 parent b40193b commit 0722af2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
23 changes: 17 additions & 6 deletions runtime/bamboo-pipeline/pipeline/eri/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,24 @@

@admin.register(models.Process)
class ProcessAdmin(admin.ModelAdmin):
list_display = ["id", "parent_id", "ack_num", "need_ack", "asleep", "suspended", "frozen", "dead"]
search_fields = ["id___exact", "parent_id____exact", "current_node_id____exact", "suspended_by____exact"]
list_display = [
"id",
"parent_id",
"ack_num",
"need_ack",
"asleep",
"suspended",
"frozen",
"dead",
"root_pipeline_id",
"current_node_id",
]
search_fields = ["root_pipeline_id__exact", "current_node_id__exact", "suspended_by__exact"]


@admin.register(models.Node)
class NodeAdmin(admin.ModelAdmin):
list_display = ["id", "node_id"]
list_display = ["id", "node_id", "detail"]
search_fields = ["node_id__exact"]


Expand All @@ -48,18 +59,18 @@ class StateAdmin(admin.ModelAdmin):
@admin.register(models.Schedule)
class ScheduleAdmin(admin.ModelAdmin):
list_display = ["id", "type", "process_id", "node_id", "finished", "expired", "version", "schedule_times"]
search_fields = ["id__exact", "node_id__exact"]
search_fields = ["node_id__exact"]


@admin.register(models.Data)
class DataAdmin(admin.ModelAdmin):
list_display = ["id", "node_id"]
list_display = ["id", "node_id", "inputs", "outputs"]
search_fields = ["node_id__exact"]


@admin.register(models.ExecutionData)
class ExecutionDataAdmin(admin.ModelAdmin):
list_display = ["id", "node_id"]
list_display = ["id", "node_id", "inputs", "outputs"]
search_fields = ["node_id__exact"]


Expand Down
2 changes: 1 addition & 1 deletion runtime/bamboo-pipeline/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bamboo-pipeline"
version = "3.9.0"
version = "3.9.1"
description = "runtime for bamboo-engine base on Django and Celery"
authors = ["homholueng <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 0722af2

Please sign in to comment.