Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist display columns #406

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

JeyRathnam
Copy link
Contributor

fixes #152

Copy link

changeset-bot bot commented May 23, 2024

🦋 Changeset detected

Latest commit: 922f2d5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hyperdx/api Patch
@hyperdx/app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -410,7 410,7 @@ export const RawLogTable = memo(
size: columnSizeStorage[column] ?? 150,
})) as ColumnDef<any>[]),
{
accessorKey: 'body',
accessorKey: 'show-pattern',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MikeShi42 Changed accessorKey from 'body' to 'show-pattern' as it was conflicting with 'body' custom column

Copy link
Contributor

Choose a reason for hiding this comment

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

accessorKey should stay body as it renders log's body property, could you provide more context on why it conflicts with custom columns?

Screenshot 2024-05-28 at 4 45 48 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When custom column 'body' is added it conflicts with the 'message' column which has the same accessorKey
image

This causes duplicate of body when switching to other search views in this instance:
image

Not sure if there is a different way to resolve this

@@ -531,7 531,8 @@ const api = {
{
name: string;
query: string;
tags?: string;
tags?: string[];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MikeShi42 Changed tag type from string to string[], not sure if that is accurate. Please correct if wrong

@JeyRathnam JeyRathnam marked this pull request as ready for review May 23, 2024 02:09
@sanasol
Copy link

sanasol commented Sep 19, 2024

Is there is a chance to finish and merge this? 🥺

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.

[HDX-253] Persist Custom Columns
3 participants