Commit graph

28 commits

Author SHA1 Message Date
Jakob Ackermann
a383dc316c [misc] run format:fix 2021-07-27 16:53:06 +01:00
Jakob Ackermann
d2589823b0 [misc] prepare for monorepo
- add git ignore entries
- sync/create package-lock.json
- delete .nvmrc
2021-07-27 16:52:55 +01:00
Eric Mc Sween
001326b979 Merge pull request #13 from overleaf/em-fix-swallowed-delete-error
Make 404 error handling on deletes more specific
2020-10-15 15:36:33 -04:00
Eric Mc Sween
0fdfa706f7 Make 404 error handling on deletes more specific
The GCS persistor error handler ignores 404 errors on deletes. However,
the net is too wide cast, and 404 errors coming from the dual-bucket
lifecycle mechanism are also ignored.
2020-10-15 10:35:52 -04:00
Simon Detheridge
9f28adf96c Merge pull request #12 from overleaf/spd-async-pool-empty-array
Don't try to delete files if none are found in a directory
2020-10-13 10:01:20 +01:00
Simon Detheridge
60931b86c3 Don't try to delete files if none are found in a directory 2020-10-13 09:53:19 +01:00
Eric Mc Sween
65c5793b48 Merge pull request #11 from overleaf/em-unsigned-urls
Add a "unsignedUrls" option to the GCS persistor
2020-09-28 15:34:47 -04:00
Eric Mc Sween
9089d332ab Add a "unsignedUrls" option to the GCS persistor
This boolean option disables URL signing. Instead, getRedirectUrl()
returns the plain GCS download URL.
2020-09-22 15:59:13 -04:00
Eric Mc Sween
2574b16116 Merge pull request #10 from overleaf/em-fix-docs
Fixed some function names in the docs
2020-09-15 16:20:27 -04:00
Eric Mc Sween
c413f4d8a4 Fixed some function names in the docs 2020-09-15 16:13:58 -04:00
Eric Mc Sween
2fd9b6c61b Merge pull request #9 from overleaf/em-disable-gcs-decompress
Disable auto-decompression in GCS persistor
2020-08-19 07:42:16 -04:00
Eric Mc Sween
967dde280e Disable auto-decompression in GCS persistor
The GCS library automatically decompresses files with Content-encoding:
gzip. This is very useful, but the S3 library doesn't do that, so we
need to disable the feature in GCS so that it behaves the same way other
persistors behave.
2020-08-18 16:04:54 -04:00
Simon Detheridge
c1f6554f1c Merge pull request #8 from overleaf/spd-default-opts
Add default parameter for 'opts' in MigrationPersistor.getObjectStream
2020-08-10 16:51:41 +01:00
Simon Detheridge
1115e1a1e6 Add default parameter for 'opts' in MigrationPersistor.getObjectStream 2020-08-10 16:44:37 +01:00
Simon Detheridge
d5fd892f43 Merge pull request #7 from overleaf/spd-upgrade-packages
Bump dependency versions
2020-07-23 10:39:59 +01:00
Simon Detheridge
8037208800 Bump dependency versions 2020-07-23 10:33:01 +01:00
Eric Mc Sween
c2c9a994ff Merge pull request #6 from overleaf/em-s3-options
Add S3 options: httpOptions, maxRetries
2020-07-21 08:23:38 -04:00
Eric Mc Sween
6521837993 Add S3 options: httpOptions, maxRetries 2020-07-09 17:50:05 -04:00
Eric Mc Sween
82ec8d21a4 Merge pull request #5 from overleaf/em-s3-signed-url
Implement getRedirectUrl() for the S3 backend
2020-07-09 11:04:31 -04:00
Eric Mc Sween
3e7e4369af Implement getRedirectUrl() for the S3 backend 2020-07-08 17:13:20 -04:00
Eric Mc Sween
7abea41166 Merge pull request #4 from overleaf/em-metadata
Support metadata when uploading objects
2020-07-08 09:27:25 -04:00
Eric Mc Sween
523ff9c4cd Support metadata when uploading objects
Add contentType and contentEncoding options to sendStream(). These
options will set the corresponding metadata on the object.

This changes the API. The fourth argument to sendStream() used to be the
source md5. Now, it's an options object and the source md5 is a property
of that object.
2020-07-08 08:13:53 -04:00
Simon Detheridge
cd8c8b2b7f Merge pull request #3 from overleaf/spd-oerror3
Update to OError3
2020-07-07 13:24:52 +01:00
Simon Detheridge
990bacf3c2 Update to OError3 2020-07-07 10:40:37 +01:00
Simon Detheridge
588979bbff Merge pull request #2 from overleaf/circleci-project-setup
Add .circleci/config.yml and fix errors
2020-07-03 13:16:29 +01:00
Simon Detheridge
7369e2f339 Add .circleci/config.yml and fix errors 2020-07-03 11:59:34 +01:00
Simon Detheridge
e92b75a2f8 Create new module from overleaf/filestore persistors (#1)
* Create new module from overleaf/filestore persistors

* Convert persistors to ES6 classes with local settings

* Update README.md

Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>

* Update README.md

Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>

* Update .gitignore

Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>

* Switch to AGPL license

* Paginate S3 list-object results

* Remove S3 client caching

* Clean up S3 md5-verification mechanism

* Update README for recent changes

* Update README.md

Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>

* Remove package-lock

* Remove comment about FileHandler

* Add directory marker to FSPersistor.deleteDirectory

* Don't copy opts in GcsPersistor.getObjectStream

* Use Date.now instead of getTime

* Catch errors in migration persistor

* Check that settings.buckets exists

* Don't mutate options in ObserverStream constructor

* Update src/PersistorHelper.js

Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>

* Lint and format fixes

Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>
2020-07-02 14:19:45 +01:00
Simon Detheridge
b83ee27f83 Initial commit 2020-06-18 11:24:36 +01:00