-
Notifications
You must be signed in to change notification settings - Fork 63
cockpit: use upstream cockpit types #3640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This change refactors some of the cockpit api file end extracts all the helper functions to their own file. This just makes the file more manageable to work with.
// types. We have stubbed those functions out for the | ||
// as this is the tsconfig file for the service. | ||
"./src/test/mocks/*" | ||
"./pkg/lib/*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is up for discussion, we might have to keep a copy of the cockpit.d.ts
file in the repo and make sure it matches the commit hash in the makefile.
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #3640 +/- ##
==========================================
- Coverage 82.48% 76.76% -5.73%
==========================================
Files 214 228 +14
Lines 24993 26857 +1864
Branches 2589 2603 +14
==========================================
Hits 20616 20616
- Misses 4350 6200 +1850
- Partials 27 41 +14
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Since we've made our typescript checks stricter, we can rely on the cockpit types from upstream. This will prevent drift between the types. The one downside to this is that we may have to keep the some of the cockpit lib files and make sure they match the commit hash in the makefile.
61014a3
to
1ca0a10
Compare
We can re-open this later down the line if we need |
Since we've made our typescript checks stricter, we can rely on the cockpit
types from upstream. This will prevent drift between the types. The one downside
to this is that we may have to keep the cockpit
pkg/lib
directory in the repository.