[COMPASS-3814] Share Schema as JSON causes javascript error, does not open save dialog Created: 13/Aug/19  Updated: 29/Oct/23  Resolved: 01/Oct/19

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

Type: Bug Priority: Major - P3
Reporter: Brian Blevins Assignee: Irina Shestak (Inactive)
Resolution: Fixed Votes: 0
Labels: json, schema
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MacOSX


Attachments: PNG File image-2019-08-13-13-45-58-041.png    
Issue Links:
Cloners
is cloned by COMPASS-3918 CLONE - Share Schema as JSON causes j... Closed
Duplicate
is duplicated by COMPASS-3919 Share Schema as JSON Closed
Sprint: Iteration Manatee, Iteration Newt

 Description   

Unable to use the Collection: Share Schema as JSON menu item in Compass 1.19.0.

The following error is generated in Dev Tools and no dialog is displayed to share/save the schema.

Uncaught Error: Could not call remote function 'showMessageBox'. Check that the function signature is correct. Underlying error: Error processing argument at index 10, conversion failure from 
Error: Could not call remote function 'showMessageBox'. Check that the function signature is correct. Underlying error: Error processing argument at index 10, conversion failure from 
    at callFunction (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/rpc-server.js:258)
    at EventEmitter.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/rpc-server.js:360)
    at EventEmitter.emit (events.js:182)
    at WebContents.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/api/web-contents.js:293)
    at WebContents.emit (events.js:182)
    at callFunction (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/rpc-server.js:258)
    at EventEmitter.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/rpc-server.js:360)
    at EventEmitter.emit (events.js:182)
    at WebContents.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/api/web-contents.js:293)
    at WebContents.emit (events.js:182)
    at metaToException (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/renderer/api/remote.js:271)
    at Object.exception (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/renderer/api/remote.js:219)
    at metaToValue (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/renderer/api/remote.js:223)
    at Object.remoteMemberFunction (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/renderer/api/remote.js:123)
    at Store.handleSchemaShare (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-schema/lib/index.js:57)
    at EventEmitter.emit (events.js:182)



 Comments   
Comment by Githook User [ 30/Sep/19 ]

Author:

{'name': 'Irina Shestak', 'username': 'lrlna', 'email': 'lrlna@users.noreply.github.com'}

Message: COMPASS-3814: add respondTo ipc event to show info dialogue (#1795) (#1821)

Comment by Githook User [ 30/Sep/19 ]

Author:

{'name': 'Irina Shestak', 'username': 'lrlna', 'email': 'lrlna@users.noreply.github.com'}

Message: COMPASS-3814: add respondTo ipc event to show info dialogue (#1795)

Comment by Githook User [ 30/Sep/19 ]

Author:

{'username': 'lrlna', 'email': 'lrlna@users.noreply.github.com', 'name': 'Irina Shestak'}

Message: COMPASS-3814: add respondTo ipc event to show info dialogue (#1795)

Comment by Githook User [ 30/Sep/19 ]

Author:

{'username': 'lrlna', 'email': 'shestak.irina@gmail.com', 'name': 'lrlna'}

Message: COMPASS-3814: add showInfoDialog to be used when sharing schema as JSON
Branch: add-show-msg-ipc
https://github.com/mongodb-js/compass/commit/26eab4897600370af34a05838311d2bd49aea3cd

Comment by Githook User [ 26/Sep/19 ]

Author:

{'name': 'lrlna', 'username': 'lrlna', 'email': 'shestak.irina@gmail.com'}

Message: COMPASS-3814: add showInfoDialog to be used when sharing schema as JSON
Branch: add-show-msg-ipc
https://github.com/mongodb-js/compass/commit/911c9728a6398280301702a1aa12fc11b8f559cc

Comment by Githook User [ 12/Sep/19 ]

Author:

{'name': 'lrlna', 'username': 'lrlna', 'email': 'shestak.irina@gmail.com'}

Message: COMPASS-3814: add showInfoDialog to be used when sharing schema as JSON
Branch: add-show-msg-ipc
https://github.com/10gen/compass/commit/1bfb04187349085428023ad61570bcede9a56819

Comment by Githook User [ 12/Sep/19 ]

Author:

{'username': 'lrlna', 'email': 'shestak.irina@gmail.com', 'name': 'lrlna'}

Message: COMPASS-3814: add showInfoDialog to be used when sharing schema as JSON
Branch: add-show-msg-ipc
https://github.com/10gen/compass/commit/1d97e8f69a14e7feec6f6023bdf4a0b0dd116815

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