Skip to content
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

Added begin and end offset param #78

Merged
merged 5 commits into from
Jul 24, 2020
Merged

Conversation

yazebochan
Copy link
Contributor

No description provided.

@@ -290,6 +290,28 @@ paths:
items:
$ref: '#/components/schemas/ConsumerGroup'

/api/clusters/offsets/{clusterName}:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need special endpoint? Could we add this to exist topic partition list?

@@ -351,4 +351,40 @@ private InternalClusterMetrics collectTopicsMetrics(Map<String,InternalTopic> to
})
);
}

public Mono<Map<String, BigDecimal>> getOffsets (AdminClient ac, KafkaCluster c) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What is String? TopicPartition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Topic-Partition-max/min to avoid creating new object in swagger

});
}

private Mono<List<Map<String, List<Integer>>>> getTopicPartitionList(AdminClient ac) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need all these offsets in one time

@germanosin germanosin merged commit 66afaa4 into master Jul 24, 2020
@germanosin germanosin deleted the backend-offsets-checking branch July 24, 2020 11:16
javalover123 pushed a commit to javalover123/kafka-ui that referenced this pull request Dec 7, 2022
* Added begin and end offset param

* moved consumer to try with resources block

* Fixed some problems

* Moved to gettopicdetails

* Cleanup code

Co-authored-by: Roman Nedzvetskiy <roman@Romans-MacBook-Pro.local>
Co-authored-by: German Osin <german.osin@gmail.com>
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.

None yet

2 participants