[COMPASS-7149] Broken query pasting Created: 29/Aug/23  Updated: 29/Oct/23  Resolved: 05/Sep/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.39.4

Type: Bug Priority: Major - P3
Reporter: Ahmad Husseini Assignee: Sergey Petushkov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: macOS
node.js / npm versions:
Additional info: Version 1.39.3 (1.39.3)


Attachments: GIF File 2023-08-28 17.31.51.gif     GIF File 2023-08-28 17.41.56.gif     GIF File 2023-08-28 17.42.46.gif    
Issue Links:
Related
Story Points: 2
Documentation Changes: Not Needed
Sprint: Iteration Juravenator

 Description   

Problem Statement/Rationale

Filter pasting is broken after you started pre-populating the field with {}

Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell

Steps to Reproduce

  • copy a query
  • put cursor in Filter field
  • ⌘V
  • observe pasted query is rewritten to {}

Expected Results

when I paste something, ex. {Prop1: "abc"}, I expect to see {Prop1: "abc"}

Actual Results

when I paste something, ex. {Prop1: "abc"}, I get {}

Additional Notes

gif added



 Comments   
Comment by Githook User [ 11/Sep/23 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(query-bar): limit when custom paste handling is applied; use clipboard data when fixing input COMPASS-7149 (#4792)

fix(query-bar): limit when on paste is applied; use clipboard data when fixing input
Branch: use-user-data-in-pipelines
https://github.com/mongodb-js/compass/commit/a6b01f6483b75269b6cff564715e18b6f216962d

Comment by Githook User [ 05/Sep/23 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(query-bar): limit when custom paste handling is applied; use clipboard data when fixing input COMPASS-7149 (#4792)

fix(query-bar): limit when on paste is applied; use clipboard data when fixing input
Branch: feature/COMPASS-7164
https://github.com/mongodb-js/compass/commit/a6b01f6483b75269b6cff564715e18b6f216962d

Comment by Sergey Petushkov [ 05/Sep/23 ]

Thanks for reporting the issue! The fix is available in latest beta and the GA release will be available soon

Comment by Githook User [ 05/Sep/23 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(query-bar): limit when custom paste handling is applied; use clipboard data when fixing input COMPASS-7149 (#4792)

fix(query-bar): limit when on paste is applied; use clipboard data when fixing input
Branch: ga-releases
https://github.com/mongodb-js/compass/commit/a6b01f6483b75269b6cff564715e18b6f216962d

Comment by Githook User [ 05/Sep/23 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(query-bar): limit when custom paste handling is applied; use clipboard data when fixing input COMPASS-7149 (#4792)

fix(query-bar): limit when on paste is applied; use clipboard data when fixing input
Branch: beta-releases
https://github.com/mongodb-js/compass/commit/a6b01f6483b75269b6cff564715e18b6f216962d

Comment by Githook User [ 04/Sep/23 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(query-bar): limit when custom paste handling is applied; use clipboard data when fixing input COMPASS-7149 (#4792)

fix(query-bar): limit when on paste is applied; use clipboard data when fixing input
Branch: main
https://github.com/mongodb-js/compass/commit/a6b01f6483b75269b6cff564715e18b6f216962d

Comment by Githook User [ 04/Sep/23 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: Merge branch 'main' into compass-7149-fix-query-bar-paste
Branch: compass-7149-fix-query-bar-paste
https://github.com/mongodb-js/compass/commit/72b2dadba18fd4a3ad2bf98ebee50dc3c18b3e4b

Comment by Le Roux Bodenstein [ 31/Aug/23 ]

Yup I can reproduce this. Investigating.

Comment by PM Bot [ 29/Aug/23 ]

Hello ahmad.husseini@moduleq.com, thank you for reaching out to us! The team will review your issue and get back to you soon as soon as possible.

Please review your issue to ensure you've included your environment details and have attached relevant logs (with any sensitive data redacted), so that we're best able to provide you a timely and thorough response. Thanks again!

Generated at Wed Feb 07 22:45:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.