* 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>
* 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>
* Upgarde to Vite v4
* Fix warnings
* resolved validateDOMNesting(...) warning also remove act from PreviewModal.spec.tsx
* Revert "resolved validateDOMNesting(...) warning also remove act from PreviewModal.spec.tsx"
This reverts commit f24660918f.
Co-authored-by: davitbejanyan <dbejanyan@provectus.com>
* Role based access control
* Fix build + checkstyle
* Refactoring, some bug fixes, review fixes
* Compile permission value patterns
* Make the resource a enum instead of a string
* Refactoring
* Make clusters required
* Fix formatting
* switch the switch case to a smart switch case
* Get rid of topic analysis actions
* Rename endpoints, fix an issue
* Return a flag indicating if rbac is on and a username
* Fix yaml indent in editorconfig
* Fix github & cognito role name fetching
* Fix case matching for actions
* Update readme
* Add an endpoint to determine if a user can create a resource
* Fix tests (I hope so)
* Fix tests
* Use spring configs instead of a separate file, rename endpoints
* Add "ALL" action
Get rid of unnecessary cache, save groups into spring auth
Review fixes
* Make "all" action case-insensitive
* Role based access control / FrontEnd (#2933)
* Initial modifications and mocking the For the RoleAccess
* fix the Suspense issue in the components , comment the Tests to implement later
* minor test comment
* Roles and configuration and santization of data
* initialize RoleCheck hook
* make the App test file visible + minor modification in the permission hook
* Structure the data so the Burger header toggle does not rerender the whole application
* add tests to the NavBar and the Page container , add tests
* NavBar and PageContainer bug fixes
* Roles Testing code modification
* covering Topics create button Actions, and Schema create button Actions
* minor typescript code modifications for the cluster required parameter in the rolesHelper
* minor typescript code modifications for the cluster required parameter in the rolesHelper
* minor code modification to describe the Permission tests more clearly
* Produce message Permissions with Tests Suites for Topic
* Add Schema Edit Permission with tests
* Minor role changes
* Add ActionButton Component to handle the Button with tooltip
* Add ActionButton Component to handle the Button with tooltip
* Add Action Button to every Button create Action
* ActionButton add test suites
* usePermission code modification to include regular expressions
* Abstract Actions Component for code repetition, add Configs Edit button Permission + add the tests suites to it.
* Schema Remove functionality Permission and Test Suites + creation of the ActionDropdownItem for Actions
* Topic Edit Clear and delete Topic , Permissions with test suites
* ActionsCell For Topic Message Overview for permissions with tests suites
* Connector Delete , Consumer Groups Permission + writing test suites
* Add Permissions to the Topics ActionCell
* Topic Table Permissions Tests Suites
* Headless Logic for the Permission Part
* add documentation for the headless Part of the permission + add modification of the data version 2 for efficient algorithmic lookup
* replace modify data logic and isPermitted function to have faster access to the data
* Add Permission helpers tests suites
* usePermission hook test suites
* BatchActionsBar add Permissions + minor modification in TopicTable tests suites
* Statistics and Metrics code Permission + add test suites
* Recreate Topic Permissions in the Topic page, add tests suites
* Actions for the Connector components
* Messages NavLink View Permission
* Test suites messages code modifications
* Permissions comment code modifications
* Replacing the Mock Data With the actual code
* Add ActionNavLink test suites
* BatchActionsBar code smell modifications
* maximizing the permissions tests suites
* maximizing the permissions tests suites
* maximizing the permissions tests suites
* Tooltip code refactoring and fix the positions issue
* permissions increase the tests coverage
* add user info at the navigation header and tests suites
* Add Global Schema Selector Permissions with test suites
* Roles minor code removal
* Change the Action Component form hook mixin approach to declarative props approach
* add isPermitted function for multiple Actions , adding tests suites for this particular case
* remove redundant Permissions test blocks from the components
* remove redundant Permissions test blocks from the components
* Action Buttons test suites' coverage + generalizing the code of the Actions
* add invalid Permission check in Action Components tests suites
* Modularization of Actions Components
* Modularization of Actions Components by adding DropDownAction to it.
* Reflect the BE Changes to the UI , by changing the default behavior or the testing of roles.
* Reflect the BE Changes to the UI , by changing the default behavior or the testing of roles.
* Get rid of not necessary usePermission mocks
* Modifications in the UserInfo data , to consider the UI without any login functionality
* minor code modifications in the BatchActionBar component
* change the Query key for the user info
* change the default message for the tooltip
* Fix the Create Role Access for Topics and Schemas
* ListPage Connector create permissions
* add Headless logic for Create Permission with test suites. + add react hook render-er
* Create Button ActionButton logic implementation
* Remove Code smells , by removing the duplications
* increase the test suites for isPermittedToCreate logic
* increase the test suites for isPermittedToCreate logic
* Change the UserResourceType Enum with the new value
* Apply New Resource Creation validation, for Topic, Schema, Connector
* Apply New Resource Creation validation, for Topic, Schema, Connector
* minor code refactor modifications
* minor code modification in the topics useCreate hook
* Async Validation for all the Create Pages
* caching test for optimal performance in async validation schemas
* Reverting the Front End Validation
* Reverting the Front End Validation
* Authorization API minor syntax modifications
* fix SmokeTests
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
Co-authored-by: VladSenyuta <vlad.senyuta@gmail.com>
Co-authored-by: Mgrdich <46796009+Mgrdich@users.noreply.github.com>
Co-authored-by: VladSenyuta <vlad.senyuta@gmail.com>
* Migrate Dashboard table to the new version on table components #2682
* Added universal component to the column section and added part of test #2682
* Added universal component for the all new tables in project #2682
* deleted color argument on LinkCell component
* deleted link on topic count
Co-authored-by: davitbejanyan <dbejanyan@provectus.com>
* remove withRouter HOC from FiltersContainer
* remove withRouter HOC from Topics DetailsContainer
* remove withRouter HOC from Topics TopicsConsumerGroupsContainer
* withRouter HOC from Topics TopicsConsumerGroupsContainer
* minor code refactor in the Details spec
* Routes code modifications to refactor strings representation to functions
* Settings and TopicsConsumer removal of HOC with Router
* Remove withRouter HOC from Overview file
* Remove withRouter HOC from Edit file
* replace Router path with functions instead of strings
* delete CustomParamsContainer and use the simple component in the TopicForm
* remove HOC from DangerZone container
* Remove withRouter HOC from Connect pages like Config , Overview , Tasks
* Remove withRouter HOC from Connect pages like Actions, Details, Edit, New
* Refactor Kafka Connect Codes
* Refactor Topics pages
* Remove HOC from Diff component and minor code refactor
* Route component migration into children instead of renderProps or component param in App Component
* Route component migration into children instead of renderProps or component param in Cluster Component
* Route component migration into children instead of renderProps or component param in Topics Component
* Route component migration into children instead of renderProps or component param in Topic Component
* Route component migration into children instead of renderProps or component param in Topic Component
* minor bug fix in the Overview selector spread
* change Router from component Render to child render
in ConsumerGroups page
* change Router from component Render to child render
in Schemas page
* change Router from component Render to child render
in KsqlDb page
* change Router from component Render to child render
in Connect page
* change Router from component Render to child render
in Connect Details page
* Overview Details styling code modifications
* All written path to paths with functions
* Route Parameters code fix with functions and params with variables
* Updating BreadCrumb Route
* Refactor Redirects
* WIP React Router v6 migration
* Remove unused imports from the file
* Make KsqlDb pages work with relative Routes
* WIP Make Connect pages work and fix the Schema page testing problem
* transforming consumer groups into relative path router
* Transform Topics pages into relative routes
* Transform Topic pages into relative routes
* Minor changes in Connect and KsqlDb test suites relative routes
* Minor changes in Connect and KsqlDb test suites relative routes
* change the Details into relative Routes
* Topics List naviagtion and caching issue fixed in tests suites
* Topic New Naviagation issue fix + tests suites
* Details navigate migrating into relative paths
* Send Message Submit Naviagttion with tests suites
* Topic Edit pages with working routes navigation
* Topic Details and ResetOffsets Pages tests suites and navigations
* Messages Table Tests suites
* BreadCrumbs Routes fixes
* ClusterMenu and Links styling minor code modifications
* ClusterMenu and Links styling minor code modifications
* Minor Code modifications
* Fix Lintter Problems
* fix Code Smells
* create custom useParams hook
* Adding Path tests
* minor code refactors
* Fix the Button Component redundant Props + transforming routes to relative
* Fix linter issues
* Removed two enzyme test with testing-library tests
* Got rid of enzyme and wrapper in List.spec.tsx
* Got rid of enzyme and wrapper in ListItem.spec.tsx
* Got rid of enzyme and wrapper in BytesFormatted.spec.tsx
* Got rid of enzyme and wrapper in ConfirmationModal.spec.tsx
* Got rid of enzyme and wrapper in Tabs.spec.tsx
* Got rid of enzyme and wrapper in Actions.spec.tsx
* Got rid of enzyme and wrapper in ListItem.spec.tsx
* Got rid of enzyme and wrapper in FiltersContainer.spec.tsx
* Got rid of enzyme and wrapper in ListItem.spec.tsx
* Got rid of Enzyme in a two more files
* Got rid of Enzyme in testHelpers.tsx
* Got rid of snapshots
* Three wrappers replaced with render from testHelpers
* Testing id replaced
* Fixed linter warnings
* Got rid of testIds
* Got rid of unnecessary containers and ...queryBy functions
* Got rid of dublicated ...getByRole functions
* Got rid of dublicated more than two times ...getByText functions
* Got rid of unused imports
* Got rid of unused import
* Desciptions fixed
* Got rid of providers
* Got rid of unused imports
* package-lock.json reverted
* Refactor Actions component specs
* Get rid of TestRouterWrapper
* Refactor specs
* Refactor specs
* linting
Co-authored-by: k.morozov <k.morozov@ffin.ru>
Co-authored-by: lazzy-panda <grifx.design@gmail.com>
* Add Pagination to the ConsumerGroups Page
* Consumer Groups test suites minor code modifications
* Consumer Groups test Search results code
* Consumer Groups test Search with Api request
* Consumer Groups Search Logic
* Adding Consumer Groups Paged Reducer and action creator and get Selector logic
* Adding fetchConsumerGroupsPaged to the ConsumerGroups Paged
* Code refactoring and adding general fixtures For Consumer Group List
* Adding Container Redux Connect structure to the List of Consumer Groups
* Adding Selectors and action creators for orderBy and Sort Order
* Adding All Necessary components to render the smart Tables in Consumer Groups
* Adding SmartTable to the Consumer Groups page + fixing allSelectable Checkbox bug in the SmartTable Component
* Primitive Tests for ConsumerGroupsTableCells to test rendering and mockup the component and table data
* Finalizing Tests for consumer Groups table , minor code bug fix in the Consumer Groups table structure
* Adding Order By to the Consumer Groups Table , View part
* Adding order By to the Consumer Groups pages
* Adding order By to the Consumer Groups pages with SortBy functionality
* Code refactor in the ConsumerGroups component and its related tests
* Code refactor in the ConsumerGroups component and its related tests
* adding Tests in the Consumer Groups List
* Fixing the Sorting styling Bug in the Table order
* Adding additional Tests to the ConsumerGroups List tests
* Adding additional Tests for TableHeaderCell styled component
* Deleting obsolete codes from the consumer Groups Slice + minor table header test type fix
* Adding Tests for the consumerGroupSlice
* Adding Tests for the consumerGroupSlice
* Consumer Groups table minor code modifications
* Minor Code bug fixes in the SmartTable Component
* Revert "Issue-1184: fix logo link and remove redundant path segment "ui" (#1658)"
This reverts commit b08e22915d.
* changing them dashboard logo from an anchor tag to a react-router dom link
* Dashboard element redirect to the same place
* got rid of react-hooks/exhaustive-deps errors - part 1
* got rid of react-hooks/exhaustive-deps errors in useSearch
* got rid of react-hooks/exhaustive-deps errors in Filters
* got rid of react-hooks/exhaustive-deps errors in ResetOffsets
* got rid of react-hooks/exhaustive-deps errors in Filters
* got rid of react-hooks/exhaustive-deps errors in Breadcrumbs
* got rid of react-hooks/exhaustive-deps errors in DynamicTextButton
* got rid of react-hooks/exhaustive-deps errors in useDataSaver
* got rid of react-hooks/exhaustive-deps errors in ResultRenderer
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
* got rid of enzyme in Dropdown tests
* got rid of enzyme in DynamicTextButton tests
* got rid of enzyme in Search tests
* Revert "got rid of enzyme in Search tests"
This reverts commit cd2c5b10ab.
* got rid of enzyme in Search tests
* got rid of enzyme in SQLEditor tests
* got rid of enzyme in Connect tests
* got rid of enzyme in Connect/Details tests
* got rid of enzyme in Topics\Topic tests
* got rid of ThemeProvider in render function
* fixed redundant
* used userEvent instead of fireEvent
* fixed snapshot tests
* used screen
* rise testing-library approach
* got rid of snapshot in Search component test
* changed titles of Search component test
* fixed topics details test
* Get rid of direct use of colors map
* Edited direct using color map in styled component
* Resolved conflicts, refactored Dropdown component
* resolved feedback
* refactoring
Co-authored-by: Oleg Shur <workshur@gmail.com>
* 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>
* 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>