analytics/config
RobertJoonas a83b4f3583
Clean up legacy verification code and script v2 flag (#5824)
* add module name to service_error when check times out

Otherwise, it can sometimes remain unclear in the diagnostics, whether
it was InstallationV2 or InstallationV2CacheBust that timed out.

* Remove duplicate timeout logic

The current production logs show two types of verification timeouts:

* service_error: "Unhandled Browserless response status: 408" (vast
  majority of cases)
* service_error: :timeout (only a few cases)

The latter happens when we hit the Req receive_timeout
(endpoint_timeout + 2s). I've seen Browserless not respect the timeout
param from time to time, so it's better to keep the timeout logic
"in-house" only.

* make service_error into a map with code and extra

* interpret temporary service errors

...but still consider them "unhandled" for telemetry, also notifying Sentry
and logging the warning.

* separate sentry messages (verification)

* make Verification.ChecksTest more DRY

* organize tests into describe blocks

* test verification telemetry and logging

* fix codespell

* get rid of legacy verification

* rename Checks.InstallationV2 -> Checks.VerifyInstallation

* delete Live.Installation and rename Live.InstallationV2 -> Live.Installation

* rename installationv2 (live) files as well

* delete old change-domain routes

Also rename current liveview modules and routes, removing the v2 suffix

* rename domain_change_v2 files, removing v2 suffix

* remove legacy JS verifier code

Also fix dockerignore and elixir.yml referencing a wrong priv path

* rename verification_v2_test -> verification_test

* remove v2 prefix from logs and sentry messages

* clean up duplicate external_sites_controller_test.exs tests

* remove flag

* fix typespec

* pass timeout as query param to Browserless too

* Fixup external sites controller test module (#5826)

* fix test description

---------

Co-authored-by: Artur Pata <artur.pata@gmail.com>
2025-10-27 09:39:41 +00:00
..
.env.dev Remove SSO_ENABLED env flag and replace it with ee? checks where needed (#5728) 2025-09-16 14:18:59 +00:00
.env.load Remove SSO_ENABLED env flag and replace it with ee? checks where needed (#5728) 2025-09-16 14:18:59 +00:00
.env.test Remove SSO_ENABLED env flag and replace it with ee? checks where needed (#5728) 2025-09-16 14:18:59 +00:00
ce.exs Add better assets compression to CE (#4476) 2024-09-03 13:54:11 +02:00
ce_dev.exs Unify error handling and propose actions to user on error 2024-08-22 11:57:59 +03:00
ce_test.exs Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
config.exs Tailwind v4 (#5756) 2025-09-29 15:21:15 +00:00
dev.exs Loadtest p2 (#5380) 2025-05-06 10:58:06 +00:00
load.exs Loadtest p2 (#5380) 2025-05-06 10:58:06 +00:00
prod.exs New config (#595) 2021-01-13 15:41:16 +02:00
runtime.exs Fix parsing of percentage setting for persistor from env in runtime config (#5772) 2025-10-01 13:27:09 +00:00
test.exs Clean up legacy verification code and script v2 flag (#5824) 2025-10-27 09:39:41 +00:00