6adb440b84
fix(GODT-2623): log IMAP/SMTP login failure as error.
2023-05-12 07:28:41 +00:00
a3e07428b5
chore: Improve CPC code
...
* Remove distinction between values with and without reply.
* Hide types that don't need to be public.
* Don't allow direct access to the request's internal types.
2023-05-12 09:06:54 +02:00
4b5edd62d0
feat(GODT-2585): Only Start IMAP/SMTP once one user is loaded
...
Update ServerManager to follow the new expected behavior. The servers
will only be started when one user is active.
If all users are logged out or removed from the system, the servers will
stop.
If the network goes down, the servers will stop and resume once network
has been restored.
2023-05-11 16:27:54 +02:00
fb4a0e77af
feat(GODT-2585): Server Manager
...
Add a dedicated go-routine whose sole responsibility is to manage the
life time of the IMAP and SMTP servers and their listeners.
The current implementation behaves the same way as the previous state.
The new behavior will be implemented in a follow MR.
2023-05-11 09:48:54 +02:00
51288791c0
fix(GODT-2527): Cleanup 503 test since handled by GPA.
2023-05-10 16:14:18 +02:00
c438704648
test: Disable sync open files test
...
It is os specific and it has a tendency to succeed on CI runners.
2023-05-09 08:31:28 +02:00
bda158d6c6
feat(GODT-2346): treat external address as disabled one.
2023-05-09 04:12:12 +00:00
a0db1645f2
fix(GODT-2614): Handle failed update during sync
...
The sync process was getting stuck since we never handled the case where
the update to Gluon failed. This caused the flush stage to exist, but
the sync process would continue until it eventually gets stuck due to
lack of progress.
2023-05-05 16:09:23 +02:00
b51d85e768
chore: upgraded golangci-lint v1.52.2 and fixed all issues.
2023-05-05 07:57:22 +02:00
3ef3ab72ed
feat(GODT-2553): Try to send telemetry every hour.
2023-04-24 18:33:50 +00:00
00adb8bc22
feat(GODT-2552): Fix review comment + use only string for Heartbeat Dimension.
2023-04-24 18:33:50 +00:00
d3fc9a50f6
feat(GODT-2556): Add functional test for Heartbeat Init and telemetry availability.
2023-04-24 18:33:50 +00:00
4adc6d60b9
feat(GODT-2552): Fix unit test.
2023-04-24 18:33:50 +00:00
d88bee68c6
feat(GODT-2552): Add functional test.
2023-04-24 18:33:50 +00:00
b250d49af8
feat(GODT-2552): Send first heartbeat.
2023-04-24 18:33:50 +00:00
0f621d0aad
feat(GODT-2552): Init telemetry heartbeat.
2023-04-24 18:33:50 +00:00
fed503501d
feat(GODT-2575): Add dev info to cookies.
2023-04-24 12:44:08 +02:00
ad4e853a8a
feat(GODT-2555): fixed minor issue spotted during review.
2023-04-20 07:53:54 +02:00
f4631c4bc9
feat(GODT-2555): add local telemetry settings.
...
feat(GODT-2555): add 'TelemetryDisabled' settings to vault.
feat(GODT-2555): CLI and GUI implementation.
feat(GODT-2555): implemented setting in bridge-gui-tester.
feat(GODT-2555): added unit tests.
feat(GODT-2555): feature tests.
2023-04-19 16:45:42 +02:00
54b209f9e1
fix(GODT-2337): filter reply-to on draft.
2023-04-17 10:25:10 +02:00
8093bbf5f6
feat(GODT-2502): Additional info.
2023-04-14 10:27:37 +02:00
7bb925b6d7
feat(GODT-2502): Improve logs.
2023-04-14 10:27:37 +02:00
d6760d6f50
chore(GODT-2551): Store and Recover Last User Agent from Vault
2023-04-14 09:48:39 +02:00
ff44a3d6df
test(GODT-2550): Verify IMAP ID is set properly
2023-04-13 14:28:53 +02:00
3928ed08f6
feat(GODT-2554): Compute telemetry availability from API UserSettings.
2023-04-13 08:06:48 +00:00
c84919faae
chore: merge release/Quebec into devel
2023-04-05 13:55:22 +02:00
7330406752
fix(GODT-2500): Recover in deferred function.
2023-04-05 09:25:24 +02:00
7d8e71c9ea
fix(GODT-2505): show notification only for cases when user needs to do actions.
2023-04-03 11:21:46 +02:00
de5fd07a22
feat(GODT-2500): Reorganise async methods.
2023-04-03 07:07:22 +02:00
ec92c918cd
feat(GODT-2500): Add panic handlers everywhere.
2023-04-03 06:38:31 +02:00
aa957f3314
test: Disable TestBridge503DuringEventDoesNotCauseBadEvent
...
Changes to GPA 503 handling is now causing GPA client to treat this as
context cancelled rather than producing 503. To be re-enabled as part of
GODT-2527.
2023-03-28 14:35:13 +02:00
ef1940d227
fix(GODT-2508): Handle Address Updated for none-existing address
...
If we receive an address update and the address does not exist, attempt
to create it.
2023-03-28 10:51:26 +02:00
0a0bcd7b90
fix(GODT-2508): Handle Address Updated for none-existing address
...
If we receive an address update and the address does not exist, attempt
to create it.
2023-03-27 13:49:27 +02:00
ee5e87fe85
test: Add 503 request test for message create event
...
Simulate 503 status during a message create event when the message
data is being downloaded.
2023-03-21 13:47:01 +00:00
8b33d56b59
fix(GODT-2479): Ensure messages always have a text body part
...
Proton Backend requires that all messages have at least one text/plain
or text/html body part, even if it is empty.
2023-03-14 14:29:42 +01:00
1820af5021
chore: merge release/perth_narrows into devel
2023-03-13 11:40:54 +01:00
182dab18a6
fix(GODT-2442): Handle event poll not starting after resync
...
It is possible, on slower machines, that the new event poll task is not
yet registered and attempts to cancel have nothing to cancel.
In this case, we need the refresh event to cancel the task, at that
point it is guaranteed that the task exists.
2023-03-08 17:39:04 +01:00
d926dd3806
chore: refactor: error cause type.
2023-03-08 11:57:19 +01:00
7fc907a874
fix(GODT-2442): must publish loggedOut event.
2023-03-07 18:56:06 +01:00
86630ce137
chore(GODT-2442): improve naming, remove unrelated changes
2023-03-07 17:59:04 +01:00
2c9477d65c
fix(GODT-2442): WIP: bad events just aborts polls, feedback processed in separete channel.
2023-03-07 17:59:04 +01:00
34c002ff68
test(GODT-2442): test bad event feedback and clean-up.
2023-03-07 17:59:04 +01:00
f03688ba72
feat(GODT-2442): add gRPC interface to send feedback.
2023-03-07 17:59:04 +01:00
8c0bb22de3
feat(GODT-2442): handle bad event resync resolution.
2023-03-07 17:59:04 +01:00
53c2cbcaee
test(GODT-2442): test refresh event
2023-03-07 17:59:04 +01:00
04a7a81e27
chore(GODT-2444): Bad event info
2023-03-03 13:02:09 +00:00
d6acb0fb19
fix(GODT-2418): Ensure child folders are updated when parent is
2023-02-28 14:25:11 +01:00
ad0d4ebd36
fix(GODT-2412): Don't treat context cancellation as BadEvent
2023-02-27 14:34:35 +01:00
74cf5d422b
fix(GODT-2390): Missing changes from pervious commit
...
Always reports error type to sentry.
Add error checks for get event as well.
2023-02-27 14:33:38 +01:00
dcf694588c
fix(GODT-2390): Add reports for uncaught json and net.opErr
...
Report to sentry if we see some uncaught network err, but don't force
the user logout.
If we catch an uncaught json parser error we report the error to sentry
and let the user be logged out later.
Finally this patch also prints the error type in UserBadEvent sentry
report to further help diagnose issues.
2023-02-27 14:33:21 +01:00