Skip to content

Commit

Permalink
Add time search support
Browse files Browse the repository at this point in the history
  • Loading branch information
tzachshabtay committed Feb 7, 2021
1 parent 2904c96 commit d83c790
Show file tree
Hide file tree
Showing 7 changed files with 207 additions and 79 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Web UI to browse [kafka](https://kafka.apache.org/) and [schema registry](https:
- Support for avro auto-detecting and decoding (via the schema registry). Different subject messages in a topic are supported as well (and as you filter for a specific event type it auto-hides all of the irrelevant columns belonging to the other messages).
- The raw view shows the data in json format, and allows easy copying to clipboard
- Server-side search for messages and the ability to search multiple topics at once
- Filter messages via time range (or offsets)
- Light and dark themes

## Images
Expand Down
108 changes: 42 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
"ejs": "^2.7.4",
"express": "^4.17.1",
"kafka-avro": "^3.2.0",
"kafkajs": "^1.14.0",
"kafkajs": "^1.15.0",
"long": "^4.0.0",
"qs": "^6.9.4",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-json-view": "^1.19.1",
"react-json-view": "^1.21.1",
"react-router-dom": "^5.2.0",
"uuid": "^8.1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/url.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import qs = require('qs');

export type UrlProperty = `raw` | `search` | `offset` | `limit` | `searchFrom` | `topics`
export type UrlProperty = `raw` | `search` | `offset` | `limit` | `searchFrom` | `topics` | `from_time` | `to_time`

export class Url {
obj: qs.ParsedQs
Expand Down
2 changes: 2 additions & 0 deletions src/client/kafka/messages/messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ export class Messages extends React.Component<Props, State> {
search={this.state.search}
offset={this.url.Get(`offset`)}
limit={this.url.Get(`limit`)}
fromTime={this.url.Get(`from_time`)}
toTime={this.url.Get(`to_time`)}
onDataFetched={this.onDataFetched}
onDataFetchStarted={this.onDataFetchStarted}>
</SingleTopicInput>
Expand Down
Loading

0 comments on commit d83c790

Please sign in to comment.