feat: config schema for missing properties#1243
Conversation
…sConfig.questions optional
✅ Deploy Preview for endearing-brigadeiros-63f9d0 canceled.
|
|
At least two tests will not pass on this PR until its merged as they use config from main that contains invalid properties (mostly Edit: cofnirmed - although a gitrleaks test is also failing, I think thats unrelated to this PR. |
|
I've manually run the Cypress tests, CLI tests and check-types, all of which pass (check-types still shows issues in the UI but they are unrelated to this PR). |
|
@jescalada I'm not sure I see a way forward other than ignoring the check and merging. The reliance on the main branch for the configLoader tests mean they will always fail if we change the schema/default config such that the schema won't validate the old version... |
|
@jescalada actually there is an answer. I've raised #1244 which corrects the config used in checks and should allow the two failing config tests on #1243 to pass if this is merged first. Also fixes a typo that was being checked in a test for gitleaks. |
|
It seems some tests that load the |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1243 +/- ##
==========================================
- Coverage 84.07% 83.84% -0.24%
==========================================
Files 68 68
Lines 2945 2946 +1
Branches 375 380 +5
==========================================
- Hits 2476 2470 -6
Misses 409 409
- Partials 60 67 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Those tests are indeed now passing. Re: coverage, we've got a handful of new uncovered partials (nullish coealscing to handle missing config entries). Thats never been a problem as the default config that we merge with has values set: Lines 70 to 106 in 84d2563 |
resolves #1237
resolves #1213
api.githubconfig element as it is defunctcommitConfig,attestationConfiganddomainsUserSettingstype as this is no longer used (generated config typeGitProxyConfigreplaced it)