1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00
budibase/packages/server
Peter Clement a4c0328c53
REST file handling and SMTP automation block attachments (#13403)
* handle files in rest connector

* fetch presigned url and return

* further updates to handle files in rest connector

* remove unused important and fix extension bug

* wrong expiry param

* tests

* add const for temp bucket

* handle ttl on bucket

* more bucket ttl work

* split out fileresponse and xmlresponse into utils

* lint

* remove log

* fix tests

* some pr comments

* update function naming and lint

* adding back needed response for frontend

* use fsp

* handle different content-disposition and potential path traversal

* add test container for s3 / minio

* add test case for filename* and ascii filenames

* move tests into separate describe

* remove log

* up timeout

* switch to minio image instead of localstack

* use minio image instead of s3 for testing

* stream file upload instead

* use streamUpload and update signatures

* update bucketcreate return

* throw real error

* tidy up

* pro

* pro ref fix?

* pro fix

* pro fix?

* move minio test provider to backend-core

* update email builder to allow attachments

* testing for sending files via smtp

* use backend-core minio test container in server

* handle different types of url

* fix minio test provider

* test with container host

* lint

* try different hostname?

* Revert "try different hostname?"

This reverts commit cfefdb8ded.

* fix issue with fetching of signed url with test minio

* update autoamtion attachments to take filename and url

* fix tests

* pro ref

* fix parsing of url object

* pr comments and linting

* pro ref

* fix pro again

* fix pro

* account-portal

* fix null issue

* fix ref

* ref

* When sending a file attachment in email fetch it directly from our object store

* add more checks to ensure we're working with a signed url

* update test to account for direct object store read

* formatting

* fix time issues within test

* update bucket and path extraction to regex

* use const in regex

* pro

* Updating TTL handling in upload functions (#13539)

* Updating TTL handling in upload functions

* describe ttl type

* account for ttl creation in existing buckets and update types

* fix tests

* pro

* pro
2024-04-22 15:30:57 +00:00
..
__mocks__ Merge master. 2024-03-25 14:13:48 +00:00
build
scripts Add platform docs to mssql docker-compose 2024-04-18 17:48:10 +02:00
specs Merge branch 'master' into fix-oidc-error-logging 2024-04-11 17:01:04 +01:00
src REST file handling and SMTP automation block attachments (#13403) 2024-04-22 15:30:57 +00:00
.dockerignore
.gitignore
.npmignore
.yarnrc
babel.config.js
docker_run.sh
Dockerfile Remove --frozen-lockfile 2024-03-15 14:53:50 +01:00
jest.config.ts Respond to Mike's feedback. 2024-04-04 15:27:50 +01:00
LICENSE
nodemon.json Revert "Revert "Migrate from vm to isolated-vm"" 2024-02-02 12:02:09 +01:00
package.json REST file handling and SMTP automation block attachments (#13403) 2024-04-22 15:30:57 +00:00
pm2.config.js
README.md Add readme 2023-12-05 11:03:52 +01:00
tsconfig.build.json Fix ts 2024-03-21 17:14:27 +01:00
tsconfig.json

Budibase server project

This project contains all the server specific logic required to run a Budibase app

App migrations

A migration system has been created in order to modify existing apps when breaking changes are added. These migrations will run on the app startup (both from the client side or the builder side), blocking the access until they are correctly applied.

Create a new migration

In order to add a new migration:

  1. Run yarn add-app-migration [title]
  2. Write your code on the newly created file