Skip to content

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

Merged
merged 13 commits into from
Dec 12, 2024
Merged

List offsets api implemented #156

merged 13 commits into from
Dec 12, 2024

Conversation

PratRanj07
Copy link
Contributor

Implemented list offsets api in name of fetchTopicOffsets for kafkajs and wrote tests and example for it

@PratRanj07 PratRanj07 requested review from a team as code owners November 13, 2024 09:43
@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Base automatically changed from feature/describeTopics to master November 18, 2024 10:18
Copy link
Contributor

@milindl milindl left a 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.

Copy link
Contributor

@milindl milindl left a 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({
Copy link
Contributor

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)

Copy link
Contributor

@milindl milindl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

  1. Update MIGRATION.md
  2. Update CHANGELOG.md

* @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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param {kafkaJS.IsolationLevel?} options.isolationLevel - The isolation level for reading the offsets.
* @param {KafkaJS.IsolationLevel?} options.isolationLevel - The isolation level for reading the offsets.

* List offsets for the specified topic partition(s).
*
* @param {string} topic - The topic to fetch offsets for.
* @param {object} options
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param {object} options
* @param {object?} options

@PratRanj07 PratRanj07 requested a review from milindl December 12, 2024 05:26
Copy link
Contributor

@milindl milindl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @PratRanj07 !

@PratRanj07 PratRanj07 merged commit 34cfb67 into master Dec 12, 2024
2 checks passed
@PratRanj07 PratRanj07 deleted the feature/ListOffsets branch December 12, 2024 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants