-
Notifications
You must be signed in to change notification settings - Fork 20
List offsets api implemented #156
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
🎉 All Contributor License Agreements have been signed. Ready to merge. |
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.
Partial review complete, some changes suggested.
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.
A few more comments about the types.
Example and test looks fine (please add leaderEpoch to test)
lib/admin.js
Outdated
* @readonly | ||
* @memberof RdKafka | ||
*/ | ||
const IsolationLevel = Object.seal({ |
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.
Remove the Object.seal (as it's frozen later while exporting)
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.
Looks great!
- Update MIGRATION.md
- Update CHANGELOG.md
lib/kafkajs/_admin.js
Outdated
* @param {object} options | ||
* @param {number?} options.timeout - The request timeout in milliseconds. | ||
* May be unset (default: 5000) | ||
* @param {kafkaJS.IsolationLevel?} options.isolationLevel - The isolation level for reading the offsets. |
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.
* @param {kafkaJS.IsolationLevel?} options.isolationLevel - The isolation level for reading the offsets. | |
* @param {KafkaJS.IsolationLevel?} options.isolationLevel - The isolation level for reading the offsets. |
lib/kafkajs/_admin.js
Outdated
* List offsets for the specified topic partition(s). | ||
* | ||
* @param {string} topic - The topic to fetch offsets for. | ||
* @param {object} options |
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.
* @param {object} options | |
* @param {object?} options |
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.
Thanks @PratRanj07 !
Implemented list offsets api in name of fetchTopicOffsets for kafkajs and wrote tests and example for it