Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
PratRanj07 merged 13 commits into master from feature/ListOffsets
Dec 12, 2024
Merged

List offsets api implemented #156

PratRanj07 merged 13 commits into master from feature/ListOffsets
Dec 12, 2024

Conversation

@PratRanj07
Copy link
Contributor

@PratRanj07 PratRanj07 commented Nov 13, 2024

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
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)

PratRanj07 reacted with thumbs up emoji
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.

PratRanj07 reacted with thumbs up emoji
* 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 reacted with thumbs up emoji
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

Reviewers

@milindl milindl milindl approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /