1
0
Fork 0
mirror of synced 2024-09-13 07:53:31 +12:00
budibase/packages/backend-core
Peter Clement db273bcd36
Support attachment columns in Automations (#13567)
* base work to support attachments in create / update row

* handle single attachment column

* fix tests

* pro

* fix some types

* handle case where file exists in storage

* improve attacment processing

* refactor slightly and ensure correct url is used for existing attachments

* add test

* Fixing a build issue.

* update tests

* some lint

* remove cursed backend-core test util

* addressing pr comments

* refactoring nasty automationUtils upload code

* remove uneeded check

* use basneeame for fallback filename

* add a test to ensure coverage of single attachment column type

* fail early when fetching object metadata

---------

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
2024-05-09 14:30:56 +01:00
..
__mocks__
scripts Making progress on getting the eslint-jest plugin working. 2024-03-19 10:46:59 +00:00
src Support attachment columns in Automations (#13567) 2024-05-09 14:30:56 +01:00
tests Remove aws sdk global mock and update tests (#13637) 2024-05-08 14:08:34 +01:00
.gitignore
.npmignore
jest.config.ts Don't need a globalTeardown, testcontainers handles the removal of containers. 2024-03-26 10:00:34 +00:00
LICENSE
package.json Cherry-pick 6b8422df01 2024-03-25 15:25:30 +00:00
README.md
tsconfig.build.json
tsconfig.json

Budibase Core backend library

This library contains core functionality, like auth and security features which are shared between backend services.

Note about top level JS files

For the purposes of being able to do say require("@budibase/backend-core/permissions") we need to specify the exports at the top-level of the module.

For these files they should be limited to a single require of the file that should be exported and then a single module.exports = ... to export the file in commonJS.