Commit graph

26821 commits

Author SHA1 Message Date
Neeraj Gupta 698ceca49e Lint fix 2024-05-16 16:21:55 +05:30
Neeraj Gupta 51138e9263 Increase initial timeout val for b2 dc 2024-05-16 16:21:08 +05:30
Neeraj Gupta 08555954d2 Document 2024-05-16 16:10:51 +05:30
Neeraj Gupta b404b77da3 Update dc while copying derived file 2024-05-16 16:08:38 +05:30
Neeraj Gupta a522631c2b Refactor 2024-05-16 15:19:22 +05:30
Neeraj Gupta 20e9a6a1fc Refactor 2024-05-16 13:39:47 +05:30
Neeraj Gupta 3485b31475 Clean up & new line 2024-05-16 12:58:42 +05:30
Neeraj Gupta b53a70cf65 Avoid retry if object is missing 2024-05-16 12:57:31 +05:30
Neeraj Gupta 3f1ee82ec5 Inline 2024-05-16 12:52:20 +05:30
Neeraj Gupta 4cc866fa12 Refactor 2024-05-16 12:49:23 +05:30
Neeraj Gupta e0738db6ae Minor refactor 2024-05-16 12:23:25 +05:30
Neeraj Gupta 3c7d86da8d Minor refactor 2024-05-16 11:35:46 +05:30
Neeraj Gupta 6e204d828c Delete derived data from all datacenters 2024-05-16 11:33:01 +05:30
Neeraj Gupta 64ecdfa153 Store dc during insert or update 2024-05-16 10:58:00 +05:30
Neeraj Gupta da188aa753 Add datacenter column for embeddings 2024-05-16 10:19:58 +05:30
Neeraj Gupta 851f914ef8 Add wasabi-derived in list of dcs 2024-05-15 17:50:05 +05:30
Neeraj Gupta 7eabea3884 Rename embedding dc to derived storage 2024-05-15 16:37:23 +05:30
Neeraj Gupta cc457eca98 Add log when embedding is fetched after retry 2024-05-15 14:25:28 +05:30
Neeraj Gupta 835a773f13 Add fallback logic to read embedding from hot bucket 2024-05-14 17:00:16 +05:30
Neeraj Gupta 87b087f295 Minor refactor 2024-05-14 14:52:07 +05:30
Neeraj Gupta 74a6e32538 Fix error check for no-object found 2024-05-14 14:37:24 +05:30
Neeraj Gupta 18d1bb60ca Delete embeddings from hot bucket if different from embedding bucket 2024-05-14 14:18:50 +05:30
Neeraj Gupta 3e7b16288f Add support for configuring diff bucket for embeddings 2024-05-14 14:03:35 +05:30
Neeraj Gupta bce3f40a16 Avoid retry for 404 error 2024-05-14 11:44:41 +05:30
Neeraj Gupta acd61fc084 Fixed typo 2024-05-13 16:33:48 +05:30
Neeraj Gupta be44665128 [server] Refactor embedding fetch 2024-05-13 16:33:36 +05:30
Neeraj Gupta 282611610d
[mob] Keep fetching embeddings till no embedding is returned (#1709)
## Description

## Tests
2024-05-13 15:51:29 +05:30
Neeraj Gupta 883e246f30 [mob] Keep fetching embeddings till no embedding is returned 2024-05-13 15:50:27 +05:30
Neeraj Gupta 50613b8c57
[server] Add option to updateMetadata without versionChange (#1708)
## Description

## Tests
2024-05-13 13:31:58 +05:30
Manav Rathi acc3f7b30f
[desktop] Imagemagick related tweaks (#1707)
Related: https://github.com/ente-io/ImageMagick
2024-05-13 13:05:45 +05:30
Manav Rathi b7292f2629
Add a log line for debugging 2024-05-13 11:35:24 +05:30
Manav Rathi 957c2a64df
Keep the order in the documentation examples
https://imagemagick.org/Usage/thumbnails/
2024-05-13 11:33:25 +05:30
Manav Rathi 631b1772e4
Fix mangled parameter being passed to imagemagick
Similar: https://github.com/ente-io/ente/pull/1175
2024-05-13 11:31:34 +05:30
Manav Rathi 9ca8ef9e74
The bundled binary is x86 only, bail out early on ARM
Error: Error invoking remote method 'generateImageThumbnail': Error: Command failed: '/tmp/.mount_ente-1lYbIWw/resources/image-magick' '/home/m/Downloads/VM/IMG_4484.WEBP' -auto-orient -define 'jpeg:size=1440x1440' -thumbnail '720x720>' -unsharp '0x.5' -quality 70 '/tmp/ente/9aNsp1FdLe.jpeg'
/bin/sh: 1: /tmp/.mount_ente-1lYbIWw/resources/image-magick: Exec format error

The binary is from https://github.com/ente-io/ImageMagick/
2024-05-13 11:22:13 +05:30
Manav Rathi 95cf306be2
[desktop] --no-sandbox does not prevent the SUID abort when added from JS (#1706)
- Revert the workaround
- Document the behaviour I observed
- (Unrelated) Add the other CHANGELOG entries in preparation for the
release
2024-05-13 10:21:36 +05:30
Manav Rathi 644e67f648
--no-sandbox does not prevent the SUID abort when added from JS
From https://github.com/toeverything/AFFiNE/issues/6722#issuecomment-2081805954

> Disable sandboxing entirely by launching with --no-sandbox. Adding this
  argument from JS is unfortunately insufficient, as the GPU process is launched
  before the main process JS is run.

Ref:
* https://github.com/electron/electron/issues/17972
2024-05-13 10:19:44 +05:30
Neeraj Gupta 2b58568230
[FEAT] Resumable Multipart Upload (#1406)
## Description


## Test Cases
Resumed Uploads

- [x] Verify that uploads are resuming
- [x] Verify that on resumption, parts that are already uploaded, we are
not re-uploading them.
- [x] Verify that we are able to download file from another client after
resuming
- [x] Verify that if `multiUpartUploadSize` changes, existing inflight
upload is either discarded or it's continue using old size.
- [x] Verify that if file is modified during upload, then on resumption
the existing upload is discarded
2024-05-12 20:48:17 +05:30
Neeraj Gupta cf361aaa90
[mobile] New translations (#1669)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-05-12 20:47:01 +05:30
Manav Rathi 3ba7bcbf06
Add the other CHANGELOG entries 2024-05-12 20:00:48 +05:30
Manav Rathi 5b92133aae
[desktop] Pass the SUID workaround correctly
The flag itself is documented as supported:
https://www.electronjs.org/docs/latest/api/command-line-switches

I was just passing it incorrectly (hopefully).
2024-05-12 18:41:10 +05:30
Manav Rathi 8328bbe5be
[docs] Add more notes to the configuring S3 page (#1700) 2024-05-12 18:20:54 +05:30
Manav Rathi 1a11488959
Typo 2024-05-12 18:19:30 +05:30
Manav Rathi 036238c984
[docs] Add more notes to the configuring S3 page 2024-05-12 18:18:44 +05:30
Manav Rathi 4839ad738c
[docs] Fix description (#1698) 2024-05-12 16:50:34 +05:30
Manav Rathi 34ead5616d
[docs] Fix description 2024-05-12 16:44:18 +05:30
Manav Rathi c005998312
[docs] Expand on the S3 configuration (#1697) 2024-05-12 16:41:02 +05:30
Manav Rathi bc98287532
[docs] Expand on the S3 configuration 2024-05-12 16:39:08 +05:30
Vishnu Mohandas e96c9dd2a3
[server] Make sender email configurable (#1696)
Ref:
https://github.com/ente-io/ente/discussions/1582#discussioncomment-9404061
2024-05-12 16:06:17 +05:30
Manav Rathi 321f97cdae
[server] Make sender email configurable 2024-05-12 16:00:15 +05:30
Manav Rathi 170e0b3e60
[desktop] Add a workaround for the SUID sandbox helper error on Linux (#1695)
I am able to reproduce this on Ubuntu 24 ARM.

> The SUID sandbox helper binary was found, but is not configured
correctly.

See:
- https://github.com/electron/electron/issues/17972
-
https://stackoverflow.com/questions/63780918/building-electron-linux-distro-the-suid-sandbox-helper-binary-was-found-but-i
2024-05-12 15:42:39 +05:30