Skip to content

Commit

Permalink
fix(*):1. 完成控制的重构
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jun 12, 2024
1 parent 2ccaab1 commit 271aa96
Show file tree
Hide file tree
Showing 155 changed files with 1,929 additions and 4,038 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ jobs:
- name: Build Dashboard
run: ./mvnw -B package -DskipTests --file pom.xml

# - name: Run Unit Tests
#run: ./mvnw -B test --file pom.xml
- name: Run Unit Tests
run: ./mvnw -B test --file pom.xml
9 changes: 9 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,12 @@ docker build -t yourname/eventmesh-dashboard -f docker/Dockerfile .
```
docker run -d --name eventmesh-dashboard -p 8080:8080 yourname/eventmesh-dashboard
```

### 开发准备
1. 配置格式化
1. 后端格式文档地址:https://eventmesh.apache.org/zh/community/contribute/contribute/
2. 前端使用 eslint
2. 配置协议头工具 license-eye。
1. 检查命令:license-eye header check
2. 使用命令:license-eye header fix
3. 下载地址: https://skywalking.apache.org/downloads/
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,14 @@
* limitations under the License.
*/

package org.apache.eventmesh.dashboard.console.service.config.instanceoperation;

import org.apache.eventmesh.dashboard.console.entity.config.ConfigEntity;

import java.util.List;

import org.springframework.stereotype.Service;
package org.apache.eventmesh.dashboard.common.enums;

/**
* TODO Pending interfaces
* 业务类型,
* storage:可选值(rocketmq,pravega,mongodb,pulsar,redis,kafka,knative,rabbitmq),
* sinkConnector:可选值(rocketmq,spring,pravega,wechat,openfunction,file,knative,pulsar,lark,slack,rabbitmq,redis,mongodb,dingtalk)
* sourceConnector:可选值(rocketmq,spring,pravega,openfunction,jdbc,file,http,wecom,knative,pulsar,prometheus,rabbitmq,redis,mongodb)',
*/

@Service
public class StoreConfigService {

public List<ConfigEntity> getStorageConfigFromInstance(Long clusterId, String storeId) {
return null;
}
public enum BusinessType {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.eventmesh.dashboard.common.enums;

public enum ResetOffsetMode {

CONSUME_FROM_LAST_OFFSET,

CONSUME_FROM_FIRST_OFFSET,
CONSUME_FROM_TIMESTAMP,

CONSUME_FROM_DESIGNATED_OFFSET

}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ public class GetOffsetRequest {
private String bootstrapServers;

private String groupName;

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,20 @@
package org.apache.eventmesh.dashboard.common.model.remoting.offset;


import org.apache.eventmesh.dashboard.common.enums.ResetOffsetMode;

import lombok.Data;

@Data
public class ResetOffsetRequest {

Long timestamp;
private Long timestamp;

Long offset;
ResetOffsetMode resetOffsetMode;
private Long offset;
private ResetOffsetMode resetOffsetMode;
private String topic;
private String bootstrapServers;
private Integer partitionId;
private String groupName;

public enum ResetOffsetMode {
EARLIEST,
LATEST,
TIMESTAMP,
OFFSET
}
}
10 changes: 10 additions & 0 deletions eventmesh-dashboard-console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@
<artifactId>springdoc-openapi-javadoc</artifactId>
<version>1.8.0</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>1.5.2.Final</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>1.5.2.Final</version>
</dependency>

<!-- GitHub laohu springmvc(contain spring boot starter)-->
<dependency>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 271aa96

Please sign in to comment.