Commit graph

63 commits

Author SHA1 Message Date
Damir Abdulganiev
2d5a8c024a
[Fixes #1391] Incorrect topic message content type (avro -> json) (#1422)
* Updates MessageContent to use keyFormat and valueFormat data from API

* Changes imports to * from S

* Adds tests verify keyFormat and contentFormat renders correctly

Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
2022-01-19 17:45:50 +03:00
NelyDavtyan
3291b85838
clusters"s table styles was fixed, added hyphens to breadcrumbs, URP … (#1384)
* clusters"s table styles was fixed, added hyphens to breadcrumbs, URP is not abbreviated and ISR is abbreviated already and "f0" was changed to 0

* styled component name for cluster table was changed

* adding tests for clusterwidget cells, adding title for ISR and bringing back changes in breadcrumb regarding hyphens

* fixing clusterWidget test

* fixing double scroll issue inside Topics > Messages > Content for large message content

* bring back last changes

* changing styles for scrollbar

* added required changes from reviewers and removed enzyme from clusterWidgets test
2022-01-19 16:14:47 +04:00
Damir Abdulganiev
cdc929add7
[Fixes #1212] Confusing sorting UI in Topics (#1389)
* Topics: Updated tests for TableHeaderCell and recreated snapshots

* Topics: Updated snapshot

* Topics: Added more tests to verify that TableHeaderCell is rendering correctly

* Update kafka-ui-react-app/src/components/common/table/TableHeaderCell/TableHeaderCell.tsx

Co-authored-by: Oleg Shur <workshur@gmail.com>

* Update kafka-ui-react-app/src/components/common/table/TableHeaderCell/TableHeaderCell.tsx

Co-authored-by: Oleg Shur <workshur@gmail.com>

* Updates snapshots

* Updates snapshot

* Updates TableHeaderCell test to use theme object instead of hardcoded values

* got rid of codesmells

* Adds more tests to raise coverage

* cleanup

* Removes orderBy, orderValue, otherOrderValue from test

* Renames sortIconTitle -> sortIconTitleValue

* Renames th -> columnheader in test

* Renames title -> testTitle, previewText -> testPreviewText, sortIconTitleValue -> sortIconTitle

* Renames titleNode -> title, previewNode -> preview

Co-authored-by: Damir Abdulganiev <ehave@Damirs-MacBook-Pro.local>
Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
Co-authored-by: Oleg Shur <workshur@gmail.com>
2022-01-19 12:43:00 +03:00
NelyDavtyan
bdf01e4e69
Updated topic URP status color. (#1336)
* Updated topic URP status color.

* Small fix.

* Added test for circular-alert.

* Added test for topic detail overview.

* Fixed name.

* Updated test for topic detail overview.
2022-01-18 19:04:28 +04:00
NelyDavtyan
a4fce3cd81
Added readonly status for the cluster. (#1364)
* Added readonly status for the cluster.

* Classes element changed to styled components.

* removed unnecessary className from interface.
2022-01-17 18:29:41 +04:00
Ekaterina Petrova
b6c876275f
Added GlobalSchemaSelector tests (#1376)
* Added GlobalSchemaSelector tests

* fix schema selection assertion

Co-authored-by: Ekaterina Petrova <epetrova@provectus.com>
2022-01-17 16:22:50 +03:00
Ekaterina Petrova
c732862fd0
Empty table for brokers & change tag styles (#1371)
Co-authored-by: Ekaterina Petrova <epetrova@provectus.com>
2022-01-13 11:13:39 +03:00
Oleg Shur
613348faa2
[ISSUE-1189] Refactor Schemas store (#1327)
* [ISSUE-1189] Refactor Schemas store

* Design review fix (#1341)

* Design review fix init

* changed pagination tests, refactored styles, fixed topicform

* redesign fix code cleanup

* styled select position

* styled select fix bracket

* resolved code review

* moved latest version styles to theme

* fixed queryByRole in pagination tests

Co-authored-by: Ekaterina Petrova <epetrova@provectus.com>
Co-authored-by: Oleg Shuralev <workshur@gmail.com>

* Inconsistency in updating the global compatibility level (drop down menu) (#1363)

* Fix select in schema registry

* refactored GlobalSchemaSelector & ListItem

* Moved list & list item tests to react-testing-library

* Added some tests for GlobalSchemaSelector

* Added props test

* Specs

Co-authored-by: Ekaterina Petrova <epetrova@provectus.com>
Co-authored-by: Oleg Shuralev <workshur@gmail.com>

* Feedback

* Cleanup

Co-authored-by: Ekaterina Petrova <32833172+Hurenka@users.noreply.github.com>
Co-authored-by: Ekaterina Petrova <epetrova@provectus.com>
2022-01-11 13:32:32 +03:00
NelyDavtyan
b5aa86cf4c
Added a popup warning about deleting topic messages. (#1324)
* Added a popup warning about deleting topic messages.

* Added test for warning popup.

* Small fix.
2022-01-10 16:34:36 +03:00
Roman Zabaluev
32a2e753b0
Allow producing messages with an empty key/value
* [ISSUE 1046] UI allows to submit message with empty key & value (#1264)

* [ISSUE 1046] UI allows to submit message with empty key & value

* Update Contract

(cherry picked from commit 4b730eb288)

* Backend fix

* Refactoring

* Fix nullable & checkstyle

* Fix jsonnullable get

* Remove unnecessary check and add a test

Co-authored-by: Oleg Shur <workshur@gmail.com>
2021-12-24 19:00:27 +03:00
NelyDavtyan
5a487e437d
Issues/1265 (#1303)
* Make all labels Title Case in popup menus.

* Increased length of the sorting box to make the title readable like for 'Latest first' there.

* Disabled 0 and negative values in Topic Creation redesign.

* Changed consumer, connect labels status colors.

* Added test for consumer-list

* Update kafka-ui-react-app/src/components/Brokers/Brokers.tsx

Co-authored-by: Oleg Shur <workshur@gmail.com>

* Fixed warnings.

* Added test for customer group list.

* Added an interface to the object.

Co-authored-by: Oleg Shur <workshur@gmail.com>
2021-12-24 18:16:12 +04:00
Roman Zabaluev
fd83f190f5
Revert "[ISSUE 1046] UI allows to submit message with empty key & value (#1264)"
This reverts commit 4b730eb288.
2021-12-18 06:01:34 +03:00
Oleg Shur
4b730eb288
[ISSUE 1046] UI allows to submit message with empty key & value (#1264)
* [ISSUE 1046] UI allows to submit message with empty key & value

* Update Contract
2021-12-17 20:44:13 +03:00
Oleg Shur
a170cce4fa
Fix specs (#1267) 2021-12-17 12:59:58 +03:00
NelyDavtyan
2d40c3eac1
Issues/1228 Increased length of the sorting box to make the title readable like for 'Latest first' there, make all labels Title Case in popup menus. (#1263)
* Make all labels Title Case in popup menus.

* Increased length of the sorting box to make the title readable like for 'Latest first' there.

* Update kafka-ui-react-app/src/components/common/Select/Select.styled.ts

Co-authored-by: Oleg Shur <workshur@gmail.com>

Co-authored-by: Oleg Shur <workshur@gmail.com>
2021-12-17 11:46:27 +04:00
NelyDavtyan
65d648419c
Fixed issue of partition shrink of the drop-down list in the search bar. (#1259) 2021-12-16 14:41:45 +03:00
Oleg Shur
7e5e8d9268
Redesign (#1045)
* Refactor topic creation

* Remove unused thunk

* Remove excess interface

* Add New page snapshot test

* Refactor new component tests

* Remove excess function

* Add typography variables and classes

* Add font families

* Implement custom button

* Get rid of enums

* Add theme

* Separate styles from logic

* Feature/layout redesign (#862)

* Refactor pages general layout

* Refactor breadcrumbs

* Refactor brokers metrics

* Fix toggle position

Co-authored-by: azat.belgibayev <azat.belgibayev@almatech.dev>

* add redesigned new menu item

* remove styles from theme

* update tests

* fix local and app wide styles

* add tests

* Add theme

* Add types to the styles

* update menu item prop prefixes, minor fixes

* add theme styles, move interface, update test, snapshot

* add optional styling

* add isActive props, propagate component, update tests

* remove button

* Revert "remove button"

This reverts commit 4a9c87d8d8.

* add tests for styled button

* remove ternary operator from style

* import styled from lib/

* Custom Inputs  (#890)

* Implement and test custom input

* Custom select (#896)

* Implement custom select

* Fix Metrics component (#914)

* Add styled table header cell component (#901)

* Redesign menu (#918)

* Finish styling menu

* Styled Table

* Fix styled table

* Allow custom buttons work as links

* Restyle Breadcrumb

* Topics list (#946)

* Redesign pagination

* Fix styled components usage

* Topic messages (#959)

* Topic Consumer Groups

* Message settings

* Finish styling indicators

* Style the dashboard

* Finish with the topics page

* Style consumer groups list

* Restyle the consumer group details

* Style alerts

* Style confirmation modal

* Update DangerZone.spec.tsx

* redesign schema registry

* Add Topic details snapshot

* Style Page Loader

* Style connectors list

* Style KSQL

* Remove all the classes from the styled components (#1049)

* Redesign topic form (#1051)

* Redesign connect details (#1053)

* Update types for styled-components (#1054)

* Redesign some minor forms in the app (#1062)

* Fix alert styles

* Get rid of bulma/layout styles

* Fix form styling

* Custom Switch component

* fix border-radius property of metrick widgets

* get rid of warnings in tests

* use jest-styled-components

* cleanup

* get rid of some bulma modules

* refactor metrics component

* get rid of JSON-tree. Json Editor redesign

* update proxy config

* Refactor Alerts component (#1124)

* Refactor tests (#1129)

* App layout update (#1127)

* ‘App-layout-update’

* toBeNull changed to toBeInDocument

* scss file removed

* App navbar layout update

* navbar test

* code smells local refactoring

* StyledMenuItem code smells refactoring

* StyledClusterTab code smells refactoring

* ConfirmationModalWrapper code smells refactoring

* input icon and label code smells refactoring

* navburger displaying fixed

* Get rid of classes

* fix code smells

* refactor styles

* refactor styles

Co-authored-by: Oleg Shuralev <workshur@gmail.com>

* Refactored Cluster nav (#1147)

* Update caniuse

* refactor Nav component

* Update sonars config

* refactor Nav component + specs

* Specs

* Feature/code smells removing (#1148)

* StyledSelect code smell refactoring

* SecondaryTabs code smell refactoring

* TextareaStyled code smell refactoring

* TableStyled code smell refactoring

* StyledTableHeaderCell code smell refactoring

* Add custom render with theme provider wrapper for testing lib (#1152)

* Added cleanupPolicy to topic details. Closes #999 (#1067)

* Rename "latest first" to "oldest first"

* Switch to redux-toolkit. Refactoring (#1171)

* Switch to redux-toolkit

* Fix #1207 (cherry-pick)

* refactor metrics (#1253)

Co-authored-by: Azat Belgibayev <belg.azat@gmail.com>
Co-authored-by: Alexander <mr.afigitelniychuvak@gmail.com>
Co-authored-by: azat.belgibayev <azat.belgibayev@almatech.dev>
Co-authored-by: sergei <scheremnov@provectus.com>
Co-authored-by: Alexander Krivonosov <31561808+GneyHabub@users.noreply.github.com>
Co-authored-by: Alina Miryuk <alinamiryuk@mail.ru>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2021-12-15 12:10:36 +03:00
Si Tang
7b62af1fa2
Hide 'Clear All Messages' button on topics with non-delete policy
* #992: hide 'Clear All Messages' button on topics which are not delete policy, as it's not supported by AdminClient

* #992 remove console.log and use type
2021-10-27 15:10:57 +03:00
Alexander Krivonosov
cfa4e11506
Skip schema validation if type is string 2021-10-26 14:39:55 +03:00
Roman Zabaluev
77226a2144
Support "compact,delete" cleanup policy (#983)
* Fix #973

* Fix topic edition errors

Fixed two errors
1. The error with cleanup policy. Since some of the custom params (like, cleanup policy) are moved to the general form, we were not supposed to add them to the custom params section. Added filtration for this.
2. Fixed the variable name for  Min In Sync Replicas to match the name in the contract

Co-authored-by: Alexander <mr.afigitelniychuvak@gmail.com>
2021-10-25 13:40:50 +03:00
Alexander Krivonosov
e8fb5d3241
Fix message validation (#957) 2021-10-11 13:33:55 +03:00
Alexander Krivonosov
fe0294798c
Update Filters.tsx (#913) 2021-09-29 12:25:17 +03:00
Alexander Krivonosov
315b6ed6d5
Use json-schema-faker and ajv (#883) 2021-09-16 13:53:31 +03:00
Alexander Krivonosov
de245e8cc7
Fix redirect after the topic deletion (#842)
* Implement event canceling

* remove unnecessary API call

* Remove the codesmell
2021-09-02 11:16:24 +03:00
Alexander Krivonosov
de33c13dc8
Redirect right after a message is sent (#831) 2021-08-30 12:50:42 +03:00
Alexander Krivonosov
5302c3e47f
Fix the redirect after topic deletion (#820)
* Move redirect to a hook
2021-08-27 11:29:51 +03:00
Marsel
5c563de4f1
Issue#727 disable deleting (#768)
* broker config refactoring and adding broker config check before topic deletion

* add TOPIC_DELETION feature, refactor KafkaService, add class for constants (Constants.java)

* annotation fixes and change TOPIC_DELETION check

* [issue-727] Disable delete button for a topic if deletion in restricted for this broker #727

* Rewrite to context

* remove code smells

* small fixes

Co-authored-by: marselakhmetov <makhmetov@provectus.com>
Co-authored-by: mbovtryuk <mbovtryuk@provectus.com>
Co-authored-by: Alexander <mr.afigitelniychuvak@gmail.com>
2021-08-25 09:43:55 +03:00
Alexander Krivonosov
eaf77c49a2
Fix topic form (#767) 2021-08-23 08:49:15 +03:00
German Osin
18f5e1a2b2
Switched messages endpoint to provide sse with phases & consuming info (#645)
* Switched messages endpoint to provide sse with phases & consuming info

* Switched messages endpoint to provide sse with phases & consuming info

* fixed comments

* Fixed comparator

* Fixed tests

* Reduced images size

* Feature/sse for messages (#681)

* [#645] SSE. Cleanup Topic Messages

* New messages page

* Update outdated snapshots

* Specs

* Specs

* Fixed build

* Fixed possible npe in update cluster on init stage

* Provided additional information with messages #677 (to messages_sse branch) (#700)

* Provided additional information with messages #677

* Sse messages front (#725)

* SSE. Messages page

* Fix handleNextClick

* Add the page loader to the list of messages

Co-authored-by: Alexander <mr.afigitelniychuvak@gmail.com>

* Fix merge errors

* fix conflicts

Co-authored-by: Timur Davletov <tdavletov@provectus.com>
Co-authored-by: Oleg Shur <workshur@gmail.com>
Co-authored-by: Alexander <mr.afigitelniychuvak@gmail.com>
2021-08-04 16:30:00 +03:00
Alexander Krivonosov
a9d659642e
Update SendMessage.tsx (#745) 2021-07-30 14:46:45 +03:00
Alexander Krivonosov
ad8598a1d2
Sending messages (#675)
* Implement message sending
2021-07-29 10:26:40 +03:00
Alexander Krivonosov
38e1d12452
Add clean up policy to the topic overview (#718) 2021-07-26 23:13:31 +03:00
Alexander Krivonosov
8da350ea38
Allow increasing the number of partitions and updating of the replication factor (#544) 2021-07-24 18:00:29 +03:00
MBovtriukProvectus
c035f58f5a
Review all tables and unify the way of data displaying. #602 (#687) 2021-07-19 12:11:53 +03:00
Alexander Krivonosov
587e08ab01
Update TopicConsumerGroups.tsx (#672) 2021-07-13 18:53:05 +03:00
Oleg Shur
bf6dd6c91b
Fix topic messages (#664) 2021-07-12 13:58:12 +03:00
German Osin
13463fe95f
Refactor consumer groups requests (#636)
* Refactor consumer groups requests

* Fixed offsets tests

* Moved state enum to separate class

* Adjust frontend for the new API

Co-authored-by: Alexander <mr.afigitelniychuvak@gmail.com>
2021-07-09 15:55:43 +03:00
Ilya Kuramshin
dd19cc2eec
Msg sending improvements (#640)
* init

* Messages sending fixes & tests

* Messages sending fixes & tests

* Messages sending json test added

* PR comments fixes

* Setting getTopicMessages & sendTopicMessage key value type to string.

* admin-client-timeout default removed

* sonar fix

* messages filtering changes to String.contains

Co-authored-by: Ilya Kuramshin <ikuramshin@provectus.com>
2021-07-09 15:53:30 +03:00
Oleg Shur
98c55180c6
Bump packages (#590) 2021-06-28 11:48:03 +03:00
Alexander Krivonosov
57a4125c71
Properly display the list of topic consumers (#585) 2021-06-28 08:54:07 +03:00
Oleg Shuralev
80581f6288
Linting 2021-06-25 15:34:23 +03:00
Alexander Krivonosov
53aec4d8c6
Reverse topic messages (#528)
* Add SeekDirection to the GET topic messages request

* Implement toggle for the direction of the messages
2021-06-25 15:21:01 +03:00
dwikov
96f2072eae
Changed ConsumerGroups in the topics folder (with its spec file and container) to TopicConsumerGroups (#572) 2021-06-21 16:16:49 +03:00
Oleg Shur
2cb9b30090
Update node to v14.17.1 + deps (#559) 2021-06-16 19:14:16 +03:00
MBovtriukProvectus
acdcf2eab6
Clear messages should not be present when in readonly mode #481 (#494)
* Clear messages should not be present when in readonly mode #481

* Clear messages should not be present when in readonly mode #481
2021-05-24 22:40:17 +03:00
MBovtriukProvectus
1377e02fcb
The key of the message is not visible / accessible #377 (#477)
* The key of the message is not visible / accessible #377

* The key of the message is not visible / accessible #377
2021-05-20 12:56:02 +03:00
Alexander Krivonosov
7801c292af
Message truncation (#457)
* Implement message truncation
2021-05-18 10:05:25 +03:00
TEDMykhailo
5d65967bc6
WIP: [issues#121] Topic Details: Display consumers (#448)
* [issues#121] Topic Details: Display consumers

* [issues#121] Topic Details: Display consumers

* [issues#121] Topic Details: Display consumers

* [issues#121] Topic Details: Display consumers

* [issues#121] Topic Details: Display consumers

* [issues#121] Topic Details: Display consumers

Co-authored-by: mbovtryuk <mbovtryuk@provectus.com>
2021-05-14 10:23:04 +03:00
Alexander Krivonosov
b60ff8acf6
Fix linter (#452) 2021-05-12 21:10:38 +03:00
Alexander Krivonosov
98fcc90c6b
Topics' filtration (#405)
* Implement topics' filtration
2021-05-12 16:34:24 +03:00