Commit Graph

72 Commits

Author SHA1 Message Date
renovate[bot] 9c1dc03fbf Update prom/prometheus Docker tag to v3 (#175)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-23 16:11:13 +03:00
Taras Kushnir 247a5aa468 Add JS callbacks to widget options 2025-06-23 16:07:21 +03:00
Taras Kushnir 39521d32b1 Use a separate job to check package version 2025-06-23 11:48:51 +03:00
Taras Kushnir e9ac87b39c Use explicit registry 2025-06-23 11:43:44 +03:00
Taras Kushnir e7cad8835a Fix package CI 2025-06-23 11:38:21 +03:00
Taras Kushnir 447af98a99 Check if widget library publish is needed in CI 2025-06-23 11:27:51 +03:00
Taras Kushnir 6b3d079cc0 Only publish package for main branch 2025-06-23 09:48:26 +03:00
Taras Kushnir 04409b075c Use explicit registry 2025-06-23 09:46:07 +03:00
Taras Kushnir 51cd51de88 Fix publishing widget js package 2025-06-23 09:44:51 +03:00
Taras Kushnir 7e45b52abf Add basic package publishing workflow for core js classes in widget 2025-06-23 09:35:15 +03:00
Taras Kushnir 45d9781640 Cosmetic improvements
- fix not using "order by" for top usage query in CH
- skip querying users from CH entirely because we anyway have to get them
- fix typo in job crash handler
2025-06-21 17:59:15 +03:00
Taras Kushnir b8929c39c2 Fix typo 2025-06-21 15:05:14 +03:00
Taras Kushnir 5cb363b61e Passthrough billing plan for onboarding 2025-06-21 15:03:03 +03:00
renovate[bot] f05e20e81c Update dependency node to v22 (#170)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-21 14:24:16 +03:00
Taras Kushnir 254fdf0b3b Bump golangci-lint to v8 2025-06-21 14:23:44 +03:00
renovate[bot] 8a27ea7253 Update docker/login-action action to v3 (#173)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-21 14:22:56 +03:00
renovate[bot] d6399fdd36 Update dependency esbuild to v0.25.5 (#158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-21 14:20:45 +03:00
renovate[bot] b458a16429 Update module github.com/PuerkitoBio/goquery to v1.10.3 (#161)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-21 14:20:25 +03:00
renovate[bot] d3a0173f43 Update actions/checkout action to v4 (#166)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-21 14:20:08 +03:00
renovate[bot] 2e1df614a2 Update docker/build-push-action action to v6 (#172)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-21 14:19:48 +03:00
renovate[bot] f40abbca65 Update dependency @tailwindcss/forms to v0.5.10 (#154)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-21 14:19:16 +03:00
renovate[bot] 2093f92a77 Update module github.com/jackc/pgx/v5 to v5.7.5 (#156)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-21 14:19:03 +03:00
renovate[bot] e3d93fa9c0 Update module github.com/ClickHouse/clickhouse-go/v2 to v2.37.1 (#152)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-21 14:18:48 +03:00
Taras Kushnir 1dc330150c Reread cached properties from time to time
There was a problem where, after upgrading otter to v2, there was a chance
of properties being just cached and not reread. The reason we couldn't use
otter's magic reloading is that there's more business logic that needs to
be executed than just to reread value from DB.

One drawback is in order to keep otter's package "hidden", a clone of Loader
had to be created in common.

Additionally Verify API of server was refactored so we return a clear error
externally in case of auth failure (related to "delayed" API key check)
2025-06-21 14:16:28 +03:00
Taras Kushnir bf0598c1a9 Make siteverify API more resilient for unauthorized access
- more aggressive caching of API keys and added cache warmup
- remove direct DB access in APIkey() middleware immediately
- decrease resources usage for test puzzles
- decrease cache collision possibility for cached solved puzzles
- cosmetic improvement in rate limiter and leaky bucket Updater logic
- move user limits check and API key backfill to a separate goroutine
2025-06-21 14:16:28 +03:00
Taras Kushnir 9ec1ef8d65 Refactor caching layer
Main reason being otter/v2 release with APIs for sliding expiration.

- added new cache API to use Loader logic from otter/v2 (fetch from DB)
- main direction of work is improving "negative caching" performance
  (currently it is still intertwined with the main cache)
- expose new Prometheus metric for cache hit ratio
2025-06-21 14:16:28 +03:00
renovate[bot] 0d2fb2e699 Update actions/setup-node action to v4 (#168)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-19 09:13:34 +00:00
renovate[bot] 3f3390f0db Update actions/setup-go action to v5 (#167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-19 09:09:12 +00:00
Taras d0c59dc906 Remove extra async from script example 2025-06-19 09:07:48 +00:00
renovate[bot] 671933d83b Update dependency eslint to v9.29.0 (#150)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-19 08:15:01 +00:00
renovate[bot] 22b27b581c Update module github.com/rs/xid to v1.6.0 (#162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Taras <505555+ribtoks@users.noreply.github.com>
2025-06-19 08:14:15 +00:00
renovate[bot] ca84b0b99d Update module github.com/maypok86/otter/v2 to v2.0.0 (#163)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-19 08:13:46 +00:00
renovate[bot] 1412a6fccd Update module golang.org/x/net to v0.41.0 (#165)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-19 08:13:31 +00:00
renovate[bot] fc9aa0a4c0 Update dependency @tailwindcss/typography to v0.5.16 (#155)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 08:51:36 +03:00
renovate[bot] 5abcecd060 Update module github.com/prometheus/client_golang to v1.22.0 (#157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 08:51:01 +03:00
renovate[bot] e553512bd1 Update dependency tailwindcss to v3.4.17 (#159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 08:50:48 +03:00
renovate[bot] fd47424e63 Update module github.com/rs/cors to v1.11.1 (#160)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 08:50:36 +03:00
Taras Kushnir 0a469c7f9e Update otter to v2 2025-06-17 20:35:18 +03:00
renovate[bot] 09e8cb7997 Update module github.com/golang-migrate/migrate/v4 to v4.18.3 (#153)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-17 15:12:46 +03:00
Taras Kushnir 312ee05c24 Exclude more codepaths from sonar coverage report 2025-06-17 15:05:03 +03:00
Taras Kushnir f2c64f3cfb Cosmetic security improvements to reduce spam from SonarCloud 2025-06-17 15:04:41 +03:00
Taras Kushnir 86a6b9e349 Update ClickHouse image also in tests
change from f031d0b335
2025-06-17 14:54:11 +03:00
Taras Kushnir b51767a7a1 Set request ID header for API responses 2025-06-17 14:34:03 +03:00
Taras Kushnir ae1345b41f Add session keys count 2025-06-17 12:35:06 +03:00
renovate[bot] f031d0b335 Update clickhouse/clickhouse-server Docker tag to v24.12.6 (#148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-17 12:34:54 +03:00
renovate[bot] 9a9ab4f631 Update golang Docker tag to v1.24.4 (#151)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-17 12:34:08 +03:00
renovate[bot] c751cf98c2 Update dependency go to v1.24.4 (#147)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-17 12:33:40 +03:00
Taras e67a96c7a1 Update cla.yml 2025-06-17 12:00:23 +03:00
Taras 9bbc23e611 Update cla.yml 2025-06-17 11:56:41 +03:00
Taras c15e1e3cb8 Update cla.yml 2025-06-17 11:52:38 +03:00