[COMPASS-3839] Click a listed query in Query History does not populate to the query bar. Created: 20/Aug/19  Updated: 29/Oct/23  Resolved: 23/Sep/19

Status: Closed
Project: Compass
Component/s: Compass, Query History
Affects Version/s: 1.19.0
Fix Version/s: 1.20.0

Type: Bug Priority: Major - P3
Reporter: Tanna Matan Assignee: Durran Jordan
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2019-08-20-15-30-26-475.png     PNG File image-2019-08-20-16-16-06-609.png    
Sprint: Iteration Manatee, Iteration Newt

 Description   

Refer to View Recent Queries document, clicking a listed query to populate the query bar with that query is mentioned. However, this feature is not working but instead generating an error in DevTools.

 

Error captured from DevTool:

/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:21 Uncaught TypeError: at.runQuery is not a function
{{ at r.populateQuery (/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-query-history/lib/index.js:228)}}
{{ at Object.ca (/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:14)}}
{{ at ja (/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:15)}}
{{ at ka (/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:15)}}
{{ at wa (/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:17)}}
{{ at Aa (/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:18)}}
{{ at ya (/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:18)}}
{{ at Da (/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:21)}}
{{ at Ad (/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:84)}}
{{ at Gi (/Applications/MongoDB Compass 2.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:250)}}

 



 Comments   
Comment by Ralph Seichter [ 23/Oct/19 ]

@durran.jordan @apinya.tepwankul : I use Compass 1.19.12 on macOS 10.15 (Catalina), and still experience this bug. Clicking query history items does not populate the query bar.

Comment by Githook User [ 23/Sep/19 ]

Author:

{'name': 'Durran Jordan', 'username': 'durran', 'email': 'durran@gmail.com'}

Message: COMPASS-3839: Fix sidebar right styling & query population
Branch: 1.20-releases
https://github.com/mongodb-js/compass/commit/32731d6f51b121e01ac19f4b1ae268a82235412e

Comment by Githook User [ 23/Sep/19 ]

Author:

{'username': 'durran', 'email': 'durran@gmail.com', 'name': 'Durran Jordan'}

Message: COMPASS-3839: Fix sidebar right styling
Branch: master
https://github.com/mongodb-js/compass/commit/34241f483feb4843f1bdc0f15cb14df2898b7af8

Comment by Githook User [ 23/Sep/19 ]

Author:

{'username': 'durran', 'email': 'durran@gmail.com', 'name': 'Durran Jordan'}

Message: COMPASS-3839: Fix sidebar right styling
Branch: COMPASS-3839
https://github.com/mongodb-js/compass/commit/4dbe0b6a253ab06217d387981f296858ad92b917

Comment by Matt McClellan [ 23/Aug/19 ]

Please Please Please Please. Thank you.

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