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

Expanding/collapsing fields is broken when there's dates in the JSON #200301

Closed
Philippus opened this issue Nov 15, 2024 · 3 comments
Closed

Expanding/collapsing fields is broken when there's dates in the JSON #200301

Philippus opened this issue Nov 15, 2024 · 3 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Console Dev Tools Console Feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@Philippus
Copy link

Philippus commented Nov 15, 2024

Kibana version:
8.15.3

Elasticsearch version:
8.15.3

Server OS version:
macOS
Browser version:
Firefox and also Chrome
Browser OS version:
Firefox 132.0.1 / Chrome 131.0.6778.70
Original install method (e.g. download page, yum, from source, etc.):
n/a
Describe the bug:
Expanding/collapsing fields is broken when there's dates in the JSON
Steps to reproduce:
add the following document to Elasticsearch

POST testcollapse/_doc/1
{
  "fields": {
    "dates": {
      "publication_date": "2022-09-23T03:42:23Z",
      "release_date": "2024-11-15T08:34:37.857843763Z"
    },
    "variants": {
      "a" : "a",
      "b" : "b"
    }
  },
  "other_fields": {
    "a": "b"
  }
}

GET testcollapse/_doc/1

Try to collapse the "fields"-field with the down arrow on line 9, the "other-fields" is "swallowed up" in the collapsing"
Or
Click on the up arrow on line 13, it will be marked in red.

I think it has something to do with the fact that the two date fields are dates. If they are strings, the field is collapsed correctly.

Expected behavior:
Should be collapsed correctly.

Screenshots (if relevant):
Image
Image

Errors in browser console (if relevant):
n/a
Provide logs and/or server output (if relevant):
n/a
Any additional context:

@Philippus Philippus added the bug Fixes for quality problems that affect the customer experience label Nov 15, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Nov 15, 2024
@mbondyra mbondyra added the Team:APM All issues that need APM UI Team support label Nov 15, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:APM)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Nov 15, 2024
@mbondyra mbondyra added the Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more label Nov 15, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

@mbondyra mbondyra removed the Team:APM All issues that need APM UI Team support label Nov 15, 2024
@sabarasaba sabarasaba added the Feature:Console Dev Tools Console Feature label Nov 18, 2024
@sabarasaba
Copy link
Member

We have then migrated the console editor to monaco and this bug has been fixed as a consequence of that

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Console Dev Tools Console Feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

No branches or pull requests

4 participants