couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject documentation commit: updated refs/heads/master to d0c36a7
Date Thu, 08 Sep 2016 18:06:45 GMT
Repository: couchdb-documentation
Updated Branches:
  refs/heads/master 968b874ea -> d0c36a7d2


remove references to temporary views

refs COUCHDB-3120


Project: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/commit/d0c36a7d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/tree/d0c36a7d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/diff/d0c36a7d

Branch: refs/heads/master
Commit: d0c36a7d277fc3e36caff4144a0bfb3f2a1ae6e9
Parents: 968b874
Author: Will Holley <willholley@gmail.com>
Authored: Wed Sep 7 15:54:55 2016 +0100
Committer: Will Holley <willholley@gmail.com>
Committed: Wed Sep 7 17:02:17 2016 +0100

----------------------------------------------------------------------
 src/api/database/index.rst      |  1 -
 src/api/database/security.rst   |  6 +--
 src/api/database/temp-views.rst | 80 ------------------------------------
 src/config/http-handlers.rst    |  7 ----
 src/intro/security.rst          |  2 -
 src/query-server/index.rst      |  3 +-
 src/whatsnew/2.0.rst            |  2 +
 7 files changed, 6 insertions(+), 95 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/d0c36a7d/src/api/database/index.rst
----------------------------------------------------------------------
diff --git a/src/api/database/index.rst b/src/api/database/index.rst
index a09a75a..1846166 100644
--- a/src/api/database/index.rst
+++ b/src/api/database/index.rst
@@ -43,5 +43,4 @@ Where ``db`` is the name of any database.
     changes
     compact
     security
-    temp-views
     misc

http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/d0c36a7d/src/api/database/security.rst
----------------------------------------------------------------------
diff --git a/src/api/database/security.rst b/src/api/database/security.rst
index fc0315d..f34139a 100644
--- a/src/api/database/security.rst
+++ b/src/api/database/security.rst
@@ -30,9 +30,9 @@
 
     - ``admins``: they have all the privileges of ``members`` plus the
       privileges: write (and edit) design documents, add/remove database admins
-      and members, set the :ref:`database revisions limit <api/db/revs_limit>`
-      and execute :ref:`temporary views <api/db/temp_view>` against the
-      database. They can not create a database nor delete a database.
+      and members and set the :ref:`database revisions limit
+      <api/db/revs_limit>`. They can not create a database nor delete a
+      database.
 
     Both ``members`` and ``admins`` objects are contains two array-typed
     fields:

http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/d0c36a7d/src/api/database/temp-views.rst
----------------------------------------------------------------------
diff --git a/src/api/database/temp-views.rst b/src/api/database/temp-views.rst
deleted file mode 100644
index ffabc00..0000000
--- a/src/api/database/temp-views.rst
+++ /dev/null
@@ -1,80 +0,0 @@
-.. Licensed under the Apache License, Version 2.0 (the "License"); you may not
-.. use this file except in compliance with the License. You may obtain a copy of
-.. the License at
-..
-..   http://www.apache.org/licenses/LICENSE-2.0
-..
-.. Unless required by applicable law or agreed to in writing, software
-.. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-.. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-.. License for the specific language governing permissions and limitations under
-.. the License.
-
-.. _api/db/temp_view:
-
-==================
-``/db/_temp_view``
-==================
-
-.. http:post:: /{db}/_temp_view
-    :synopsis: Executes a given view function for all documents and returns
-               the result
-
-    Creates (and executes) a temporary view based on the view function
-    supplied in the JSON request.
-
-    The arguments also available to standard view requests also apply to
-    temporary views, but the execution of the view may take some time as it
-    relies on being executed at the time of the request. This means that for
-    every temporary view you create, the entire database will be read
-    one doc at a time and passed through the view function.
-
-    This should not be used on production CouchDB instances, and is purely a
-    convenience function for quick development testing. You should use a
-    defined view if you want to achieve the best performance.
-
-    See :ref:`api/ddoc/view` for more info.
-
-    **Request**:
-
-    .. code-block:: http
-
-        POST /db/_temp_view?group=true HTTP/1.1
-        Accept: application/json
-        Content-Length: 92
-        Content-Type: application/json
-        Host: localhost:5984
-
-        {
-            "map": "function(doc) { if (doc.value) { emit(doc.value, null); } }",
-            "reduce": "_count"
-        }
-
-    **Response**:
-
-    .. code-block:: http
-
-        HTTP/1.1 200 OK
-        Cache-Control: must-revalidate
-        Content-Type: application/json
-        Date: Tue, 13 Aug 2013 12:28:12 GMT
-        ETag: "AU33B3N7S9K4SAZSFA048HVB4"
-        Server: CouchDB (Erlang/OTP)
-        Transfer-Encoding: chunked
-
-        {
-            "rows": [
-                {
-                    "key": -10,
-                    "value": 1
-                },
-                {
-                    "key": 10,
-                    "value": 2
-                },
-                {
-                    "key": 15,
-                    "value": 1
-                }
-            ]
-        }

