Merge remote-tracking branch 'origin/develop' into feature/new-app-publish-workflow
This commit is contained in:
commit
0305719fe3
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.105-alpha.22",
|
||||
"version": "1.0.105-alpha.23",
|
||||
"npmClient": "yarn",
|
||||
"packages": [
|
||||
"packages/*"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/backend-core",
|
||||
"version": "1.0.105-alpha.22",
|
||||
"version": "1.0.105-alpha.23",
|
||||
"description": "Budibase backend core libraries used in server and worker",
|
||||
"main": "src/index.js",
|
||||
"author": "Budibase",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@budibase/bbui",
|
||||
"description": "A UI solution used in the different Budibase projects.",
|
||||
"version": "1.0.105-alpha.22",
|
||||
"version": "1.0.105-alpha.23",
|
||||
"license": "MPL-2.0",
|
||||
"svelte": "src/index.js",
|
||||
"module": "dist/bbui.es.js",
|
||||
|
@ -38,7 +38,7 @@
|
|||
],
|
||||
"dependencies": {
|
||||
"@adobe/spectrum-css-workflow-icons": "^1.2.1",
|
||||
"@budibase/string-templates": "^1.0.105-alpha.22",
|
||||
"@budibase/string-templates": "^1.0.105-alpha.23",
|
||||
"@spectrum-css/actionbutton": "^1.0.1",
|
||||
"@spectrum-css/actiongroup": "^1.0.1",
|
||||
"@spectrum-css/avatar": "^3.0.2",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/builder",
|
||||
"version": "1.0.105-alpha.22",
|
||||
"version": "1.0.105-alpha.23",
|
||||
"license": "GPL-3.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
@ -65,10 +65,10 @@
|
|||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@budibase/bbui": "^1.0.105-alpha.22",
|
||||
"@budibase/client": "^1.0.105-alpha.22",
|
||||
"@budibase/frontend-core": "^1.0.105-alpha.22",
|
||||
"@budibase/string-templates": "^1.0.105-alpha.22",
|
||||
"@budibase/bbui": "^1.0.105-alpha.23",
|
||||
"@budibase/client": "^1.0.105-alpha.23",
|
||||
"@budibase/frontend-core": "^1.0.105-alpha.23",
|
||||
"@budibase/string-templates": "^1.0.105-alpha.23",
|
||||
"@sentry/browser": "5.19.1",
|
||||
"@spectrum-css/page": "^3.0.1",
|
||||
"@spectrum-css/vars": "^3.0.1",
|
||||
|
|
|
@ -26,14 +26,6 @@
|
|||
on:change={value => (parameters.rowId = value.detail)}
|
||||
/>
|
||||
|
||||
<Label small>Row Rev</Label>
|
||||
<DrawerBindableInput
|
||||
{bindings}
|
||||
title="Row rev to delete"
|
||||
value={parameters.revId}
|
||||
on:change={value => (parameters.revId = value.detail)}
|
||||
/>
|
||||
|
||||
<Label small />
|
||||
<Checkbox text="Require confirmation" bind:value={parameters.confirm} />
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/cli",
|
||||
"version": "1.0.105-alpha.22",
|
||||
"version": "1.0.105-alpha.23",
|
||||
"description": "Budibase CLI, for developers, self hosting and migrations.",
|
||||
"main": "src/index.js",
|
||||
"bin": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/client",
|
||||
"version": "1.0.105-alpha.22",
|
||||
"version": "1.0.105-alpha.23",
|
||||
"license": "MPL-2.0",
|
||||
"module": "dist/budibase-client.js",
|
||||
"main": "dist/budibase-client.js",
|
||||
|
@ -19,9 +19,9 @@
|
|||
"dev:builder": "rollup -cw"
|
||||
},
|
||||
"dependencies": {
|
||||
"@budibase/bbui": "^1.0.105-alpha.22",
|
||||
"@budibase/frontend-core": "^1.0.105-alpha.22",
|
||||
"@budibase/string-templates": "^1.0.105-alpha.22",
|
||||
"@budibase/bbui": "^1.0.105-alpha.23",
|
||||
"@budibase/frontend-core": "^1.0.105-alpha.23",
|
||||
"@budibase/string-templates": "^1.0.105-alpha.23",
|
||||
"@spectrum-css/button": "^3.0.3",
|
||||
"@spectrum-css/card": "^3.0.3",
|
||||
"@spectrum-css/divider": "^1.0.3",
|
||||
|
|
|
@ -81,7 +81,7 @@ const duplicateRowHandler = async (action, context) => {
|
|||
|
||||
const deleteRowHandler = async action => {
|
||||
const { tableId, revId, rowId } = action.parameters
|
||||
if (tableId && revId && rowId) {
|
||||
if (tableId && rowId) {
|
||||
try {
|
||||
await API.deleteRow({ tableId, rowId, revId })
|
||||
notificationStore.actions.success("Row deleted")
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@budibase/frontend-core",
|
||||
"version": "1.0.105-alpha.22",
|
||||
"version": "1.0.105-alpha.23",
|
||||
"description": "Budibase frontend core libraries used in builder and client",
|
||||
"author": "Budibase",
|
||||
"license": "MPL-2.0",
|
||||
"svelte": "src/index.js",
|
||||
"dependencies": {
|
||||
"@budibase/bbui": "^1.0.105-alpha.22",
|
||||
"@budibase/bbui": "^1.0.105-alpha.23",
|
||||
"lodash": "^4.17.21",
|
||||
"svelte": "^3.46.2"
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ export const buildRowEndpoints = API => ({
|
|||
* @param revId the rev of the row to delete
|
||||
*/
|
||||
deleteRow: async ({ tableId, rowId, revId }) => {
|
||||
if (!tableId || !rowId || !revId) {
|
||||
if (!tableId || !rowId) {
|
||||
return
|
||||
}
|
||||
return await API.delete({
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@budibase/server",
|
||||
"email": "hi@budibase.com",
|
||||
"version": "1.0.105-alpha.22",
|
||||
"version": "1.0.105-alpha.23",
|
||||
"description": "Budibase Web Server",
|
||||
"main": "src/index.ts",
|
||||
"repository": {
|
||||
|
@ -68,9 +68,9 @@
|
|||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"@apidevtools/swagger-parser": "^10.0.3",
|
||||
"@budibase/backend-core": "^1.0.105-alpha.22",
|
||||
"@budibase/client": "^1.0.105-alpha.22",
|
||||
"@budibase/string-templates": "^1.0.105-alpha.22",
|
||||
"@budibase/backend-core": "^1.0.105-alpha.23",
|
||||
"@budibase/client": "^1.0.105-alpha.23",
|
||||
"@budibase/string-templates": "^1.0.105-alpha.23",
|
||||
"@bull-board/api": "^3.7.0",
|
||||
"@bull-board/koa": "^3.7.0",
|
||||
"@elastic/elasticsearch": "7.10.0",
|
||||
|
|
|
@ -259,8 +259,9 @@ exports.find = async ctx => {
|
|||
|
||||
exports.destroy = async function (ctx) {
|
||||
const db = getAppDB()
|
||||
const { _id, _rev } = ctx.request.body
|
||||
const { _id } = ctx.request.body
|
||||
let row = await db.get(_id)
|
||||
let _rev = ctx.request.body._rev || row._rev
|
||||
|
||||
if (row.tableId !== ctx.params.tableId) {
|
||||
throw "Supplied tableId doesn't match the row's tableId"
|
||||
|
|
|
@ -24,12 +24,8 @@ exports.definition = {
|
|||
type: "string",
|
||||
title: "Row ID",
|
||||
},
|
||||
revision: {
|
||||
type: "string",
|
||||
title: "Row Revision",
|
||||
},
|
||||
},
|
||||
required: ["tableId", "id", "revision"],
|
||||
required: ["tableId", "id"],
|
||||
},
|
||||
outputs: {
|
||||
properties: {
|
||||
|
@ -53,7 +49,7 @@ exports.definition = {
|
|||
}
|
||||
|
||||
exports.run = async function ({ inputs, appId, emitter }) {
|
||||
if (inputs.id == null || inputs.revision == null) {
|
||||
if (inputs.id == null) {
|
||||
return {
|
||||
success: false,
|
||||
response: {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/string-templates",
|
||||
"version": "1.0.105-alpha.22",
|
||||
"version": "1.0.105-alpha.23",
|
||||
"description": "Handlebars wrapper for Budibase templating.",
|
||||
"main": "src/index.cjs",
|
||||
"module": "dist/bundle.mjs",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@budibase/worker",
|
||||
"email": "hi@budibase.com",
|
||||
"version": "1.0.105-alpha.22",
|
||||
"version": "1.0.105-alpha.23",
|
||||
"description": "Budibase background service",
|
||||
"main": "src/index.ts",
|
||||
"repository": {
|
||||
|
@ -31,8 +31,8 @@
|
|||
"author": "Budibase",
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"@budibase/backend-core": "^1.0.105-alpha.22",
|
||||
"@budibase/string-templates": "^1.0.105-alpha.22",
|
||||
"@budibase/backend-core": "^1.0.105-alpha.23",
|
||||
"@budibase/string-templates": "^1.0.105-alpha.23",
|
||||
"@koa/router": "^8.0.0",
|
||||
"@sentry/node": "^6.0.0",
|
||||
"@techpass/passport-openidconnect": "^0.3.0",
|
||||
|
|
Loading…
Reference in New Issue