-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix: Silence several TS errors from plugin-server tests #29200
Conversation
94dcf1c
to
a90cdfe
Compare
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.
PR Summary
This PR addresses TypeScript errors in the plugin-server tests to make the master branch mergeable again.
- Added
@types/kafkajs-snappy
as a dev dependency to fix missing type definitions - Made
processPerson
parameter optional with default valuefalse
inEventsProcessor.processEvent()
- Added non-null assertions (
!
) to properties and methods that TypeScript couldn't guarantee exist - Added
@ts-expect-error
comments with TODOs for more complex type issues that need future fixes - Fixed incorrect type assertions by properly importing and using types like
ProjectId
andInternalPerson
- Corrected function parameters by adding missing required arguments or replacing
null
with appropriate values - Removed the unused
WaitEvent
class frompromises.ts
helper file
41 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
2572777
to
328be24
Compare
328be24
to
069dc09
Compare
@@ -4,7 +4,6 @@ import { mkdirSync, readdirSync, rmSync } from 'node:fs' | |||
import { Message, TopicPartitionOffset } from 'node-rdkafka' | |||
import path from 'path' | |||
|
|||
import { waitForExpect } from '../../../../functional_tests/expectations' |
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.
TS can't find this file, don't ask me why, just inlined it
Size Change: 0 B Total Size: 9.72 MB ℹ️ View Unchanged
|
Problem
CI is broken because we're typechecking this
The problem is that a lot of these types are actually wrong, so let's fix the easy ones and silence the harder ones - I just need master to be mergeable once again