Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master a06c64884 -> 5a8a3fb43


react-select: disable cache

react-select caches the results which leads to database names
appearing in the list of document names after you opened the
dropdown on the _all_dbs page.

PR: #785
PR-URL: https://github.com/apache/couchdb-fauxton/pull/785
Reviewed-By: garren smith <garren.sm...@gmail.com>


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

Branch: refs/heads/master
Commit: 5a8a3fb43f8eff9a4d22afd1530169bbdda3621a
Parents: a06c648
Author: Robert Kowalski <robertkowal...@apache.org>
Authored: Thu Oct 13 20:14:53 2016 +0200
Committer: Robert Kowalski <robertkowal...@apache.org>
Committed: Fri Oct 14 09:03:20 2016 +0200

----------------------------------------------------------------------
 app/addons/databases/components.react.jsx             | 4 +---
 app/addons/documents/components/actions.js            | 2 +-
 app/addons/documents/components/header-docs-right.jsx | 2 +-
 app/addons/documents/components/jumptodoc.react.jsx   | 1 +
 package.json                                          | 2 +-
 5 files changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/5a8a3fb4/app/addons/databases/components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/databases/components.react.jsx 
b/app/addons/databases/components.react.jsx
index d37a5aa..2540b6d 100644
--- a/app/addons/databases/components.react.jsx
+++ b/app/addons/databases/components.react.jsx
@@ -222,9 +222,7 @@ var GraveyardInfo = React.createClass({
 const RightDatabasesHeader = () => {
   return (
     <div className="header-right right-db-header flex-layout flex-row">
-      <JumpToDatabaseWidget
-        loadOptions={Actions.fetchAllDbsWithKey}
-      />
+      <JumpToDatabaseWidget loadOptions={Actions.fetchAllDbsWithKey} />
       <AddDatabaseWidget />
     </div>
   );

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/5a8a3fb4/app/addons/documents/components/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/components/actions.js 
b/app/addons/documents/components/actions.js
index c6d7135..fe79504 100644
--- a/app/addons/documents/components/actions.js
+++ b/app/addons/documents/components/actions.js
@@ -14,7 +14,7 @@ import FauxtonAPI from "../../../core/api";
 
 export default {
   fetchAllDocsWithKey: (database) => {
-      return (id, callback) => {
+    return (id, callback) => {
       const query = '?' + $.param({
         startkey: JSON.stringify(id),
         endkey: JSON.stringify(id + "\u9999"),

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/5a8a3fb4/app/addons/documents/components/header-docs-right.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/components/header-docs-right.jsx 
b/app/addons/documents/components/header-docs-right.jsx
index 7ca1900..c06df07 100644
--- a/app/addons/documents/components/header-docs-right.jsx
+++ b/app/addons/documents/components/header-docs-right.jsx
@@ -31,7 +31,7 @@ const RightAllDocsHeader = ({database}) =>
 
     <div className="faux-header__searchboxwrapper">
       <div className="faux-header__searchboxcontainer">
-        <JumpToDoc loadOptions={Actions.fetchAllDocsWithKey(database)} 
database={database} />
+        <JumpToDoc cache={false} 
loadOptions={Actions.fetchAllDocsWithKey(database)} database={database} />
       </div>
     </div>
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/5a8a3fb4/app/addons/documents/components/jumptodoc.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/components/jumptodoc.react.jsx 
b/app/addons/documents/components/jumptodoc.react.jsx
index 99347f9..5a5f79b 100644
--- a/app/addons/documents/components/jumptodoc.react.jsx
+++ b/app/addons/documents/components/jumptodoc.react.jsx
@@ -26,6 +26,7 @@ const JumpToDoc = ({database, loadOptions}) => {
         loadOptions={loadOptions}
         clearable={false}
         ignoreCase={false}
+        cache={false}
         onChange={({value: docId}) => {
           const url = FauxtonAPI.urls('document', 'app', 
app.utils.safeURLName(database.id), app.utils.safeURLName(docId));
           // We navigating away from the page. So we need to take that 
navigation out of the loop otherwise

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/5a8a3fb4/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 8ac5093..94e5800 100644
--- a/package.json
+++ b/package.json
@@ -80,7 +80,7 @@
     "react-addons-css-transition-group": "~15.0.1",
     "react-bootstrap": "^0.28.5",
     "react-dom": "~15.0.1",
-    "react-select": "^1.0.0-beta12",
+    "react-select": "1.0.0-rc.2",
     "request": "^2.54.0",
     "semver": "^5.1.0",
     "send": "^0.13.1",

Reply via email to