Skip to content

feat: render standard event fields first - #3368

Merged
Ziinc merged 3 commits into
Logflare:mainfrom
msmithstubbs:feat/json-viewer-promoted-fields
Apr 24, 2026
Merged

feat: render standard event fields first#3368
Ziinc merged 3 commits into
Logflare:mainfrom
msmithstubbs:feat/json-viewer-promoted-fields

Conversation

@msmithstubbs

Copy link
Copy Markdown
Contributor

JSON viewer will render promoted fields (id, timestamp, event_message) first.

Closes O11Y-1596

CleanShot 2026-04-14 at 16 57 49@2x

@msmithstubbs
msmithstubbs force-pushed the feat/json-viewer-promoted-fields branch 2 times, most recently from 66c3904 to 351dbf3 Compare April 16, 2026 00:30
:timer.sleep(2500)

assert_receive {:insert_all, [%{json: %{"attributes" => _}} | _] = rows}, 5_000
assert_receive {:insert_all, [%{json: %{"attributes" => _}} | _] = rows}, 15_000

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not part of this feature but CI kept failing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nelsonmestevao can you investigate this? We should also convert the sleep into a retry

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure how to change this. I could not make this test pass reliable with a smaller assert receive time. However, I could at least remove the sleep in this PR.

I will investigate how ingest_logs could be more reliable for the tests. I believe we had some similar issue that I worked with @laraujo7.

@msmithstubbs
msmithstubbs marked this pull request as ready for review April 16, 2026 03:43
@msmithstubbs
msmithstubbs force-pushed the feat/json-viewer-promoted-fields branch from c9d61a3 to 6b68c22 Compare April 19, 2026 23:22
Comment thread lib/logflare_web/components/json_viewer_component.ex Outdated
@Ziinc

Ziinc commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Seems really overly complex for sorting of keys

@msmithstubbs
msmithstubbs marked this pull request as draft April 22, 2026 06:34
@msmithstubbs
msmithstubbs force-pushed the feat/json-viewer-promoted-fields branch from 6b68c22 to 80c1c0f Compare April 23, 2026 07:03
@msmithstubbs
msmithstubbs force-pushed the feat/json-viewer-promoted-fields branch from 80c1c0f to 476d9a5 Compare April 23, 2026 07:06
@msmithstubbs
msmithstubbs marked this pull request as ready for review April 24, 2026 03:43
@msmithstubbs
msmithstubbs requested a review from Ziinc April 24, 2026 05:44
@Ziinc
Ziinc merged commit b859edc into Logflare:main Apr 24, 2026
13 checks passed
djwhitt pushed a commit that referenced this pull request May 18, 2026
* feat: JSONViewer renders promoted fields first

* ui: id quick_filter always visible

* test: increase timeout to try and pass ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants