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

Pasting very long query in data product explorer view makes it unusable #307

Open
laurentS opened this issue Dec 3, 2023 · 0 comments
Open

Comments

@laurentS
Copy link

laurentS commented Dec 3, 2023

When a very long query string is pasted in the explorer view, the text box adjusts its length to the content, but no scrollbar is shown, making the screen unusable.

Instead the text area should either wrap the content, or show a horizontal scrollbar to allow visiting the entire content, but the area's width should not exceed the screen width.

To reproduce:

  • open http://localhost:6363/dashboard/admin//product_explorer
  • paste a very long string, for instance {"@type": "And", "and": [{"@type": "InsertDocument", "document": {"@type": "Value", "dictionary": {"@type": "DictionaryTemplate", "data": [{"@type": "FieldValuePair", "field": "@type", "value": {"@type": "Value", "data": {"@type": "xsd:string", "@value": "Person"}}}, {"@type": "FieldValuePair", "field": "name", "value": {"@type": "Value", "data": {"@type": "xsd:string", "@value": "Tom"}}}, {"@type": "FieldValuePair", "field": "@capture", "value": {"@type": "Value", "data": {"@type": "xsd:string", "@value": "IdTom"}}}, {"@type": "FieldValuePair", "field": "rival", "value": {"@type": "Value", "dictionary": {"@type": "DictionaryTemplate", "data": [{"@type": "FieldValuePair", "field": "@ref", "value": {"@type": "Value", "data": {"@type": "xsd:string", "@value": "IdJerry"}}}]}}}]}}}, {"@type": "InsertDocument", "document": {"@type": "Value", "dictionary": {"@type": "DictionaryTemplate", "data": [{"@type": "FieldValuePair", "field": "@type", "value": {"@type": "Value", "data": {"@type": "xsd:string", "@value": "Person"}}}, {"@type": "FieldValuePair", "field": "name", "value": {"@type": "Value", "data": {"@type": "xsd:string", "@value": "Jerry"}}}, {"@type": "FieldValuePair", "field": "@capture", "value": {"@type": "Value", "data": {"@type": "xsd:string", "@value": "IdJerry"}}}, {"@type": "FieldValuePair", "field": "rival", "value": {"@type": "Value", "dictionary": {"@type": "DictionaryTemplate", "data": [{"@type": "FieldValuePair", "field": "@ref", "value": {"@type": "Value", "data": {"@type": "xsd:string", "@value": "IdTom"}}}]}}}]}}}]}
  • observe the unusable window
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

No branches or pull requests

1 participant