http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/d0c36a7d/src/config/http-handlers.rst
----------------------------------------------------------------------
diff --git a/src/config/http-handlers.rst b/src/config/http-handlers.rst
index e982a2a..7124303 100644
--- a/src/config/http-handlers.rst
+++ b/src/config/http-handlers.rst
@@ -187,13 +187,6 @@ Database HTTP Handlers
             [httpd_db_handlers]
             _design = {couch_httpd_db, handle_design_req}
 
-    .. config:option:: _temp_view
-
-        ::
-
-            [httpd_db_handlers]
-            _temp_view = {couch_mrview_http, handle_temp_view_req}
-
     .. config:option:: _view_cleanup
 
         ::

http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/d0c36a7d/src/intro/security.rst
----------------------------------------------------------------------
diff --git a/src/intro/security.rst b/src/intro/security.rst
index 25226ba..4d1d6ff 100644
--- a/src/intro/security.rst
+++ b/src/intro/security.rst
@@ -68,8 +68,6 @@ identification for certain requests:
   </{db}/_design/{ddoc}>`)
 - Deleting a design document (:delete:`DELETE /database/_design/app?rev=2-6A7
   </{db}/_design/{ddoc}>`)
-- Execute a temporary view (:post:`POST /database/_temp_view
-  </{db}/_temp_view>`)
 - Triggering compaction (:post:`POST /database/_compact </{db}/_compact>`)
 - Reading the task status list (:get:`GET /_active_tasks </_active_tasks>`)
 - Restarting the server (:post:`POST /_restart </_restart>`)

http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/d0c36a7d/src/query-server/index.rst
----------------------------------------------------------------------
diff --git a/src/query-server/index.rst b/src/query-server/index.rst
index 657faee..895609a 100644
--- a/src/query-server/index.rst
+++ b/src/query-server/index.rst
@@ -26,8 +26,7 @@ The default query server is written in
 You can use other languages by setting a Query server key in the ``language``
 property of a design document or the `Content-Type` header of a
 `temporary view`. Design documents that do not specify a ``language`` property
-are assumed to be of type `javascript`, as are ad hoc queries that are POSTed to
-:ref:`_temp_view <api/db/temp_view>` without a `Content-Type` header.
+are assumed to be of type `javascript`.
 
 .. _Mozilla SpiderMonkey: https://developer.mozilla.org/en/docs/SpiderMonkey
 

http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/d0c36a7d/src/whatsnew/2.0.rst
----------------------------------------------------------------------
diff --git a/src/whatsnew/2.0.rst b/src/whatsnew/2.0.rst
index 50ca15e..d318b3c 100644
--- a/src/whatsnew/2.0.rst
+++ b/src/whatsnew/2.0.rst
@@ -39,3 +39,5 @@ Version 2.0.0
 =============
 
 .. note:: TBD
+
+* temporary views are no longer supported


Mime
View raw message