GitHub user robertkowalski opened a pull request:
https://github.com/apache/couchdb-fauxton/pull/678
Editor: don't throw if document has no id
Right now the editor throws if you try to create a doc that does
nto have an id, instead of doing a POST to the database, which
will cause CouchDB to create an id for us.
Sometimes you want to be able to not use the pre-generated id from
Fauxton. Use cases are copy pasting a JSON object into the editor
or if you want to let the server take care of creating the id.
This patch lets fixes an invalid POST to `$DB/undefined` in cases
where the id wasn't specified.
Thanks to Will Holley for reporting!
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/robertkowalski/couchdb-fauxton
create-docs-without-id
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-fauxton/pull/678.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 #678
----
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---