@saltcorn/server 1.1.2-beta.14 → 1.1.2-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/server",
3
- "version": "1.1.2-beta.14",
3
+ "version": "1.1.2-beta.15",
4
4
  "description": "Server app for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "main": "index.js",
@@ -8,14 +8,14 @@
8
8
  "dependencies": {
9
9
  "@aws-sdk/client-s3": "^3.735.0",
10
10
  "@dr.pogodin/csurf": "^1.14.1",
11
- "@saltcorn/base-plugin": "1.1.2-beta.14",
12
- "@saltcorn/builder": "1.1.2-beta.14",
13
- "@saltcorn/data": "1.1.2-beta.14",
14
- "@saltcorn/admin-models": "1.1.2-beta.14",
15
- "@saltcorn/filemanager": "1.1.2-beta.14",
16
- "@saltcorn/markup": "1.1.2-beta.14",
17
- "@saltcorn/plugins-loader": "1.1.2-beta.14",
18
- "@saltcorn/sbadmin2": "1.1.2-beta.14",
11
+ "@saltcorn/base-plugin": "1.1.2-beta.15",
12
+ "@saltcorn/builder": "1.1.2-beta.15",
13
+ "@saltcorn/data": "1.1.2-beta.15",
14
+ "@saltcorn/admin-models": "1.1.2-beta.15",
15
+ "@saltcorn/filemanager": "1.1.2-beta.15",
16
+ "@saltcorn/markup": "1.1.2-beta.15",
17
+ "@saltcorn/plugins-loader": "1.1.2-beta.15",
18
+ "@saltcorn/sbadmin2": "1.1.2-beta.15",
19
19
  "@socket.io/cluster-adapter": "^0.2.1",
20
20
  "@socket.io/sticky": "^1.0.1",
21
21
  "adm-zip": "0.5.16",
package/routes/tables.js CHANGED
@@ -868,7 +868,7 @@ router.get(
868
868
  div(
869
869
  { class: "alert alert-danger", role: "alert" },
870
870
  i({ class: "fas fa-exclamation-triangle" }),
871
- "This table has composite primary keys, or a non-incrementing integer primary key, which are not supported in Saltcorn. A procedure to introduce a single autoincrementing primary key is available.",
871
+ "This table has composite or non-defaulted primary keys, which are not supported in Saltcorn. A procedure to introduce a single autoincrementing primary key is available.",
872
872
  post_btn(
873
873
  `/table/repair-composite-primary/${table.id}`,
874
874
  "Add autoincrementing primary key",
@@ -472,6 +472,18 @@ describe("actions", () => {
472
472
  .set("Cookie", loginCookie)
473
473
  .expect(toRedirect("/actions/"));
474
474
  });
475
+ it("post Never trigger with table", async () => {
476
+ const app = await getApp({ disableCsrf: true });
477
+ const loginCookie = await getAdminLoginCookie();
478
+ await request(app)
479
+ .post("/actions/new")
480
+ .set("Cookie", loginCookie)
481
+ .send("action=run_js_code")
482
+ .send("table_id=2")
483
+ .send("name=NeverTableTrigger")
484
+ .send("when_trigger=Never")
485
+ .expect(302);
486
+ });
475
487
  });
476
488
  describe("localizer", () => {
477
489
  itShouldRedirectUnauthToLogin("/site-structure/localizer");