make treeview of all sources #13
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_proc#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
when we get logs in proc, at backend , we keep track of all sources
always (lowercase, ascii)
and show those in treeview
use dot = . as separation
and sort alphabetical
then allow mulit select of tthe tree at higher and lower level
this will then filter the logs for those chosen sources
so its very easy to zoom into logs
Implementation Spec for Issue #13 — Log Source Tree View
Objective
Add a hierarchical tree view of all log sources to the Logs tab in the hero_proc dashboard. Sources use dot-separated notation (e.g.,
nginx.main,myservice.myjob). The tree allows multi-select at any level to filter log output, making it easy to zoom into relevant logs.Requirements
logs.sourcesthat returns all distinctsrcvalues from thelogstable, always lowercased and ASCIISELECT DISTINCT LOWER(src) FROM logs WHERE src != '' ORDER BY src.as separatorFiles to Modify
crates/hero_proc_lib/src/db/logs/mod.rslist_sourcesSQL functioncrates/hero_proc_lib/src/db/factory.rslist_sourcesto LoggingApicrates/hero_proc_server/src/rpc/log.rshandle_sourcesRPC handlercrates/hero_proc_server/src/rpc/mod.rslogs.sourcesroutecrates/hero_proc_server/src/web.rscrates/hero_proc_ui/templates/index.htmlcrates/hero_proc_ui/static/js/dashboard.jscrates/hero_proc_ui/static/css/dashboard.cssImplementation Steps
list_sourcesfunction (SQL query)LoggingApilogs.sourceshandler + route + param mappingAcceptance Criteria
logs.sourcesRPC returns sorted, deduplicated, lowercased source list.separatorBuild & Test Results
shell_escapefunction in integration test fixtures)Changes Summary
hero_proc_lib: Addedlist_sources()DB function + factory methodhero_proc_server: Addedlogs.sourcesRPC handler + routehero_proc_ui: Added source tree sidebar with HTML, CSS, and JavaScriptImplementation committed:
fab276cBrowse:
fab276c