Skip to content

Commit

Permalink
Add labels column to Busy tab Processes table
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva committed Dec 19, 2023
1 parent 6526de8 commit 3759092
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/kuiq/model/process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ def rss
def queues
@hash["queues"].join(', ')
end

def labels
@hash["labels"].join(', ')
end

def method_missing(attr)
def method_missing(attr, *args, &block)
@hash[attr.to_s]
end

Expand Down
2 changes: 2 additions & 0 deletions lib/kuiq/view/busy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Busy
text_column(t("RSS"))
text_column(t("Threads"))
text_column(t("Busy"))
text_column(t("Labels"))
text_column(t("Queues"))

cell_rows <= [job_manager, :processes,
Expand All @@ -40,6 +41,7 @@ class Busy
t("RSS") => :rss,
t("Threads") => :concurrency,
t("Busy") => :busy,
t("Labels") => :labels,
t("Queues") => :queues,
}]
}
Expand Down

0 comments on commit 3759092

Please sign in to comment.