Commit graph

4913 commits

Author SHA1 Message Date
c46c868628
[#1223] lens/tui: Add interface for string colorization
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
2157afb76d
[#1223] lens/tui: Change User Attribute bucket schema
Make User Attribute bucket display more verbose

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
f8ce4ea63a
[#1223] lens/tui: Add alternative text on open an empty bucket
Add an alternative text to display in the selected bucket's records
view in case that bucket is empty.

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
4ed3b273f9
[#1223] lens/tui: Enchance help page
- Make help multipage: one page for each chapter.
- Improve help information.
- Add markup.

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:32 +03:00
ff28b7e592
[#1223] lens/tui: Add help for tui command in lens CLI
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
62f8e91d79
[#1223] lens/tui: Add app exit on q pressed while on help page
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
b00f184c78
[#1223] lens/tui: Add CLI flags to start search on application run
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
bcd48ff221
[#1223] lens/tui: Add help page
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
1504a1ae19
[#1223] lens/tui: Add search by attribute key or key and value
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
c54ae73841
[#1223] lens/tui: Fix exit on loading cancel
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
a3e0380e43
[#1223] lens/tui: Add error message on invalid search prompt
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
235cc15037
[#1223] lens/tui: Add search by OID, CID and full address
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
78a39f47b3
[#1223] lens/tui: Remove redundant UI components
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
1a1aa9fc4b
[#1223] lens/tui: remove pprof
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
98215ff06b
[#1223] lens/tui: fix records view input handling
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
b05fb6b767
[#1223] lens/tui: add records view and detailed view
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
172492a9be
[#1223] lens/tui: add loadable components into application
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
1da1824d15
[#1223] lens/tui: Make parsers for each bucket/record type
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
22170f05e9
[#1223] lens/tui: Fix subhandlers using same result to decode
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
c72bc6596a
[#1223] lens/tui: Abandon parsers
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
08f9fc4738
[#1223] lens/tui: Add lazy/eager switch while loading buckets
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
ec66b4cee2
[#1223] lens/tui: Add search by CID and OID
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
c65b3a9ba9
[#1223] lens/tui: Change buckets view loading
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
4115e4575b
[#1223] lens/tui: Add CID/OID-based filtering to handlers
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
8682762ef1
[#1223] lens/tui: Add rich text support for multipage view component
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
cd282edfd5
[#1223] lens/tui: Add detailed view for key-value records
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
249f621b56
[#1223] lens/tui: Change schema handlers
Make schema parsers generic

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
103d6e4c08
[#1223] scripts: Fix EC headers generation
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
1e07775161
[#1223] lens/tui: Add schema handlers for all bucket types
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
18c372198a
[#1223] scripts: Make db populating script work with all bucket types
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
d4ce0adf11
[#1223] lens/tui: Add page navigation component
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
d31d52e8bb
[#1223] lens/tui: Make fixes to MultipageView component
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
c727aed7cb
[#1223] lens/tui: Remove unused TUI components
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
ced78fd939
[#1223] lens/tui: Make database open in read-only mode
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
50ccc2df88
[#1223] scripts: Add EC headers generation
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
127928f314
[#1223] lens/tui: Add schema support for more bucket types
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
75b60bba1a
[#1223] lens/tui: Change schema-guided parsing package structure
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
4e1f12977c
[#1223] scripts: Change payload, owner and attributes generation
Now an object's payload, attributes and owner are taken from a
pregenerated pools, not a newly generated payload, attributes
or owner per each object as it was before. This helps to populate
index buckets more naturally.

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
dd6b6fc2e7
[#1223] lens/tui: Change schema-guided parsing
- Unite validation and formatting
- Return result that satisfies fmt.Stringer interface

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
57ca7c1ce7
[#1223] scripts: Add -force flag
Add -force flag to rewrite existing file while opening metabase

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
28cf493021
[#1223] scripts: Make metabase put call parallel
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
dd4d54bbac
[#1223] lens/tui: Add validation and format handling for some buckets
Add validation and format handling for buckets with regular, lock and
tombstone objects as well as those buckets' underlaying records.

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
49ef80499c
[#1223] lens/tui: Change application structure
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
176f56740f
[#1223] lens: Add db lazy fetching
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
57be7d4c0b
[#1223] scripts/populate-metabase: Add attributes number option
Add option to choose number of object attributes

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
1d64c3e79b
[#1223] lens: Fix deadlock while loading key-value records
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
843d6b2757
[#1223] lens: Add key-value records list view
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
07b1168f86
[#1223] scripts: Add script to populate metabase
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
b6d6729f3b
[#1223] lens: Fix subtree expansion in bucket tree view
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:31 +03:00
a7c0426840
[#1223] lens: Fix creation of bucket deletion callback
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-08-16 11:33:30 +03:00