Commit Graph

28 Commits

Author SHA1 Message Date
Sebastian Poxhofer 914c64afbd test(linter): zod schema and infered type naming rule (#43736)
* ci: add linting rule for schema and infered types

* refactor: remove usages of Schema and differently named types
2026-06-02 12:07:35 +00:00
Jamie Tanna ff6761ed23 fix(config/global): return default values for GlobalConfig.get (#42113)
* fix(config/global): return default values for `GlobalConfig.get`

As noted in #39949, it can be awkward working with in `GlobalConfig.get`, where
we would previously need to specify the default value when calling `.get`,
which could lead to drift with the defaults for a given config option.

To reduce this risk, we can rely on a given `default` for a configuration
option, providing that as a default.

Because this now definitely returns a value that matches the config option, it
now allows us to remove `!` assertions.

* fixup! fix(config/global): return default values for `GlobalConfig.get`

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* fixup! fix(config/global): return default values for `GlobalConfig.get`

* test(presets): remove impossible test

As it's now not possible to set a value as `undefined` (as
`GlobalConfig` will then use the default), this test no longer validates
anything.

* test(workers/repository): add mock

Now `platform` defaults to `github`, we need to mock out the call to
fetch config.

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

* test: coverage

* test: coverage

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-05-15 17:10:38 +00:00
Sergei Zharinov c5b0a74f82 refactor: Remove constructor parameter properties (#40712) 2026-01-27 11:16:26 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
Gabriel-Ladzaretti 173b2ccfc8 fix(repositoryCache): skip loading empty cache files (#35427) 2025-04-17 13:19:56 +00:00
Sebastian Poxhofer 3681b2a945 chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
Sergei Zharinov 49005e0246 fix: Downgrade log level for http cache cleanup (#28447) 2024-04-16 15:05:39 +00:00
Rhys Arkins 41e6be8b94 fix(cache): don't warn for missing cacheData (#28441) 2024-04-16 11:37:09 +00:00
Sergei Zharinov e89be688a5 feat(http): Cleanup for HTTP cache (#28381)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-04-14 14:16:47 +00:00
Rhys Arkins bc4d090530 chore: log warning if Repository cache is invalid (#27910) 2024-03-13 12:29:28 +00:00
Sergei Zharinov bd0adf2d05 refactor: Deprecate compression with base64 encoding (#26711) 2024-01-17 19:52:22 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Sergei Zharinov 6c8c469ca0 refactor(schema): Use Json helper schema instead of JSON.parse (#23997) 2023-08-21 15:29:41 +00:00
Adam Setch 39c907231b refactor(util/hash): replace hasha sha512 use cases (#23548) 2023-07-24 22:54:28 +00:00
Sergei Zharinov d306bfa7d8 refactor: Rename branchFingerprint to commitFingerprint (#22454) 2023-05-27 14:29:04 +00:00
Sergei Zharinov 8081d08ec4 refactor(http): Enhanced integration with data schemas (#21338) 2023-04-06 15:56:27 +00:00
Sergei Zharinov b5eed5f8ff refactor(util): Compression utils (#18240) 2022-10-10 14:01:53 +00:00
Sergei Zharinov db1086a79f fix: Remove repository cache migrations (#18025) 2022-10-02 05:34:50 +00:00
Sergei Zharinov 5dc1eb3ad6 fix(cache): Store cache with sorted object keys (#17607) 2022-09-04 10:53:20 +00:00
Gabriel-Ladzaretti 4ccd085aa5 feat(cache/repository): add modification query function to the repository cache interface (#17529)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-09-03 16:36:55 +03:00
Sergei Zharinov 6a93997863 feat(cache): Repository cache fingerprinting (#17367) 2022-08-30 04:58:57 +00:00
Sergei Zharinov 57ade2b33e refactor(cache): Restore each revision with own separate method (#17364) 2022-08-23 20:27:34 +02:00
Michael Kriese ae2e584c18 refactor(repository/cache): fix types and log errors (#17355)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-08-23 07:19:10 +00:00
Gabriel-Ladzaretti f93927af63 refactor(repo/cache): handle data parsing inside repository base class (#17346)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-23 04:22:32 +00:00
Sergei Zharinov 064c1e9204 refactor(cache): Make read method return unknown type (#17335) 2022-08-22 20:48:49 +02:00
Gabriel-Ladzaretti 039fce8dc6 refactor(repository/cache): add support for adding various cache clients (#17146)
Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-21 12:53:20 +00:00
Sergei Zharinov f911b0ba22 refactor: Class-based implementations of repo cache (#15157) 2022-04-23 04:44:28 +00:00