Commit graph

194 commits

Author SHA1 Message Date
Neeraj Gupta
ef5740e728 [server] Increase emb fetchTimeout to 15seconds 2024-05-11 09:47:14 +05:30
Neeraj Gupta
0dcc3c974c [server] Ignore uploadUrl limit while copying files 2024-05-11 09:46:39 +05:30
Neeraj Gupta
3a70dcd930 [server] Add timeout while fetching embedding 2024-05-10 17:18:41 +05:30
Neeraj Gupta
5feb009b74 Fix lint warning 2024-05-10 16:19:27 +05:30
Neeraj Gupta
87a2f0e0df [server] Avoid pulling files with no-embedding info 2024-05-10 16:09:49 +05:30
Neeraj Gupta
b100d455dd [server] always use upperCase for castCode 2024-05-09 17:49:53 +05:30
vishnukvmd
e55af84157 Fix queries 2024-05-09 11:57:15 +05:30
vishnukvmd
330cfe6f7c Update free plan storage 2024-05-09 09:30:55 +05:30
vishnukvmd
84cbf33299 Bump up free trial 2024-05-09 09:30:14 +05:30
Neeraj Gupta
316473f5cf [server] convert email to lowerCase 2024-05-08 20:35:21 +05:30
vishnukvmd
028e784a40 Retry requests to fetch embeddings thrice before throwing an error 2024-05-08 17:34:37 +05:30
Manav Rathi
17ffc8051a
Use server 2024-05-08 12:16:53 +05:30
Manav Rathi
848fa34b56
[server] Tag the source code for latest ghcr.io Docker image with museum/ghcr
Helps with easily finding changes since last publish.
2024-05-08 11:27:11 +05:30
Neeraj Gupta
a62edad446 [server][cast] Fix err handling 2024-05-03 12:36:02 +05:30
Neeraj Gupta
627eab472c [server][cast] Only log ip mismatch instances 2024-05-03 12:32:16 +05:30
Neeraj Gupta
ad5cfdc6db [server][cast] convert deviceCode input to upperCase 2024-05-03 12:31:26 +05:30
Neeraj Gupta
99b13d18b0 [server][cast] Generate alphaNumeric deviceCode 2024-05-03 12:29:32 +05:30
Neeraj Gupta
48f24d48b5 [server] Move generateAlphaNumString to util 2024-05-03 12:11:35 +05:30
BifrostTenmei
c2b55d4389
Fixed typo 2024-04-27 13:58:27 +02:00
Neeraj Gupta
94d0378e18 [server] Clean up old cast sessions 2024-04-25 14:43:25 +05:30
Neeraj Gupta
4694bf6b7e [server] Ratelimit add device code API for cast 2024-04-25 14:07:10 +05:30
Neeraj Gupta
8038583d5a [server] Restrict casting to same IP 2024-04-25 14:03:25 +05:30
Neeraj Gupta
badd9263f4 [server] Add ip column 2024-04-25 13:14:37 +05:30
Neeraj Gupta
ef0873082a Fixed typo 2024-04-25 13:02:54 +05:30
Neeraj Gupta
5afc2de7bc [server] Add admin endpoint for updating feature flag 2024-04-22 17:43:14 +05:30
Neeraj Gupta
648806baa7 [server] Add endpoint to get user feature flags 2024-04-22 17:30:54 +05:30
Neeraj Gupta
3fbf6674fe [server] Add API to return feature flags value 2024-04-22 16:57:00 +05:30
Neeraj Gupta
5b4d66933e [server] Add req validation for remoteStore insertOrUpdate 2024-04-22 16:44:12 +05:30
Neeraj Gupta
59ce8ea9bb [server] Fix another validation issue 2024-04-22 10:18:18 +05:30
Neeraj Gupta
b43e077a24 [server] Another fix in file update req validation 2024-04-22 09:53:48 +05:30
Neeraj Gupta
74360f3c84 [server] Fix validation for fileUpdate 2024-04-22 09:41:14 +05:30
Neeraj Gupta
d0621eea3e [server] Limit copying max 100 files in single req 2024-04-20 12:54:27 +05:30
Neeraj Gupta
cbdd116cea [server] Copy thumb and file in parallel 2024-04-20 12:49:28 +05:30
Neeraj Gupta
91620965b0 [server] Minor refactor 2024-04-20 12:37:35 +05:30
Neeraj Gupta
5a5e3d28cb [server] Copy files in parallel 2024-04-20 12:36:18 +05:30
Neeraj Gupta
bf738d9585 [server] Lint fix 2024-04-20 12:23:00 +05:30
Neeraj Gupta
ca7b03e945 [server] Fix incorrect pointer assignment in collection file map 2024-04-20 12:21:44 +05:30
Neeraj Gupta
fbf8b61891 [server] Fix query 2024-04-19 19:20:21 +05:30
Neeraj Gupta
710f76ee40 Merge remote-tracking branch 'origin/main' into save_a_copy 2024-04-19 13:36:00 +05:30
Neeraj Gupta
04df64de05
[server] Improvate req validation on file createOrUpdate (#1485)
## Description
During the testing of copyFile functionality, I ran into issues where
files were created without all attributes (esp File EncryptedKey & Nonce
for thumbnail and file decryption).
This change

## Tests
Tested regular file upload, unable to test update as Photos app on
simulator is not showing save option. I don't expect it to break.
2024-04-19 12:11:57 +05:30
Neeraj Gupta
816fa330de [server] Implement support for copying object 2024-04-19 11:26:14 +05:30
Neeraj Gupta
c124cde471 [server] Add basic scaffold for copying files 2024-04-17 15:43:48 +05:30
Neeraj Gupta
aabb884828 [server] Add validation logic for file copy 2024-04-17 15:19:20 +05:30
Neeraj Gupta
e9bc465353 [server] Add request object for copying files 2024-04-17 11:40:37 +05:30
Manav Rathi
74b9a2a408
[server] Specify a default for apps.public-albums
local.yaml is only loaded in the local environment, and will not be used in
production. To avoid specifying it in both production and local configurations,
use it as a default specified in the code instead (that's the pattern we're
using in other places too from what I remember, maybe we should refactor that
too, but that's a bigger task not tied to this change).

**Tested by**

On a local dev cluster
- Not specifying anything and ensuring that the default is picked
- Specifying an override in museum.yaml and verifying that is used instead
2024-04-16 09:19:13 +05:30
Neeraj Gupta
c73dc36a8c
[Server] Fix data cleanup pipeline for recovered account (#1410)
## Description
For accounts that were recovered post deletion (within x days), we were
not removing the entry from data_cleanup cron.

The data_clean up cron anyways verify that the account is indeed deleted
before proceeding with deletion, so it was not causing any harm, but the
cron was logging error.

## Tests

- [x] Verify that data clean up entry is removed if the account is
recovered
- [x] Verify that for existing data_cleanup entry for already recovered
account, the entry is deleted from cron.
2024-04-15 10:09:29 +05:30
Neeraj Gupta
8ed2c7cff9
[server] Pick base publicHost url from config (#1443)
## Description

## Tests
Ran locally with the config in local.yaml and verified that it's
modified as well when I had put localhost:3002 in the museum.yaml config
2024-04-15 09:56:21 +05:30
Neeraj Gupta
a9072d7dcb [server] Add todo 2024-04-12 13:16:55 +05:30
Neeraj Gupta
830483ca68 [server] Remove existing scheduledDelete entries if account is recovered 2024-04-11 11:03:57 +05:30
Neeraj Gupta
02e8861e96 [server] Remove entry from data cleanup on account recovery 2024-04-11 10:54:38 +05:30