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

Unable to delete long contiguous strings in context variables #2400

Closed
5 tasks done
bakman2 opened this issue Dec 6, 2019 · 1 comment
Closed
5 tasks done

Unable to delete long contiguous strings in context variables #2400

bakman2 opened this issue Dec 6, 2019 · 1 comment
Labels

Comments

@bakman2
Copy link

bakman2 commented Dec 6, 2019

What are the steps to reproduce?

Example flow (sets a long variable to flow.test)

[{"id":"4ee4f5af.1c3894","type":"inject","z":"5a9f9611.f9bb2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":204,"y":672,"wires":[["297c49ed.627826"]]},{"id":"297c49ed.627826","type":"function","z":"5a9f9611.f9bb2","name":"","func":"test = \"exJ0eXAiOiJKV1QiLCJhbGciOiJSezI1NiIsImp0aSI6ImQ0NjE5ZTZhZjIwNTIzZGJmOWE5NTVjMDRhMzNmNzBiMDEyYmQ0Y2M2ZjY4NjlkZjEyMzlhOTE2YjJhNTYxYzUzMDAzZWQyNDg2Zjk2ZjUxIn0.eyJhdWQiOiIxMDM3IiwianRpIjoiZDQ2MTllNmFmMjA1MjNkYmY5YTk1NWMwNGEzM2Y3MGIwMTJiZDRjYzZmNjg2OWRmMTIzOWE5MTZiMmE1NjFjNTMwMDNlZDI0ODZmOTZmNTEiLCJpYXQiOjE1NzU2NDY0MDAsIm5iZiI6MTU3NTY0NjQwMCwiZXhwIjoxNjA3MjY4ODAwLCJzdWIiOiIxMTIwIiwic2NvcGVzIjpbXX0.dC0cCcAYKqvwD5tQwQhdQYsTpy-09ebNTMGRcUkJN8WBvhSbAlCiROqG3ZQHYXuFQrJ9yLNInmXs_R8_8Kv8fIWzvacrTK2Hnh8tZl5FnZxa4SLYA34mebE28dq_WYfv8Kf2GMsKnFjuhxah04fyrdg0huPZWM1NbmSAlSzOLBef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ZQ5mKQzzC1zvYq5VubgWotd_zTCoNcX-PaW8-iBtjf_zYJlhj0oY9HXq8J4PI3tHEbjIJvHf3dGANWfsrpVem2Zem1GudfB68OLq3HN9lJiBJgLntCS_a-DSODY6GvAWf5oF46a2neIMkMJap5xfhlhUIlcih8PlaKn5IzBttIwxNg2hrzaMCFwTRCDy2R58xmsKv_iV6-zhaG3kXXHrMUg_wYcoCDTNfvaOx-jHtb8zemBLvd4qrdiriIgN-77oR9A7-2i9ZUyTuKRYaQlHGetqzgY1mBxIVMVlPkKI-gZlR8_txpYSsbMgZN2T7CBTwKtoRQe2c3DDgy7aopK22ddJ8Zhkq2nbgZ8eVtdiseJRBwFdsiRI3s3I6fgL4faIBX18I\"\nflow.set(\"test\",test)","outputs":1,"noerr":0,"x":336,"y":672,"wires":[[]]}]

What happens?

Flow variable is set.
Copy/delete/refresh icons are rendered to the right side of the string. When clicked no action is performed.

What do you expect to happen?

Icons should be rendered within the viewport, or string should be wrapped and shown in viewport.

When string is put inside an object, it is properly wrapped.

Please tell us about your environment:

  • Node-RED version: 1.0.2
  • Node.js version: v10.17.0
  • npm version: 6.11.3
  • Platform/OS: MacOS 10.15.1
  • Browser: Safari 13.0.3 (15608.3.10.1.4)
@okhiroyuki
Copy link
Contributor

okhiroyuki commented Dec 14, 2019

Certainly pop-up dialogs are affected by the length of the context.

スクリーンショット 2019-12-14 12 50 58

スクリーンショット 2019-12-14 12 51 18

スクリーンショット 2019-12-14 12 51 34

スクリーンショット 2019-12-14 12 54 48

sample flow

[{"id":"502367ba.cca008","type":"function","z":"cb86037f.fdac2","name":"","func":"test = \"test\"\nflow.set(\"test1\",test)","outputs":1,"noerr":0,"x":420,"y":333,"wires":[[]]},{"id":"1f3755de.a4c7da","type":"inject","z":"cb86037f.fdac2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":241,"y":294,"wires":[["502367ba.cca008"]]},{"id":"2efa74f.4ee4f8c","type":"function","z":"cb86037f.fdac2","name":"","func":"test = \"1234567890123456789012345678901234567890\"\nflow.set(\"test2\",test)","outputs":1,"noerr":0,"x":408,"y":428,"wires":[[]]},{"id":"21940e08.858172","type":"inject","z":"cb86037f.fdac2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":242,"y":392,"wires":[["2efa74f.4ee4f8c"]]},{"id":"1a3c77d0.7e26d8","type":"function","z":"cb86037f.fdac2","name":"","func":"test = \"123456789012345678901234567890123456789012345678901234567890\"\nflow.set(\"test3\",test)","outputs":1,"noerr":0,"x":400,"y":510,"wires":[[]]},{"id":"7612a5a4.c803bc","type":"inject","z":"cb86037f.fdac2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":234,"y":474,"wires":[["1a3c77d0.7e26d8"]]},{"id":"3cc7a625.287eba","type":"function","z":"cb86037f.fdac2","name":"","func":"test = \"12345678901234567890123456789012345678901234567890123456789012345678901234567890\"\nflow.set(\"test4\",test)","outputs":1,"noerr":0,"x":389,"y":614,"wires":[[]]},{"id":"a24ef075.ccdc6","type":"inject","z":"cb86037f.fdac2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":223,"y":578,"wires":[["3cc7a625.287eba"]]}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants