Commit Graph

26 Commits

Author SHA1 Message Date
Linus Flood
a2d9010c8f Merged in fix/redis-onerror (pull request #3218)
feat(BOOK-603): better logging and delete with unlinke intead of del

* feat(BOOK-603): better logging and delete with unlinke intead of del


Approved-by: Joakim Jäderberg
2025-11-26 09:36:38 +00:00
Joakim Jäderberg
c3381e8100 Merged in feat/redis-fix (pull request #3209)
Feat/redis fix

* feat(redis): delete multiple keys in one partition scan

* fix(BOOK-603): make it possible to do multiple deletes in redis at once using one partition scan

* filter out invalid keys

* fix: if no valid keys are present return early

* .

* fix: do redis deletes after scanning through all keys

* fix: do redis deletes after scanning through all keys


Approved-by: Linus Flood
2025-11-25 10:19:19 +00:00
Joakim Jäderberg
8ed16a0119 Merged in feat/redis-fix (pull request #3207)
Feat/redis fix

* feat(redis): delete multiple keys in one partition scan

* fix(BOOK-603): make it possible to do multiple deletes in redis at once using one partition scan


Approved-by: Linus Flood
2025-11-24 10:17:35 +00:00
Linus Flood
1a24eb68c7 Merged in feat/sw-3596-console (pull request #3100)
feat(SW-3596): added lint rule for no console.log. Use logger instead.

* feat(SW-3596): added lint rule for no console.log. Use logger instead.


Approved-by: Joakim Jäderberg
2025-11-07 08:14:16 +00:00
Joakim Jäderberg
bf6ed7778e Merged in feat/syncDefaultMessage (pull request #3022)
Sync defaultMessage from lokalise

* Enhance translation sync functionality and tests

- Added logging for found component files during sync.
- Introduced tests for handling complex components with replacements.
- Updated regex in syncIntlFormatMessage to support optional second arguments.
- Removed unused test files.

* feat(syncDefaultMessage): add script for syncing default message with lokalise

* feat(syncDefaultMessage): add script for syncing default message with lokalise


Approved-by: Matilda Landström
2025-10-30 08:38:50 +00:00
Joakim Jäderberg
855f795d50 Merged in feature/transpile-design-system (pull request #2621)
Feature/transpile design system

* remove example, we should use storybook instead

* remove example, we should use storybook instead

* css-modules cannot have :root, moved affected css-variables to globals.css

* .

* scandic-web no longer depends on design-system#build

* * Update readme
* Remove test code


Approved-by: Anton Gunnarsson
2025-08-12 09:07:33 +00:00
Anton Gunnarsson
7a8a5cdb76 Merged in chore/fix-redis-api-lint-issues (pull request #2552)
chore: Fix redis-api lint issues

* Fix redis-api lint issues


Approved-by: Matilda Landström
2025-07-11 09:37:29 +00:00
Joakim Jäderberg
105c4d9cf3 Merged in feature/redis-queue-deletes (pull request #2397)
Feature/redis queue deletes

* feat: add queuing for deletes

* merge

* .

* .

* .


Approved-by: Linus Flood
2025-06-19 09:20:38 +00:00
Joakim Jäderberg
3af994b0a9 Merged in feat/redis-api-send-logs (pull request #2290)
feature: send logs to Sentry for Redis-Api

* feature: send logs to Sentry for Redis-Api


Approved-by: Linus Flood
2025-06-19 08:28:53 +00:00
Joakim Jäderberg
bb98c2652e Merged in fix/missing-batchsize-bicep-config (pull request #2385)
add missing bicep setup for deleteBatchSize

* add missing bicep setup for deleteBatchSize
2025-06-18 07:47:25 +00:00
Joakim Jäderberg
d5f49ccaa1 Merged in fix/batch-size-in-env (pull request #2384)
fix: able to set batch delete size via env

* fix: able to set batch delete size via env


Approved-by: Linus Flood
2025-06-18 06:38:48 +00:00
Joakim Jäderberg
de6117f7f7 Merged in fix/redis-adjust-batch-settings (pull request #2374)
fix: adjust batch size and remove timeout between delete-calls

* fix: adjust batch size and remove timeout between delete-calls

* chore: adjust scaling


Approved-by: Linus Flood
2025-06-17 07:12:44 +00:00
Anton Gunnarsson
dd4ef527df Merged in chore/eslint9 (pull request #2029)
chore: Update to ESLint 9

* wip: apply codemod and upgrade swc plugin

* Update eslint to 9 in scandic-web

apply code mod to config
fix existing lint issues

* Remove uneccessary fixupConfigRules

* Update eslint to 9 in design-system

* Add lint turbo dependency

* Move redis-api to eslint and prettier instead of biome

* Simplify eslint configs

* Clean up

* Apply linting


Approved-by: Linus Flood
2025-06-03 14:26:44 +00:00
Joakim Jäderberg
ef3b29b9f1 Merged in fix/SW-2945-cache-timings-for-resolve-entry (pull request #2264)
Fix/SW-2945 cache timings for resolve entry

* fix: cache resolveentry() harder and revalidate on publish instead

* logging: use debug logging for requests and add logging when tll is invalid


Approved-by: Linus Flood
2025-06-02 08:35:55 +00:00
Linus Flood
b633d51705 Merged in fix/redis-poll-interval (pull request #2220)
fix: redis - decrease poll interval

* fix: redis - decrease poll interval


Approved-by: Joakim Jäderberg
2025-05-27 06:12:48 +00:00
Linus Flood
16be305ad3 Merged in feat/redis-batch-delete (pull request #2170)
feat: redis - batch delete in smaller chunks

* feat: redis - batch delete in smaller chunks

* fix: redis-api remove unnecessary loop when fuzzily deleting

* increase timeout between delete batches


Approved-by: Joakim Jäderberg
2025-05-21 11:16:35 +00:00
Joakim Jäderberg
7031ad3fae Merged in fix/bump-redis-prod-sku (pull request #2061)
fix: bump redis SKU in prod

* fix: bump redis SKU in prod


Approved-by: Linus Flood
2025-05-13 06:26:41 +00:00
Joakim Jäderberg
3ea26259df Merged in fix/redis-api-model-validation (pull request #2000)
* fix: model response validation for 204
* log: add more logging when deleting keys
* add version to health endpoint


Approved-by: Anton Gunnarsson
2025-05-07 13:45:35 +00:00
Joakim Jäderberg
33ef22ae23 Merged in fix/redis-api-set-socket-timeout (pull request #1991)
fix: redis - set timeout for calls and sockets

Approved-by: Michael Zetterberg
2025-05-07 09:16:25 +00:00
Joakim Jäderberg
814a1c534b Merged in fix/redis-api-set-sentry-environment-via-bicep (pull request #1981)
fix: set sentry environment through bicep deploys

* fix: set sentry environment through bicep deploys


Approved-by: Anton Gunnarsson
2025-05-06 13:06:28 +00:00
Joakim Jäderberg
0506d5847e Merged in fix/redis-shutdown-graceful (pull request #1969)
Fix/redis shutdown graceful

* fix: shutdown redis gracefully when container restarts
* throttle scans to redis to avoid overwhelming it

Approved-by: Anton Gunnarsson
2025-05-06 11:38:41 +00:00
Joakim Jäderberg
2acc17219a Merged in feature/SW-2538-redis-api-sentry (pull request #1973)
Feature/SW-2538 redis api sentry

* Add fingerprint to be able to differentiate JSON.parse errors
* update deploy script
* use status over deprecated error function in elysia
* use t3-env createFinalSchema for extra validation

Approved-by: Anton Gunnarsson
2025-05-06 11:29:37 +00:00
Joakim Jäderberg
4ab58cf330 Merged in feature/SW-2531-redis-api-scaling (pull request #1895)
Redis-Api: increase max replica count and cpu/memory

Approved-by: Linus Flood
2025-04-29 08:36:51 +00:00
Anton Gunnarsson
b535b53901 Merged in feat/shared-ts-config (pull request #1610)
Add typescript-config package with shared configs

* Move web config to shared

* Move design-system ts config to typescript-config package

* Move redis-api tsconfig to typescript-config package

* Sort tsconfig keys

* Update react-library tsconfig

Move declaration and declarationMap from base
Add sourceMap

This fixes Go-to-Definition, debugging and similar in packages/apps where it is consumed

* Update base config module and moduleResolution


Approved-by: Michael Zetterberg
Approved-by: Christian Andolf
2025-03-28 07:07:24 +00:00
Linus Flood
f954deaf22 Merged in fix/delete-fuzzy (pull request #1538)
Support for delete keys fuzzy

* Support for delete keys fuzzy

* Added some logs


Approved-by: Anton Gunnarsson
2025-03-14 12:50:34 +00:00
Joakim Jäderberg
fa63b20ed0 Merged in feature/redis (pull request #1478)
Distributed cache

* cache deleteKey now uses an options object instead of a lonely argument variable fuzzy

* merge

* remove debug logs and cleanup

* cleanup

* add fault handling

* add fault handling

* add pid when logging redis client creation

* add identifier when logging redis client creation

* cleanup

* feat: add redis-api as it's own app

* feature: use http wrapper for redis

* feat: add the possibility to fallback to unstable_cache

* Add error handling if redis cache is unresponsive

* add logging for unstable_cache

* merge

* don't cache errors

* fix: metadatabase on branchdeploys

* Handle when /en/destinations throws
add ErrorBoundary

* Add sentry-logging when ErrorBoundary catches exception

* Fix error handling for distributed cache

* cleanup code

* Added Application Insights back

* Update generateApiKeys script and remove duplicate

* Merge branch 'feature/redis' of bitbucket.org:scandic-swap/web into feature/redis

* merge


Approved-by: Linus Flood
2025-03-14 07:54:21 +00:00