Skip to content

Conversation

imlucas
Copy link
Contributor

@imlucas imlucas commented Jul 20, 2016

The form default view is ’’ which is false-y so we were trying to set
an empty string as a number.


This change is Reviewable

…umber

The form default view is `’’` which is false-y so we were trying to set
an empty string as a number.
@kangas
Copy link
Contributor

kangas commented Jul 20, 2016

Heh! That's pretty easy. I'll test manually.

@kangas
Copy link
Contributor

kangas commented Jul 20, 2016

On this branch, fresh install (git clean -fdx && npm i):

When I try the following config (see screenshot) and click "Connect", I briefly see the progress bar, then it disappears. These bugsnag events are me:

https://bugsnag.com/mongodb/mongodb-compass/errors/578fbd825334c8b7bccc1ae5?filters[event.since][]=30d&filters[error.status][]=open&filters[app.release_stage][]=development&filters[user.id][]=7bfd2a39-87c3-4b90-a2c1-7976228ab18e

(Same error, "Uncaught TypeError: Property 'ssh_tunnel_port' must be of type number. Tried to set")

imlucas added 2 commits July 26, 2016 13:33
mongodb-js/connection-model#87

- All logic in one place for easier DX and release management
- Refactor `connect()` so if you specify ssh tunnel options, it all
just works.
- New `status` events to enable live updating status bars @rueckstiess
would like to implement.
- This will be an `npm version major` and subsequent major of
data-service.
@durran
Copy link
Member

durran commented Aug 8, 2016

@kangas What screenshot are you referring to? I do not get that error on this branch locally.

@durran durran merged commit ac08030 into master Aug 8, 2016
@durran durran deleted the INT-1650_ssh-tunnel-port branch August 8, 2016 14:43
kangas pushed a commit that referenced this pull request Aug 16, 2016
…umber (#441)

* INT-1650: Fix TypeError: Property 'ssh_tunnel_port' must be of type number

The form default view is `’’` which is false-y so we were trying to set
an empty string as a number.

* ⬆️ mongodb-connection-model@5.0.0

mongodb-js/connection-model#87

- All logic in one place for easier DX and release management
- Refactor `connect()` so if you specify ssh tunnel options, it all
just works.
- New `status` events to enable live updating status bars @rueckstiess
would like to implement.
- This will be an `npm version major` and subsequent major of
data-service.

* ⬆️ mongodb-data-service@1.0.0

* data-service@1.0.0 uses standard node.js style event names

(cherry picked from commit ac08030)
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

Successfully merging this pull request may close these issues.

4 participants