From ddce43db283935939fba5f45fb1536a3bc0075c5 Mon Sep 17 00:00:00 2001 From: aelamrani Date: Fri, 17 May 2019 19:58:13 +0200 Subject: [PATCH] feat: lifecycle API and review workflow This closes gravitee-io/issues#1996 --- upgrades/1.26.0/README.adoc | 13 +++++++++++++ upgrades/1.26.0/mongodb/1-apis-migration.js | 10 ++++++++++ upgrades/README.adoc | 2 ++ 3 files changed, 25 insertions(+) create mode 100644 upgrades/1.26.0/README.adoc create mode 100644 upgrades/1.26.0/mongodb/1-apis-migration.js diff --git a/upgrades/1.26.0/README.adoc b/upgrades/1.26.0/README.adoc new file mode 100644 index 00000000..d9d44a64 --- /dev/null +++ b/upgrades/1.26.0/README.adoc @@ -0,0 +1,13 @@ += Upgrade to 1.26.0 + +== API lifecycle + +Starting with Gravitee.io 1.26, we introduce API lifecycle to manage your APIs. + +To follow that new feature, the Rest Management API has been updated to reflect those changes. + +== Repository +=== Mongodb + +https://raw.githubusercontent.com/gravitee-io/release/master/upgrades/1.26.0/mongodb/1-apis-migration.js[upgrades/1.26.0/mongodb/1-apis-migration.js]:: +This script update apis according to the new way Gravitee.io is managing them. \ No newline at end of file diff --git a/upgrades/1.26.0/mongodb/1-apis-migration.js b/upgrades/1.26.0/mongodb/1-apis-migration.js new file mode 100644 index 00000000..95be8a4a --- /dev/null +++ b/upgrades/1.26.0/mongodb/1-apis-migration.js @@ -0,0 +1,10 @@ + +print('APIs migration'); +db.apis.find().forEach( + function (api) { + print(" update the api"); + db.apis.updateOne( + { _id: api._id }, + { $set: { apiLifecycleState: 'PUBLISHED' }}); + } +); \ No newline at end of file diff --git a/upgrades/README.adoc b/upgrades/README.adoc index 3f0b9d3b..af1fc474 100644 --- a/upgrades/README.adoc +++ b/upgrades/README.adoc @@ -1,6 +1,8 @@ = Upgrade Notes ifdef::env-github[] +include::1.26.0/README.adoc[leveloffset=+1] + include::1.25.0/README.adoc[leveloffset=+1] include::1.24.0/README.adoc[leveloffset=+1]