-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ref(tags): Fix custom tags issue #21281
Conversation
size-limit report
|
be56b73
to
1bc33cb
Compare
for i, e in enumerate(tags) | ||
if e.get("_meta") | ||
} | ||
tags_meta = prune_empty_keys({six.text_type(i): e.pop("_meta") for i, e in enumerate(tags)}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to add a test for the Event serializer covering this fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this was still missing in the PR. There are tests covering this, but the tests were incomplete. They are now complete.
src/sentry/static/sentry/app/components/events/meta/annotatedText.tsx
Outdated
Show resolved
Hide resolved
Further tests are not possible at the moment as they will require on an updated version of @priscilawebdev This still needs to account for {
"tags": {
"a": "",
"": "b",
"??": "c"
}
} This renders the following UI: And also creates an error on the console:
Also, I'm 👍 to @markstory's suggestion to ship refactorings in a separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The frontend bits LGTM
5fd958e
to
bff99f9
Compare
bff99f9
to
f1388da
Compare
f1388da
to
f342659
Compare
f342659
to
6dd1ba8
Compare
da65380
to
8bebea5
Compare
closes: https://app.asana.com/0/1182975495223914/1197541196070295
Description: The UI or the event json is not showing the keys of the custom tags that were left empty or exceeded in the desired length.
it looks like below:
Chrome
Mozilla:
Safari: