You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by robertkowalski <gi...@git.apache.org> on 2016/06/17 17:53:20 UTC
[GitHub] couchdb-fauxton pull request #731: provide debugging help for monkey patched...
GitHub user robertkowalski opened a pull request:
https://github.com/apache/couchdb-fauxton/pull/731
provide debugging help for monkey patched established methods
inheritance is so ridiculous. inheritance in javascript is
just monkey patching. today i spent 8 hrs to finding a bug where
a promise failed silently in a monkey patched route object.
i found it by stringifying a function at runtime with
`console.log(this.establish.toString());` in the renderpipeline
which calls establish on the routeobjects.
the promise in the establish fails, the whole renderpipeline
fails silently and the breadcrumbs component is not rendered.
this commit will make finding those issues in the future a lot
easier
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/robertkowalski/couchdb-fauxton renderpipeline-inherit
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-fauxton/pull/731.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #731
----
commit 20982753a5c683aa2774aedff60cc461b7453b77
Author: Robert Kowalski <ro...@apache.org>
Date: 2016-06-17T17:43:40Z
fix comment
commit 484e6c1a71462bc95a1370594f40c69341e28310
Author: Robert Kowalski <ro...@apache.org>
Date: 2016-06-17T17:43:49Z
provide debugging help for monkey patched established methods
inheritance is so ridiculous. inheritance in javascript is
just monkey patching. today i spent 8 hrs to finding a bug where
a promise failed silently in a monkey patched route object.
i found it by stringifying a function at runtime with
`console.log(this.establish.toString());` in the renderpipeline
which calls establish on the routeobjects.
the promise in the establish fails, the whole renderpipeline
fails silently and the breadcrumbs component is not rendered.
this commit will make finding those issues in the future a lot
easier
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] couchdb-fauxton pull request #731: provide debugging help for monkey patched...
Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski closed the pull request at:
https://github.com/apache/couchdb-fauxton/pull/731
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] couchdb-fauxton issue #731: provide debugging help for monkey patched establ...
Posted by garrensmith <gi...@git.apache.org>.
Github user garrensmith commented on the issue:
https://github.com/apache/couchdb-fauxton/pull/731
+1.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---