* 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>
* [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
* 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
* 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
* Added react openapi gen
* Integrated Openapi to React
Co-authored-by: German Osin <german.osin@gmail.com>
Co-authored-by: Sofia Shnaidman <sshnaidman@provectus.com>
* Updated schemas required props.
* Renamed long to int64 params
Co-authored-by: Sofia Shnaidman <sshnaidman@provectus.com>
Co-authored-by: German Osin <german.osin@gmail.com>
* Start doing endpoint for jmx metrics
* Added endpoint for getting jmx metric per broker
* Cluster jmx metrics sum endpoit added
* Added endpoints for cluster metrics and broker metrics
* Cleared some code
* Fixed jmxmetrics names
* Changed to all values in metrics
* Removed redundant imports
* Renamed param constant
* Changed to calculate brokers and clusters metrics in one place
* Removed redundant imports
* Fixed some mistakes
* Replaced multiple method usage into single
* Fixed mulptiple call
* Removed cluster level metrics, now only broker-level metrics in cluster
* Just small fixes
* removed redundant variable
* Renamed method for cluster level metrics
* Fixed after PR and added sum for number cluster metrics by num and persec keywords in canonicalname
* Added metricdto object
* Added list of metrics to enum
* Renames and optimizings
* Renamed jmxmetrics objects param to metrics
Co-authored-by: Roman Nedzvetskiy <roman@Romans-MacBook-Pro.local>
* Added begin and end offset param
* moved consumer to try with resources block
* Fixed some problems
* Moved to gettopicdetails
* Cleanup code
Co-authored-by: Roman Nedzvetskiy <roman@Romans-MacBook-Pro.local>
Co-authored-by: German Osin <german.osin@gmail.com>
* Added bytesIn/OutPerSec params for clusterMetrics object
* Removed redundant todos, cleaned imports
* Jmx connections moved to pool, methods moved to separate classes
* Added pool handling and returning methods
* Fix after previous PR comments - fixed result map, configured pool, removed redundant methods and code
* Removed redundant imports and empty initialization
* Removed fill method
* Closing connection replaced to destroyObject method
* Try catch block while returning object to pool was fixed
* Removed redundant logs and try catch
Co-authored-by: Roman Nedzvetskiy <roman@Romans-MacBook-Pro.local>
* Backend for updating topics, fixed backend from another pr branches
* Changed caching of extendedAdminClient instances
Co-authored-by: Roman Nedzvetskiy <roman@Romans-MacBook-Pro.local>
* Added segmentSize for topic level
* Added segmentSize to clusterMetrics object
* Added internalClusterState for storing clusterMetrics linked to cluster's brokersIds
* InternalBrokersMetrics param added to InternalClusterMetrics
* Changed topic segment counting logic by finding the partition leader, added partition collecting in topic
* Added segmentSize info to cluster, broker, topic and topicPartition level
* Reduce to map moved to clusterutil, leader moved in cache
* Cleared some code
Co-authored-by: Roman Nedzvetskiy <roman@Romans-MacBook-Pro.local>