Commit graph

1664 commits

Author SHA1 Message Date
Ramazan Yapparov
a8ed4ff37f
#188 added pagination for get topics api (#249)
* added pagination for get topics api

* frontend fix

* - fixed merge conflicts
- renamed pageSize to perPage
2021-03-15 21:37:36 +03:00
German Osin
909e196011
Feature refactoring, structure simplifying (#250) 2021-03-15 17:41:25 +03:00
Ramazan Yapparov
881a2167b7
#211 Feature/clear topic messages (#241)
* added delete action

* added test for delete action

* added 404 status in contract

* fixed typo

* added partition parameter

* big refactoring
2021-03-15 11:51:33 +03:00
RustamGimadiev
29d11f529f fix ci for external PRs 2021-03-15 11:40:22 +03:00
Andor Markus
c91d6aad9f
Updating documentation for read only mode (#247)
Co-authored-by: andormarkus <andormarkus@marc-o-polo.com>
2021-03-12 11:54:28 +03:00
Rustam Gimadiev
6355bf3d69
skip/fix pipeline outputs 2021-03-12 10:30:42 +03:00
Rustam Gimadiev
08400b2fcf
Add latest build (#246) 2021-03-12 10:19:51 +03:00
Oleg Shur
1769a7a0fc
[CHORE] Schema Registry UI Improvements. Cleanup (#237)
* createSchema thunk throws an error for unsuccesfull response

* refactor PageLoader common component

* fix error on details page of schema reg section load

* refactor index page for schema reg

* refactoring

* Add cluster wrapper + cleanup
2021-03-11 15:22:03 +03:00
Alexander Krivonosov
1188ce9bc2
#219 ReadOnly flag (#231)
* Implement read-only flag logic

* Test new functionality
2021-03-11 12:00:46 +03:00
Ildar Almakaev
e02dd84491
#200 Update schema subject object (#229)
* Return id, version, schema, and subject after creating a new schema

* Throw 422 error code if incoming new schema is unprocessable entity due to invalid fields

* Return 409/Conflict error code if schema is duplicate. Change endpoint of createNewSchema method

* Fix submitting new subject or new version if the subject already exists

* Include schema type to schema objects. By default it's AVRO

* [ISSUE-200] Update FE to support new version of api

* Add one more schema-registry with version 5.5.0 to docker-compose files and app properties

* Upgrade Confluent service versions in tests up to 5.5.0

* Set schemaType is required and ignore when submitting to Schema Registry if it's NULL

Co-authored-by: Oleg Shuralev <workshur@gmail.com>
2021-03-10 15:14:15 +03:00
Alexander Krivonosov
1a215865ef
Testing common components (#225)
* Create tests for the Breadcrumb component

* Create tests for BytesFormatted component

* Create tests for the Indicator component

* Create tests for the MetricsWrapper component

* Create tests for the PageLoader component
2021-03-09 18:57:20 +03:00
German Osin
f3535d94ff
#143 Added Contribution guide (#233)
* Added Contribution guide

* Splited CoC
2021-03-09 17:52:42 +03:00
Ramazan Yapparov
58df6c1a7e
#222 Fix npe in consumer (#223)
* add null handling
* replaced hashmaps with immutable map in deserializer returns
* added simple test for previously failing case
2021-03-09 17:15:12 +03:00
German Osin
c00f21a3ba
Added License file (#232)
Closes #145
2021-03-09 17:06:32 +03:00
Ramazan Yapparov
e29ea3599d
updated confluent images versions to 5.2.4 (#226) 2021-03-09 16:53:06 +03:00
Ramazan Yapparov
a9cb9567d6
#224 added deleteTopic operation api (#228)
* added deleteTopic operation

* added not found response
2021-03-04 17:51:18 +03:00
Ramazan Yapparov
ae1acbce9b
added wrapping to mono (#227) 2021-03-04 17:24:56 +03:00
Oleg Shur
36a5bbf9b1
[CHORE] Add openapi-generator-cli to generate sources on FE side (#221)
* [CHORE] Add openapi generator to react app

* [CHORE] Use consistent config for gens in mvn & react app

* [CHORE] Update enums to follow new format

* [CHORE] Fix linter issue
2021-03-03 20:56:28 +03:00
Ramazan Yapparov
be96bbc381
Testcontainers speedup and stabilization (#220)
* - moved testcontainers lifecycle control back to singleton
- changed kafka connect container wait strategy from logs to http

* refactoring

* reduced startup timeout to 5 minutes
2021-03-03 13:08:51 +03:00
Ramazan Yapparov
73f8991517
#164 readonly mode (#218)
* added ReadOnlyModeFilter

* added tests

* refactored kafka connect and schema registry tests
2021-03-01 19:51:58 +03:00
DementevNikita
4eb690d782
Fix kafka-ui image name in docker-compose file (#210)
* Fix kafka-ui image name in docker-compose file

* fix docker image name in pom.xml docker build section

* fix indentation
2021-03-01 15:20:20 +03:00
Azat Mutigullin
715b0da3f8 Use getType in reducers 2021-02-28 22:41:19 +03:00
Guzel738
44cf449a8f
Create Schema Registry form (#209)
* First commit

* Create Schema Form. Refactoring

* Specs for Create Schema Registry form created

* Update thunks.spec.ts

* Update actions.spec.ts

Co-authored-by: Oleg Shuralev <workshur@gmail.com>
2021-02-28 22:39:09 +03:00
Ramazan Yapparov
377fa830c6
#163 Kafka connect crud (#182)
* - added kafka connect to docker-compose files
- added kafka connect property to application

* - added /connectors endpoint
- added /connectors/{name} endpoint

* - added /connectors/{name}/(restart/pause/resume) endpoints
- updated connector config model
- added FileStream connectors configs

* - added /connectors post endpoint

* - added all other kafka connect endpoints
- reverted config file

* - moved kafka connect related endpoints to separate tag/controller

* - added kafka connect container
- added simple test for kafka connect service
- added assertj dependency

* - added tests for KafkaConnectService

* - added more tests
- moved kafkaConnect rest client calls to separate class
- added validation

* - removed additional validation
- removed Client class
- removed client test and replaced with proper integration test
- added retries

* - cleanup

* moved to using generated kafka connect client

* updated rest schema

* added new maven clean plugin configuration so it deletes generated sources in kafka-ui-react-app/src directory

* changed restart/pause/resume action schema

* - added test
- refactoring

* added more error handling

* added more tests for error handling

* fixed schema registry tests

* changed /connect to /connects

* - fixed mutating connector object during getConnector request
- added new retrying kafka connect client with common retry logic
- fixed dependency scope

* - removed unnecessary `.cache()`

* - reverted testcontainers initialization code

* - added missing UNASSIGNED status to response enum

* - fixed configurations
- fixed testcontainers lifecycle management

* fixed application-local.yml
2021-02-26 15:48:04 +03:00
github-actions
655aa41a72 Increased version in pom.xml 2021-02-24 12:07:32 +00:00
Oleg Shur
3bc9447cc7
Schema Registry Views (#195)
* Schema Registry index page https://github.com/provectus/kafka-ui/pull/183

* Schema Registry show page https://github.com/provectus/kafka-ui/pull/196

* Specs https://github.com/provectus/kafka-ui/pull/208

* New JsonViewer common component
2021-02-24 15:05:05 +03:00
dengziming
2c95928607
MINOR: Add line-continuation to shell command (#204)
Co-authored-by: dengziming <dengziming@growingio.com>
2021-02-20 10:06:01 +03:00
Oleg Shur
8f63cf775e
[CHORE] Specs. Improvements (#202)
* [CHORE] Improve types

* [CHORE] Example of actions & thunks specs

* [CHORE] Example of reducer & selectors specs

* [CHORE] Update dependencies
2021-02-20 00:10:50 +03:00
Rustam Gimadiev
92c0332cb1
GitHub Actions jobs for testing (#184)
* added jobs for perform UI testing

* get rid of Jenkinsfile

* use unique match key for each job
2021-02-19 13:13:19 +03:00
Oleg Shur
b4a243f470
[Issue 191] Fix Cluster Widgets on dashboard (#201)
* [ISSUE-191] Update Bulma to 0.9.2

* [ISSUE-191] Add links to Cluster Widget

* [ISSUE-191] Cluster Widget improvements
2021-02-17 21:17:26 +03:00
Rustam Gimadiev
78a971193b
release jobs (#194) 2021-02-17 12:03:18 +03:00
Oleg Shur
6fb1d12355
[CHORE] Specs and Test env improvements (#198)
* [CHORE] Update dependencies

* [CHORE] Configure Test env. Add enzyme-to-json snapshot serializer

* [CHORE] Specs for Topic Messages component

* [CHORE] Mock Date-fns

* [CHORE] Refactor keys

* Run related tests on commit

* [CHORE] Stub date

Co-authored-by: Azat Mutigullin <mehemaul@gmail.com>
2021-02-16 14:16:03 +03:00
Ildar Almakaev
6ec516345e
Issue-181 Refactor schema CRUD API (#192)
* Rename attribute 'schemaName' to 'subject' for consistency with Schema Registry terms

* Refactor 'GET /schemas' and 'GET .../schemas/{subject}/versions' to get the latest schemas data at once

* Fix getting error code from attributes in our custom GlobalErrorWebExceptionHandler
2021-02-15 11:52:44 +03:00
German Osin
b9e92114e6
Fixed Zookeeper connecion leak (#185) 2021-02-11 17:37:59 +03:00
Oleg Shur
ddc784559d
Get rid of redundant enums (#186)
* [CHORE] Get rid of redundant ActionType enum

* [CHORE] Get rid of redundant FetchStatus enum

* [CHORE] Get rid of redundant CustomParamButtonType enum
2021-02-11 16:29:18 +03:00
Ildar Almakaev
ba4e1748ee
ISSUE-166 Pass ProtobufSchemaProvider to CachedSchemaRegistryClient to deserialize protobuf records (#178) 2021-02-10 22:28:32 +03:00
Rustam Gimadiev
40d85643bb
added workflow for github actions (#177) 2021-02-10 12:12:59 +03:00
Andor Markus
c49006d2c1
feature/adding_docker-compose_example (#173)
* Fixing docker documentation in README.md. Adding docker-compose.md to the documentation

* Fixing docker documentation in README.md. Adding docker-compose.md to the documentation

* Typo fix

Co-authored-by: andormarkus <andormarkus@marc-o-polo.com>
2021-02-09 11:30:30 +03:00
Rustam Gimadiev
1b0ed05fcd
Jenkinsfile updated (#176) 2021-02-09 11:29:55 +03:00
Ildar Almakaev
961d14454a
Add CRUD actions for Schema Registry service (#165)
* Map schema registry port to 8081 in kafka-clusters-only.yaml

* Add endpoint to retrieve subjects from schema registry by cluster name

* Add endpoint to retrieve subject versions from schema registry

* Get subject schema by version from schema-registry

* Add ability to create/delete schema subjects in/from schema-registry service

* Create WebClient bean and refactor its usage

* Refactor schema api contract

* Return 'Bad request' if there is 'Internal Server Error' from Schema Registry

* Add GET/PUT methods to get/update a schema compatibility level globally or only for a scepific schema

* Add SchemaRegistryContainer.java and testcontainers dependencies for integration tests

* Add junit-jupiter5 for testing

* Add GET/DELETE actions for the latest schema version

* Add endpoint to check schema compatibility

* Set up configuration for testing

* Add basic test for SchemaRegistryService

* Fix mapping from dto to web model

* Change createNewSchema action's endpoint

* Update tests in SchemaRegistryServiceTests

* Rename getLatestSchema method and update tests

* Add more test in SchemaRegistryServiceTests

* Include compatibility level info to schema response. Change Flux to Mono

* Update tests

* Pass schema-registry url for secondLocal cluster too

* Remove explicit returns of 404 status code (it'll be processed by global error handler)

* Add global error handler to response with exception details

* Autoconfigure WebTestClient in SchemaRegistryServiceTest
2021-02-09 10:40:11 +03:00
Rustam Gimadiev
b87c2f6411
helm chart added (#171) 2021-02-05 21:11:18 +03:00
Guzel738
10a27ba60e
Messages component refactoring (#174)
* ISSUE-169 Sort topics (#172)

* Messages Table component created

* Messages component refactored

* MessageItem component fixed

* MessageItem component updated

* MessageItem component refactored

Co-authored-by: German Osin <german.osin@gmail.com>
Co-authored-by: Oleg Shuralev <workshur@gmail.com>
2021-02-05 16:53:41 +03:00
Guzel738
cc097e9327
Merge pull request #167 from provectus/i154/tests
[ISSUE-154] Update test config. Add first tests
2021-02-04 11:04:21 +03:00
Guzel738
5518bbd196 File for enzyme configuration fixed 2021-02-03 17:15:29 +03:00
Guzel738
373c9d1f58 Package-lock.json file updated 2021-02-03 15:15:53 +03:00
Guzel738
1940ff8065 Package.json file edited 2021-02-03 13:58:22 +03:00
Guzel738
8320e9755b
Update Messages.spec.tsx 2021-02-02 17:26:25 +03:00
Guzel738
51c0b1a41c Configuration files updated 2021-02-02 14:48:29 +03:00
Guzel738
8ecbeda71f Merge branch 'i154/tests' of github.com:provectus/kafka-ui into i154/tests 2021-02-02 13:37:08 +03:00
Guzel738
d59355873e Improvements made 2021-02-02 13:36:22 +03:00