Skip to content

Conversation

@Wweiei
Copy link
Contributor

@Wweiei Wweiei commented Aug 10, 2025

This PR implements a complete CRUD (Create, Read, Update, Delete) system for registry configuration management as part of the Dubbo plugin enhancement task. It adds a new registry_config table and corresponding backend functionality to manage registry information with fields like protocol, address, username, password, namespace, and group.

  • Adds new registry_config database table across all supported database systems (MySQL, PostgreSQL, Oracle, OceanBase, OpenGauss)
  • Implements complete backend CRUD operations with service layer, controller, and data access components
  • Provides REST API endpoints for registry configuration management.

Table sql schema like follow:
image

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

@Aias00 Aias00 requested a review from Copilot August 12, 2025 05:59

This comment was marked as outdated.

@Aias00 Aias00 requested a review from Copilot August 13, 2025 06:15

This comment was marked as outdated.

Wweiei added 2 commits August 13, 2025 14:47
…nfig

# Conflicts:
#	db/init/ob/schema.sql
#	db/init/og/create-table.sql
#	db/init/oracle/schema.sql
#	db/init/pg/create-table.sql
@Aias00 Aias00 requested a review from Copilot August 14, 2025 11:04

This comment was marked as outdated.

@Aias00 Aias00 requested a review from Copilot August 16, 2025 13:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a complete CRUD (Create, Read, Update, Delete) system for registry configuration management as part of the Dubbo plugin enhancement. It adds a new registry_config table and corresponding backend functionality to manage registry information with fields like protocol, address, username, password, namespace, and group.

  • Adds new registry_config database table across all supported database systems (MySQL, PostgreSQL, Oracle, OceanBase, OpenGauss)
  • Implements complete backend CRUD operations with service layer, controller, and data access components
  • Provides REST API endpoints for registry configuration management

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
registry-sqlmap.xml MyBatis mapper XML defining SQL queries for registry CRUD operations
RegistryTransfer.java Transfer object utility for converting between DO and VO objects
RegistryServiceImpl.java Service implementation providing business logic for registry operations
RegistryService.java Service interface defining registry management operations
RegistryVO.java Value object for API responses
RegistryQuery.java Query object for search and pagination
RegistryDO.java Data object representing registry entity
RegistryDTO.java Data transfer object with validation annotations
RegistryMapper.java MyBatis mapper interface for database operations
RegistryController.java REST controller exposing registry management endpoints
http-debug-registry-config-controller-api.http HTTP test file for API endpoints
Database schema files CREATE TABLE statements and permission setup across all database systems
Comments suppressed due to low confidence (1)

shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/RegistryServiceImpl.java:1

  • In the update operation, the date_created field should not be modified during updates. This field represents the creation time and should remain immutable after initial creation.
/*

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

private String protocol;

@Length(max = 100, message = "The maximum length is 100")
@NotNull(message = "address null")
Copy link

Copilot AI Aug 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message 'address null' is incomplete and unclear. It should be 'address cannot be null' or 'address is required' for better user understanding.

Suggested change
@NotNull(message = "address null")
@NotNull(message = "address cannot be null")

Copilot uses AI. Check for mistakes.
private String id;

@Length(max = 128, message = "The maximum length is 128")
@NotNull(message = "registry code not null")
Copy link

Copilot AI Aug 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message 'registry code not null' should be 'registry code cannot be null' or 'registry code is required' for grammatical correctness and clarity.

Suggested change
@NotNull(message = "registry code not null")
@NotNull(message = "registry code is required")

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@Aias00 Aias00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aias00 Aias00 merged commit 0a2b9f5 into apache:master Aug 17, 2025
47 of 48 checks passed
@Aias00 Aias00 added this to the 2.7.0.2 milestone Aug 28, 2025
@Wweiei Wweiei deleted the feature/register-config branch September 17, 2025 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants