Commit graph

747 commits

Author SHA1 Message Date
David Bejanyan
da3932e342
FE: Impl a possibility to opt out of version check (#3672) 2023-04-27 06:01:38 +04:00
Roman Zabaluev
4e25522078
FE: Display message key/value serdes (#3718)
Co-authored-by: davitbejanyan <dbejanyan@provectus.com>
2023-04-27 05:59:37 +04:00
Winnie Chiu
5efb380c42
FE: Make it possible to not close message produce pane upon producing (#2854)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: David <58771979+David-DB88@users.noreply.github.com>
Co-authored-by: davitbejanyan <dbejanyan@provectus.com>
2023-04-26 08:19:41 +04:00
blacktower88
0278700edb
FE: Topics: Remove a success message upon creating a topic (#3580)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: VladSenyuta <vlad.senyuta@gmail.com>
2023-04-24 16:15:09 +04:00
David Bejanyan
ad9d7dec2c
FE: Topics: Fix redirect to Topics on topic delete (#3687)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2023-04-24 11:19:18 +00:00
David Bejanyan
1b2827fb2f
FE: Add KC quick actions into the sandwich menu (#3660)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2023-04-24 10:50:08 +00:00
David Bejanyan
aed6c16496
FE: Chore: Fix TSC error on submit callback type (#3699) 2023-04-21 17:58:11 +04:00
Nisan Ohana
734d4ccdf7
FE: Allow sorting consumer groups by topic num (#3633)
Signed-off-by: nisanohana3 <nisana230@gmail.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2023-04-20 17:13:05 +00:00
Roman Zabaluev
8783da313f
FE: Fix topic messages Invalid size for null key/value messages (#3689) 2023-04-20 11:18:34 +00:00
a1tair6
814035e254
FE: RBAC: Fix missing permissions for topic recreation (#3457)
* fix missing permission for recreate topic

Co-authored-by: jay-choe <jay0764@naver.com>
Co-authored-by: p-eye <peyed3@gmail.com>

* fix unnecessary permission

* add disable attribute, ActionDropdownItem

* remove dropdownitem lib

* fix eslint by #3080

---------

Co-authored-by: jay-choe <jay0764@naver.com>
Co-authored-by: p-eye <peyed3@gmail.com>
2023-04-17 14:57:37 +04:00
Michal Češek
0f5a9d7a63
FE: KSQL: Implement sorting (#3433)
* Resolves #3171 - enable ksql tables, streams sorting

* enable ksql tables, streams sorting
- make memoized onSortingChange, onPaginationChange depend on location

* fix linting

* edit Table.tsx imports

* fix linting

---------

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2023-04-14 12:43:03 +04:00
David Bejanyan
696cde7dcc
FE: Mark serde-failed messages with red (#3081)
* Marked serde-failed messages with red

* added styles on icon position

* added icon for the Key and Value

* changed warning icon position

* changed warning icon and data cell style

* added Ellipsis component

* refactor Ellipsis.tsx

* resolved conflicts

---------

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: Oleg Shur <workshur@gmail.com>
2023-04-13 20:03:43 +04:00
Roman Zabaluev
c148f112a4
FE: Fix config param source nullability (#3661) 2023-04-13 11:57:40 +04:00
Nail Badiullin
98f1f6ebcd
FE: Consumers: Topic list: Implement sorting (#3621)
* improvement/consumer-topics-sort implement consumer topics sorting

* improvement/consumer-topics-sort update typings after review
2023-04-13 11:14:00 +04:00
Nail Badiullin
89019dae19
FE: Implement a warning for duplicated filter (#3608)
* bugfix/messages-filter-dupes add validation for existing filter

* bugfix/messages-filter-dupes replace `current` with `same` in alert message
2023-04-13 11:12:41 +04:00
Nail Badiullin
29f49b667d
FE: Fix messages 404 with schema created by .NET containing guid (#3592) 2023-04-13 11:10:59 +04:00
David Bejanyan
005e74f248
FE: Format field previews one per line (#3623)
* new properties are added on a new line

* added test cases for key and Value Preview filters

* upd produceMessageCheck

---------

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: VladSenyuta <vlad.senyuta@gmail.com>
2023-04-10 19:35:14 +04:00
Hrant Abrahamyan
94da2f4e7f
[FE] SR: Display a warning in case of invalid syntax (#2599)
* No warning about filling the invalid data in case of editing the Schema / Producing the Message

* fixed test errors

* pull master

* fixed test problems

* use isJsonObject for validation

* fixed protobuf format bug

* fix setNewSchemaValue()

* test commit

* fix BaseTest

* upd global

* upd global

* upd global

* add local browser VM option

* fix TopicsList column header locator

* fix withStartupTimeout()

* switch e2e to TestNG

* upd pom

* upd page classes

* upd -pl kafka-ui-e2e-checks

* test commit

* Revert "test commit"

This reverts commit 4b505321ac.

* fix workflow module

* upd test -f 'kafka-ui-e2e-checks'

* crt firstCase

* upd QaseUtils

* add -Dsuite

* add -Dsuite

* add -Dsuite

* add -Dsuite

* add isSuiteEnabled

* add isSuiteEnabled

* upd workflow

* upd readMe

* upd readMe

* upd readMe

* upd qaseSetup

* upd qaseSetup

* add schedule

* add schedule

* upd suites

* upd suites

* upd suites

* upd json input

* upd onTestStart

* Revert "fix setNewSchemaValue()"

This reverts commit 67d12d1134.

* resolve conflicts

* upd localWebDriver

* added error message

* added ability to check Valid Enum

* swapped key Serde and Value Serde

* replace 'e' with 'enum', also added test cases

---------

Co-authored-by: VladSenyuta <vlad.senyuta@gmail.com>
Co-authored-by: Vlad Senyuta <66071557+VladSenyuta@users.noreply.github.com>
Co-authored-by: davitbejanyan <dbejanyan@provectus.com>
Co-authored-by: David <58771979+David-DB88@users.noreply.github.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2023-04-10 15:53:31 +04:00
Nail Badiullin
83f9432569
[FE] Messages filtering by offset & timestamp doesn't work (#3582) 2023-04-10 13:08:26 +04:00
David Bejanyan
a3daa45ccb
Display smart filters filtered stats #2680 (#3408)
* added  filterApplyErrors
* resoled show errors and message event type
---------

Co-authored-by: Oleg Shur <workshur@gmail.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: Ilya Kuramshin <iliax@proton.me>
2023-04-06 19:37:49 +04:00
David Bejanyan
ca225440d8
[FE] Get rid of "Topic analysis successfully started" message (#3628) 2023-04-06 18:21:24 +04:00
Shubham Jain
1bcdec4acc
FE: Add Search By consumer name in Topic View (#3089) 2023-04-04 07:51:38 +04:00
David Bejanyan
e3ee4c7fa7
FE: Redirect the user to the wizard page if no clusters (#3481)
* Redirect the user to the wizard page if no clusters

* added test case

* changed test case for redirect to new cluster config page

* replaced mockedUsedNavigate with mockedNavigate

* added ability to show dashboard if clicking on it

---------

Co-authored-by: Oleg Shur <workshur@gmail.com>
2023-04-04 07:49:05 +04:00
Nail Badiullin
0ff7e63386
FE: AirGap: Remove internet dependency / google fonts (#3602)
* improvement/offline-fonts remove google fonts, add local fonts with font-face

* improvement/offline-fonts add font-display rule

* improvement/offline-fonts fix fonts path resolving
2023-04-03 18:52:14 +04:00
olondar
de21721e00
FE: Fix Edit config: Selected text background color is transparent (#3601)
* Update Editor.tsx

reassigning the background

* Update EditorViewer.styled.ts

* Update EditorViewer.styled.ts

changed the code to meet the requirements of the owner

Closes #3576
2023-04-03 09:10:14 +04:00
Carlos Díaz
c9488422c2
FE: Fix dummy field in saved JSON message content (#3567) 2023-04-03 08:50:25 +04:00
Nail Badiullin
ecc8db1948
FE: Fix HTTP 400 for clusters with special symbols (#3591) 2023-04-03 08:47:39 +04:00
David
866966a638
[FE] Chore: Rename a property to make sonar happy (#3578) 2023-04-03 08:43:45 +04:00
Nisan Ohana
d06f77ad53
Allow sorting consumer groups by messages behind (#3527)
* Allow sorting consumer groups by messages behind
* Added an additional value through the enum of ConsumerGroupOrdering
* Enabled sorting in the react consumer groups page (by messages behind)
* Moved the message behind calculation logic to InternalConsumerGroup as part of its creation
* Added the messages behind case - sorting internalConsumerGroup according to comparator with messages behind logic

Co-authored-by: Yarden Shoham <hrsi88@gmail.com>
Signed-off-by: nisanohana3 <nisana230@gmail.com>
2023-03-30 11:45:36 +04:00
Poalry
bfb80f36b3
Fix invalid font color for 404 w/ dark theme (#3579)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2023-03-30 10:27:39 +04:00
Nail Badiullin
15b78c0a2e
FE: Fix topics unchecking w/ "Show Internal Topics" (#3585)
* bugfix/topics-selection remove selection reset useEffect, reseting only on pageChange

* bugfix/topics-selection implement rowId getter

* bugfix/topics-selection remove quotes from row name property for id generation
2023-03-30 10:22:28 +04:00
Nail Badiullin
ef0dacb0c3
[FE] Fix timestamp filter & partitions selection (#3569) 2023-03-28 16:45:42 +04:00
David
4623f8d7b8
[FE] Update display of key/value serdes in messages (#3543)
* added key format and value format

* comented some test cases

* comented some test cases

* changed test cases

* changed test cases

* swapped key Serde and Value Serde
2023-03-28 16:13:28 +04:00
Nail Badiullin
9f1a4df0a1
[FE] Add missing schema name upon edit (#3561) 2023-03-27 22:24:41 +04:00
p-eye
7e040818a4
[FE] Add RBAC actions for copy topic button (#3549)
* enable 'Copy Selected Topic' button when action is Action.CREATE
Co-authored-by: jay-choe <jay0764@naver.com>
Co-authored-by: a1tair6 <sweetyfam6@gmail.com>

* fix lint: remove unused imports

Co-authored-by: jay-choe <jay0764@naver.com>
Co-authored-by: a1tair6 <sweetyfam6@gmail.com>

---------

Co-authored-by: jay-choe <jay0764@naver.com>
Co-authored-by: a1tair6 <sweetyfam6@gmail.com>
2023-03-27 21:51:15 +04:00
Nail Badiullin
dc08701246
improvement/config-save-spinner add spinner for submit button (#3551)
* improvement/config-save-spinner add spinner for submit button

* improvement/config-save-spinner add Spinner component to common, update spinner usage

* improvement/config-save-spinner remove unused props for spinner component

* improvement/config-save-spinner add defaultProps, refactor props definition

* improvement/config-save-spinner disable button on inProgress prop

---------

Co-authored-by: Oleg Shur <workshur@gmail.com>
2023-03-27 17:13:18 +03:00
Nail Badiullin
deb3dba29e
FE: bugfix/wizard form validation (#3526)
* add the parameter to trigger() call for focusing first failed input
* refactor Select component to React.forwardRef for focusing purposes
2023-03-27 15:00:33 +04:00
Oleg Shur
8d3bac8834
[FE} Refactor Consumers Section (#3508)
* refactor CG List & details page

* Refactor ResetOffset page

* get rid of redux reducer
2023-03-23 19:40:12 +04:00
Oleg Shur
84d3b329ba
Migrate KSQL to RQ. Get rid of redux reducer (#3478)
* Migrate KSQL to RQ. Get rid of redux reducer

* refactor react-ace using

* get rid of deadcode

* ace

* Fix add/remove stream props

* ace

* Fix Clear result handler

* Fix error handler

* rollback removal of yup async validation helper

* reduce re-renders

* move ace to separate chunk

* upd KsqlQueryForm

* feedback

---------

Co-authored-by: VladSenyuta <vlad.senyuta@gmail.com>
2023-03-23 16:36:29 +03:00
Oleg Shur
4d03802a5d
[FE] bypass key & value serde null cases (#3500) 2023-03-15 17:53:57 +04:00
David
5cdd44daee
[FE] Fix updating message count upon clearing messages (#3080)
* in a function clearTopicMessagesHandler added invalidateQueries

* changed redux Topic messages clear with react query call

* changed redux Topic messages clear with react query call on Overview/ActionCell.tsx

* show on alert deleted item

* added s on variable clearMessage

* removed clearTopicMessages action from redux and replace functionality with hook useClearTopicMessages

---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>
2023-03-15 13:47:58 +04:00
David
1117b296a7
UI: Implement a dark theme (#2996)
---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>
Co-authored-by: Mgrdich <mgotm13@gmail.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: VladSenyuta <vlad.senyuta@gmail.com>
Co-authored-by: Vlad Senyuta <66071557+VladSenyuta@users.noreply.github.com>
Co-authored-by: Oleg Shur <workshur@gmail.com>
2023-03-14 22:03:05 +04:00
Victoria Salova
f51da4bb61
[FE] Fix "Saved filters" invalid font (#3412)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2023-03-14 16:49:40 +04:00
David
4a7893ff1b
[FE] Fix consumers topic label position (#3383)
* change Consumers Topic lable position

* changed conditional padding row with typeScript

* removed table title style from theme, changed TableHeaderConsumerCell style

* changed consumers Table Header Cell and test cases

* refactor ListItem.spec.tsx

* removed data test id

---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>
2023-03-14 16:43:17 +04:00
Oleg Shur
c153d6f634
get rid of Husky pre-commit hooks (#3480) 2023-03-10 16:45:37 +03:00
Winnie Chiu
76fbaa7ead
[FE] Replace "all clusters offline" message (#2773)
* Add message about not existing offline clusters in Dashboard (#2707)

* Review fix

* Review fixes

---------

Co-authored-by: Winnie Chiu <113582273+winnie-chiu@users.noreply.github.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2023-03-09 22:59:59 +04:00
David
e72f6d6d5d
Feature: Cluster web configuration wizard (#3241)
* created wizard

* Create wizard form schema

* Wizard kafka cluster form (#3245)

* created wizard Kafka Cluster form

* created error message

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>

* Update schema.ts

* Wizard authentication (#3268)

* created authentication form

* changed SaslType.tsx switch case

* remove console.log

* commented unused variables

* auth validation

* auth Security Protocol

* changed schema.ts username, password

* added Delegation tokens validation schema

* changed auth form

---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>

* New Dashboard flow. Add an ability to configure clusters

* wizard kafka cluster validate (#3294)

* kafka cluster validate

* fixed  bootstrap server uncontrolled input  warning error

---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>

* Wizard schema registry (#3286)

* created schema registry

* unused variables

* Prevent Default on click

---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>

* feat: cleanup

* Application config API (#3242)

* wip

* wip

* wip

* wip

* OAuthProperties added to dynamic config api

* wip

* files upload endpoint added

* rbac conf api added

* rbac conf api improvements

* App configuration validation endpoint (#3264)

Co-authored-by: iliax <ikuramshin@provectus.com>

---------

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

* add app config api client

* refactor cluster section

* refactor cluster section

* linting

* refactor Registry Form (#3311)

* refactor Registry Form

* refactor Registry

---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>

* auth form improvements

* refactoring

* linting

* file upload API changes

* Auth

* Start connecting to schema & payload

* Auth

* fileupload

* Wizard JMX Metrics form (#3303)

* created JMX Metrics form

* refactor JMXMetrics.tsx styles

* added cursor on checkbox, changed styles submit button

* refactor Metrics

* refactoring

* uncomment schema connect validation

---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>

* validate api

* refactor

* Wizard Kafka Connect form (#3300)

* created Kafka Connect form

* renaming functions and variables

* refactor

* changed button name

* refactoring kafka connect

* made handler function, reset replace with set value,

* refactoring

* uncomment schema metrics validation

---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>

* fixing AdminClient validation

* fixing AdminClient validation

* refactor kafka connect

* refactor metrics

* Per-cluster SSL verification settings (#3336)

* ssl configuration moved to app & cluster level

* documentations changes

* trust all removed, global app settings removed

* extracting ssl properties settings to SslPropertiesUtil

* wip

* documentation fix

---------

Co-authored-by: iliax <ikuramshin@provectus.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>

* SSL properties NPE fixes

* api integration

* custom fields for existing auth config

* OffsetsResetServiceTest fix

* cluster.properties structure flattening added

* kafka-ssl.yml: ssl properties moved to separate section, producer ssl properties copy added

* custom auth

* error messaging

* form submit

* feedback

* 1. defaulting metrics type to JMX
2. AdminClient id generation made uniq

* checkstyle fix

* checkstyle fix

* refactoring

* feedback

* feedback

* feedback

* feedback

* feedback

* feedback

* Wizard: Application info API (#3391)

* Application info API added, cluster features enum renamed to `ClusterFeature`

* show config for specific envs only

* refactor widget

* Cluster connection validation err msg improved

* KSQL DB section

* Refactor + deps upgrade

* experiment: get rid of babel

* BE validations refactoring

* Update kafka-ui.yaml

fixed to string type param

* fixes #3397

* linting

* #3399 adjust size of port input

* disable selects for disabled form

* Wizard: Keystore separation (#3425)

* wip

* wip

* compose fix

* dto structure fix

---------

Co-authored-by: iliax <ikuramshin@provectus.com>

* dynamic ops enablement properties improvements

* own keystore for each section

* linting

* fix keystore submit

* fix keystore submit

* feedback

* feedback

* refactoring

* Connect config userName field renamed

* metrics configs mapping fix

* feedback

* Wizard: Jmx ssl (#3448)

JMX SSL implementation. Added ability to set specific ssl keystore for each cluster when connection to jmx endpoint.

* Review fixes

* upd compareVersionsOperation qase id

* add toBeAutomated into manual suite

* DYNAMIC_CONFIG_ENABLED property description added

* Resolve conflicts

* Fix issue with 400 error

* fix SR edit form

---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>
Co-authored-by: Alexander Krivonosov <31561808+GneyHabub@users.noreply.github.com>
Co-authored-by: Oleg Shur <workshur@gmail.com>
Co-authored-by: Ilya Kuramshin <iliax@proton.me>
Co-authored-by: iliax <ikuramshin@provectus.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: bkhakimov <bkhakimov@provectus.com>
Co-authored-by: Mgrdich <mgotm13@gmail.com>
Co-authored-by: VladSenyuta <vlad.senyuta@gmail.com>
2023-03-09 19:36:49 +04:00
kristi-dev
e261143bb4
[FE] Fix oldest first button overlaps the Submit button (#3005)
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
2023-03-07 10:39:15 +04:00
David
be151b4d82
[FE] Add a warning when copying to clipboard in non-SSL envs (#3394)
* set a warning message on copyToClipboard if user use http

* Update kafka-ui-react-app/src/lib/hooks/useDataSaver.ts

* changed custom type whit warning

* added  warning title

* added test case for warning message

---------

Co-authored-by: davitbejanyan <dbejanyan@provectus.com>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: Oleg Shur <workshur@gmail.com>
2023-03-07 10:36:52 +04:00
Snowfox0618
18c046af5b
[FE] Fix number of partitions field validation issue (#3400)
* Now user can only input valid digits, and '-' is not allowed in positive-only inputs.

* Fix ISSUE#3319

Now user can only input valid digits, and '-' is not allowed in positive-only inputs.

* Revert "Fix ISSUE#3319"

This reverts commit a4e34f5af3.

* Fix ISSUE#3319
Created a helper function, and added a unit test to cover it.

* Fix ISSUE#3319
Located the helper function outside the component, and renamed some unit tests to make their meaning more clear.

* Fix ISSUE#3319
- Added an attribute 'integerOnly' to component 'Input', to represent whether this input component instance will accept decimal.
- Improved input-check function and paste-check function, to avoid invalid number format (like '3-3', '3.3.3').
- Added new unit tests to test new input-check and paste-check functions.
- Added attribute 'integerOnly' to Input instances in the TopicForm component.
2023-03-06 12:50:58 +04:00