csantanapr closed pull request #3341: Remove view supporting now removed API for listing assets in namespace. URL: https://github.com/apache/incubator-openwhisk/pull/3341
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/ansible/files/whisks_design_document_for_all_entities_db_v2.1.0.json b/ansible/files/whisks_design_document_for_all_entities_db_v2.1.0.json deleted file mode 100644 index ae8f475f93..0000000000 --- a/ansible/files/whisks_design_document_for_all_entities_db_v2.1.0.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "_id": "_design/all-whisks.v2.1.0", - "language": "javascript", - "views": { - "all": { - "map": "function (doc) {\n var PATHSEP = \"/\";\n\n var isPackage = function (doc) { return (doc.binding !== undefined) };\n var isAction = function (doc) { return (doc.exec !== undefined) };\n var isTrigger = function (doc) { return (doc.exec === undefined && doc.binding === undefined && doc.parameters !== undefined) };\n var isRule = function (doc) { return (doc.trigger !== undefined) };\n \n var collection = function (doc) {\n if (isPackage(doc)) return \"packages\";\n if (isAction(doc)) return \"actions\";\n if (isTrigger(doc)) return \"triggers\";\n if (isRule(doc)) return \"rules\";\n return undefined;\n };\n\n try {\n var type = collection(doc);\n if (type !== undefined) {\n var ns = doc.namespace.split(PATHSEP);\n var root = ns[0];\n var value = {\n collection: type,\n namespace: doc.namespace,\n name: doc.name,\n version: doc.version,\n publish: doc.publish,\n annotations: doc.annotations,\n updated: doc.updated\n };\n if (isAction(doc)) {\n value.limits = doc.limits;\n value.exec = { binary: doc.exec.binary || false};\n } else if (isPackage(doc)) {\n if (Object.keys(doc.binding).length > 0) {\n value.binding = doc.binding;\n } else {\n value.binding = false;\n }\n }\n emit([root, doc.updated], value);\n }\n } catch (e) {}\n}", - "reduce": "_count" - } - } -} \ No newline at end of file diff --git a/ansible/tasks/recreateViews.yml b/ansible/tasks/recreateViews.yml index 7868f85437..d237da7974 100644 --- a/ansible/tasks/recreateViews.yml +++ b/ansible/tasks/recreateViews.yml @@ -7,7 +7,6 @@ doc: "{{ lookup('file', '{{ item }}') }}" with_items: - "{{ openwhisk_home }}/ansible/files/whisks_design_document_for_entities_db_v2.1.0.json" - - "{{ openwhisk_home }}/ansible/files/whisks_design_document_for_all_entities_db_v2.1.0.json" - "{{ openwhisk_home }}/ansible/files/filter_design_document.json" - include: db/recreateDoc.yml ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services