V3#221
Closed
aide-cloud wants to merge 156 commits intomainfrom
Closed
Conversation
- Update all import paths from github.com/moon-monitor/moon to github.com/aide-family/moon - Update issue tracker URL in README.md - Update contributor image URL in README.md
- Add i18n configuration to bootstrap - Implement i18n bundle initialization - Create error localizer for internationalized error messages - Add middleware for i18n support in HTTP server - Update go.mod with required dependencies
- Add i18n configuration to Bootstrap struct in all services - Implement internationalization support for error messages - Update HTTP and gRPC servers to use new i18n middleware - Add new error codes and messages for INVALID_ARGUMENT - Copy i18n files to Docker image
- Move XHeaderTeamID, XHeaderToken, and BearerWord constants to cnst package - Update imports and references in header.go and jwt.go - Improve code maintainability by centralizing constant values
- Add script repository and service to handle task scripts - Implement script scanning and parsing logic - Add support for different script types (shell, bash, python, python3) - Integrate script management with existing bootstrap configuration
- Add proper error handling for unlock operations - Implement safe closing of resources such as HTTP responses and file handles - Use errgroup for better error management in concurrent operations - Improve logging for error scenarios
- Implement GetTeamRole method in team.go - Add corresponding endpoint in openapi.yaml - Create GetTeamRole service in TeamService - Define GetTeamRoleRequest and update Team service in team.proto
- Add GetEmailConfig and GetSMSConfig methods to Team service - Implement email and sms config retrieval in TeamBiz - Update cache repository to use new VerifyEmailCodeParams struct - Modify email verification process to use new params - Update API definitions and protobuf messages for new endpoints
- Remove email and SMS configuration requests from the API - Delete related service methods and dependencies - Update Makefile to include multiple API calls
- Remove message and id fields from EmptyReply in proto file - Update related service methods to return appropriate responses - Adjust API definitions in Swagger/OpenAPI specification
…apitalization - Remove direct usage of strings.Title in auth service - Create new strutil.Title function for improved capitalization - Add unit tests for strutil.Title to ensure correct behavior
…rieval - Remove unnecessary nil check for user in UserBiz.GetSelfInfo - Refactor header middleware to handle team ID parsing error - Add new function ToUserItemPlaintext for plain text user info - Update UserService.SelfInfo to use new plain text user info function - Fix metric register functions to use GetMetricName method
- Update error messages to be more specific and user-friendly - Change "invalid operator" to "operator is unknown" - Change "invalid position" to "position is unknown" for user and position validation - Use "position is not allowed" instead of "invalid position" for permission issues
- Remove unnecessary ID field from SaveTeamMetricStrategyParams - Add OperateTeamMetricStrategyLevelsParams struct for better API design - Update service and repository interfaces to use new parameter structs - Remove redundant strategyType field from API requests - Rename fields in SaveTeamMetricStrategyLevelsRequest for consistency
- Move ToMetricDatasource and related functions from build to bo package - Implement metricDatasourceQuery in TeamDatasourceQuery struct - Update service layer to use new BO functions - Add error metadata for better error handling
- Add time engine related models, repositories, and services - Implement CRUD operations for time engines and rules - Add validation for time engine rules - Update server and swagger to include time engine endpoints
- Add Preload(timeEngineQuery.Rules) to the time engine query - This ensures that associated rules are loaded when fetching a time engine
- Update metric labels from map[string]string to map[string][]string - Modify related data structures and APIs to support multiple label values - Update database schema and service logic to handle new label representation
… features - Add GetMetricDatasourceMetadata and ListMetricDatasourceMetadata API endpoints - Implement metadata retrieval and listing functionality in TeamDatasourceService - Update TeamDatasourceBiz to support metadata operations - Modify team_datasource_metric_metadata.go to handle metadata queries - Update swagger and protobuf definitions for new metadata-related messages and services
- Remove redundant type conversion functions from various BO files - Update related data implementation files to use the new BO functions - This change simplifies the codebase and improves maintainability
… metadata - Implement UpdateMetricDatasourceMetadataRequest to replace UpdateTeamMetricDatasourceMetadataRemarkRequest - Add new fields (DatasourceID, MetadataID, Type) to the update request - Update repository and service interfaces to support the new update functionality - Implement the update logic in the data layer - Update Swagger documentation to include the new API endpoint
- Implement DatasourceSelect method in TeamDatasource struct - Add Select method to TeamDatasourceMetric interface - Implement Select method in teamMetricDatasourceImpl - Add DatasourceType enum and related interfaces - Update service and API definitions to support datasource select
…nd rules - Add UpdateTimeEngineStatus and UpdateTimeEngineRuleStatus requests and handlers - Implement corresponding business logic and data access methods - Update API definitions and Swagger documentation - Add creator information to TimeEngineItem and TimeEngineItemRule
…e rule - Change pagination condition from IsNil to IsNotNil in time engine and time engine rule - Improve consistency and readability in pagination-related code
- Uncommented the UseEnumNumbers option in json.MarshalOptions - This change will emit enum values as numbers instead of strings - Other options (UseProtoNames and EmitUnpopulated) remain unchanged
…field - Remove GetStatus method from NoticeHook interface - Update SaveTeamNoticeHookRequest to use map for headers instead of custom type - Set default status to GlobalStatusEnable in Create method - Remove status field from API request and response models - Update Header representation in protobuf and OpenAPI specifications
…extra data - Update data structures to use KeyValue slices instead of maps for headers and extra data - Modify related functions and interfaces to work with the new KeyValue list format - Update API definitions and protobuf messages to reflect the new format - Adjust unit tests to accommodate the changes
- Refactor the update process to use a more concise approach - Remove conditional checks for CA, TLS, and BasicAuth - Directly append these fields to the mutations slice - This change improves code readability and reduces complexity
…ations - Add sync functions for SMS, email, and hook configurations in the Server struct - Implement ToSync* functions in the bo package for converting configurations to the appropriate format - Update team_config_email and team_config_sms repositories to include FindByIds methods - Modify server.go to include new repository interfaces for SMS, email, and hook configurations
- Add SyncRequest struct and ChangedType enum - Implement Sync method in ServerService to handle different sync types - Update server.go to include new sync-related imports and method
- Implement a new Event server that conforms to the transport.Server interface - Add the Event server to the list of servers in the palace application - Update the RegisterService function to include the new Event server
…mponents - Add EventBus implementation in biz layer - Create EventBus repository interface and implementation - Integrate EventBus with LoadService and Event server - Implement data change event publishing and subscription mechanisms
- Add GitHub Actions workflow for building and testing Go project - Update Makefile to use moon-family Docker registry - Modify DockerfileBuilder to use GOPROXY environment variable - Update Dockerfile to reflect changes in the Docker registry
…build step - Add step to install protobuf compiler - Introduce 'Build Base' step to compile all apps before individual builds - Simplify build steps for Palace, Houyi, Rabbit, and Laurel
- Replace 'apt-get update' with 'apt update -y' for consistency - Add '-y' flag to 'apt install' command to automate confirmation
- Remove GOPROXY argument from DockerfileBuilder - Update Makefile to reflect the change - Add GitHub Actions workflow for builder image CI
- Update GitHub Actions workflow for Docker image building and signing - Add cosign tool installation and signing step for non-PR builds - Implement Docker Buildx for multi-platform images and cache export - Include Docker metadata extraction and usage for tagging and labeling - Enhance security by adding identity challenge with sigstore/fulcio
- Change context from ./deploy/base/DockerfileBuilder to . - Specify file as ./deploy/base/DockerfileBuilder - This modification ensures correct file reference while maintaining the intended build context
- Remove the commented-out cosign image signing step from the workflow - This change simplifies the CI configuration and removes unnecessary code
- Replace secrets.MY_GITHUB_TOKEN with secrets.PAT in image-builder workflow
- Create new GitHub Actions workflow for Docker image deployment - Configure workflow to build and push Docker images to GitHub Container Registry - Implement image signing using cosign for security - Set up BuildKit for efficient multi-platform image builds - Extract Docker metadata and use it for tagging and labeling images
- Add GitHub Actions workflow for building and pushing Docker images - Update Makefile and Dockerfile to use correct registry and image names - Implement cosign for signing Docker images - Configure BuildKit for multi-platform images and cache export
- Introduce SERVER_NAME and ORG_NAME as environment variables - Update IMAGE_NAME to use dynamic values from env variables - Modify build arg to use SERVER_NAME for APP_NAME
- Remove redundant IMAGE_NAME variable - Update images input in metadata action to use correct naming convention
- Update workflow names in GitHub Actions files for better clarity - Add APP_NAME variable to Dockerfile build command for dynamic application naming
- Change 'args' to 'build-args' in Docker build step - Improve clarity and maintainability of the workflow file
- Move `go mod tidy` to run earlier in the build process - Add new error messages for strategy metric levels in multiple languages - Reorder `gen-palace` target to a more appropriate position in the Makefile
- Update workflow to only trigger on v3 branch and tags - Adjust Makefile to ensure proper module management
- Rename ToStrategyMember to ToTeamNoticeMember - Rename ToStrategyMembers to ToTeamNoticeMembers - Rename ToStrategyNotice to ToTeamNoticeGroup - Rename ToStrategyNotices to ToTeamNoticeGroups - Update related function calls and variable names
Remove the pull_request trigger for the v3 branch from the Docker Palace Server Image workflow to prevent continuous integration from being triggered on pull requests to this branch.
- Add Preload(field.Associations) to List method - Add Preload(field.Associations) to Find method - Add Preload(field.Associations) to FindByUserID method
- Update DockerfileBuilder to use root user and install protobuf-compiler - Update Dockerfile to copy only necessary files and optimize build process - Modify Makefile to use APP_NAME variable consistently - Update VSCode settings with new environment variables
- Add CheckNameUnique method to Team interface and implement it in teamRepoImpl - Add FindByName method to Team interface and implement it in teamRepoImpl - Modify SaveTeam method to check for team name uniqueness before saving - Update Create and Update methods in teamRepoImpl to return errors instead of team objects - Add CONFLICT error type in i18n files and err.proto
- Create .gitignore file in etcd directory - Exclude 'data' directory from version control
- In ToTeamListRequest, filter team statuses to exclude unknown or non-existent ones - In ToTeamMemberListRequest, filter member statuses and positions to exclude unknown or non-existent ones - In ToTeamMemberSelectRequest, filter member statuses to exclude unknown or non-existent ones
<!-- Thanks for sending a pull request! Before submitting your pull request, please make sure the checklist below is confirmed. Your pull requests will be merged after one of the collaborators approve. --> ### What type of PR is this? <!-- Add one of the following kinds: /kind feat /kind bug /kind cleanup /kind doc Optionally add one or more of the following kinds if applicable: /kind api-change /kind deprecation /kind failing-test /kind flake /kind regression --> ### What this PR does? ### Which issue(s) this PR fixes: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. _If PR is about `failing-tests or flakes`, please post the related issues/tests in a comment and do not use `Fixes`_* --> Fixes # #### Does this PR introduce a user-facing change? <!-- If no, just write "NONE" in the release-note block below. If yes, a release note is required: Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required". --> ```release-note ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.