From 86a2e201661f2b76c21be1b2adc3556e0e6e907b Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 18 Apr 2022 00:20:31 +0530 Subject: [PATCH] 0.90.2 Pre-release (#1733) * fix: unsafe repository issue in actions/checkout Signed-off-by: Wing-Kam Wong * fix: remove extra space Signed-off-by: Wing-Kam Wong * docs: fix delete function name Signed-off-by: Wing-Kam Wong * fix: remove duplicate and add missing delete api (#1731) Signed-off-by: mertmit * fix: extract correct model id on audit export and ignore table audit if missing meta (#1732) re #1722 Signed-off-by: Pranav C Co-authored-by: Wing-Kam Wong Co-authored-by: mertmit --- .github/workflows/sync-to-develop.yml | 5 ++++ README.md | 2 +- .../en/developer-resources/rest-apis.md | 2 +- .../en/getting-started/installation.md | 2 +- .../noco/meta/api/dataApis/dataAliasApis.ts | 4 +-- .../src/lib/noco/upgrader/NcUpgrader.ts | 29 +++++++++++++++++-- .../jobs/ncProjectUpgraderV2_0090000.ts | 16 ++++++++-- 7 files changed, 49 insertions(+), 11 deletions(-) diff --git a/.github/workflows/sync-to-develop.yml b/.github/workflows/sync-to-develop.yml index 17571b175c..e3c327f3ae 100644 --- a/.github/workflows/sync-to-develop.yml +++ b/.github/workflows/sync-to-develop.yml @@ -9,6 +9,11 @@ jobs: sync-to-develop: runs-on: ubuntu-latest steps: + # See https://github.com/actions/checkout/issues/766 + - name: Workaround for unsafe repository issue + run: | + git config --global --add safe.directory ${GITHUB_WORKSPACE} + - name: Checkout uses: actions/checkout@v1 diff --git a/README.md b/README.md index 2757641f23..fd4af9aa40 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ npm start ```bash # for SQLite docker run -d --name nocodb \ --v "$(pwd)"/nocodb:/usr/app/data/ \ +-v "$(pwd)"/nocodb:/usr/app/data/ \ -p 8080:8080 \ nocodb/nocodb:latest diff --git a/packages/noco-docs/content/en/developer-resources/rest-apis.md b/packages/noco-docs/content/en/developer-resources/rest-apis.md index cb4b517364..7998fd33ae 100644 --- a/packages/noco-docs/content/en/developer-resources/rest-apis.md +++ b/packages/noco-docs/content/en/developer-resources/rest-apis.md @@ -50,7 +50,7 @@ Here's the overview of all APIs. For the details, please check out m.id == audit.model_id) - )?.id; + // extract model by using model_id property from audit + ctx.objModelRef?.[audit.project_id]?.[ + ctx.metas?.find(m => m.id == audit.model_id)?.title + ] || + ctx.objModelAliasRef?.[audit.project_id]?.[ + ctx.metas?.find(m => m.id == audit.model_id)?.alias + ]; + + // if model is not found skip audit insertion + if (!model) continue; + + insertObj.fk_model_id = model.id; } await Audit.insert(insertObj, ncMeta);