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

[Painless Lab] UI freezes when using filter context #60146

Closed
cjcenizal opened this issue Mar 13, 2020 · 2 comments
Closed

[Painless Lab] UI freezes when using filter context #60146

cjcenizal opened this issue Mar 13, 2020 · 2 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Dev Tools Feature:Painless Lab Dev tool for learning Painless painless painless Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@cjcenizal
Copy link
Contributor

To reproduce, attempt to send this request with the UI:

PUT /my-index
{
  "mappings": {
    "properties": {
      "field": {
        "type": "keyword"
      }
    }
  }
}

POST /_scripts/painless/_execute
{
  "script": {
    "source": "doc['field'].value.length() <= params.max_length",
    "params": {
      "max_length": 4
    }
  },
  "context": "filter",
  "context_setup": {
    "index": "my-index",
    "document": {
      "field": "four"
    }
  }
}

The UI will freeze as you edit the Document field.

@cjcenizal cjcenizal added bug Fixes for quality problems that affect the customer experience Feature:Dev Tools painless painless Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more labels Mar 13, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@cjcenizal cjcenizal mentioned this issue Mar 14, 2020
13 tasks
@cjcenizal
Copy link
Contributor Author

Fixed by b7840ff

@cjcenizal cjcenizal added the Feature:Painless Lab Dev tool for learning Painless label Mar 23, 2020
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:Dev Tools Feature:Painless Lab Dev tool for learning Painless painless painless Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

No branches or pull requests

2 participants