Skip to content

Commit ff76721

Browse files
authored
Merge pull request #114 from xtreme1-io/dev
Release v0.6.1
2 parents ea79f93 + 643911e commit ff76721

File tree

44 files changed

+394
-231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+394
-231
lines changed

.ops/.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ stages:
55

66
variables:
77
APP_NAME: "xtreme1"
8-
APP_VERSION: "0.6.0"
8+
APP_VERSION: "0.6.1"
99

1010
FRONTEND_PACKAGE_DIR: "dist"
1111
BACKEND_PACKAGE_NAME: "${APP_NAME}-backend-${APP_VERSION}-SNAPSHOT.jar"

.ops/alidev/backend-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
resources:
3030
requests:
3131
memory: 200Mi
32-
cpu: 100m
32+
cpu: 10m
3333
limits:
3434
memory: 2Gi
3535
cpu: 1

.ops/alidev/frontend-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
resources:
2727
requests:
2828
memory: 200Mi
29-
cpu: 100m
29+
cpu: 10m
3030
limits:
3131
memory: 2Gi
3232
cpu: 1

.ops/alitest/backend-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
resources:
3030
requests:
3131
memory: 200Mi
32-
cpu: 100m
32+
cpu: 10m
3333
limits:
3434
memory: 2Gi
3535
cpu: 1

.ops/alitest/frontend-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
resources:
2727
requests:
2828
memory: 200Mi
29-
cpu: 100m
29+
cpu: 10m
3030
limits:
3131
memory: 2Gi
3232
cpu: 1

.ops/backend.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM openjdk:11
22

33
RUN apt update && \
44
apt install -y iputils-ping curl wget netcat python3 python3-pip
5-
RUN pip3 install --upgrade --force-reinstall git+https://github.com/xtreme1-io/xtreme1-sdk.git@97f0e90
5+
RUN pip3 install --upgrade --force-reinstall git+https://github.com/xtreme1-io/xtreme1-sdk.git@bddaa8d
66
WORKDIR /app
77
COPY target/$BACKEND_PACKAGE_NAME ./app.jar
88
RUN mkdir -p config

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div align="center">
22
<img width="386" alt="Xtreme1 logo" src="https://user-images.githubusercontent.com/84139543/190300943-98da7d5c-bd67-4074-a94f-b7405d29fb90.png">
33

4-
![](https://img.shields.io/badge/Release-v0.6.0-green)
4+
![](https://img.shields.io/badge/Release-v0.6.1-green)
55
![](https://img.shields.io/badge/License-Apache%202.0-blueviolet)
66
[![Slack](https://img.shields.io/badge/Join-Slack-orange.svg?logo=slack)](https://join.slack.com/t/xtreme1group/shared_invite/zt-1jhk36uzr-NpdpYXeQAEHN6rYJy5_6pg)
77
[![Twitter](https://img.shields.io/badge/Follow-Twitter-blue)](https://twitter.com/Xtreme1io)
@@ -57,8 +57,8 @@ Image Data Curation (Visualizing & Debug) - [MobileNetV3](https://github.com/xi
5757
Download the latest release package and unzip it.
5858

5959
```bash
60-
wget https://github.com/xtreme1-io/xtreme1/releases/download/v0.6.0/xtreme1-v0.6.0.zip
61-
unzip -d xtreme1-v0.6.0 xtreme1-v0.6.0.zip
60+
wget https://github.com/xtreme1-io/xtreme1/releases/download/v0.6.1/xtreme1-v0.6.1.zip
61+
unzip -d xtreme1-v0.6.1 xtreme1-v0.6.1.zip
6262
```
6363

6464
## Start all services

backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ RUN --mount=type=cache,target=/root/.m2 mvn package
77
FROM openjdk:11-jre
88
RUN apt update && \
99
apt install -y iputils-ping curl wget netcat python3 python3-pip git
10-
RUN pip3 install --upgrade --force-reinstall git+https://github.com/xtreme1-io/xtreme1-sdk.git@97f0e90
10+
RUN pip3 install --upgrade --force-reinstall git+https://github.com/xtreme1-io/xtreme1-sdk.git@bddaa8d
1111
WORKDIR /app
12-
COPY --from=build /build/target/xtreme1-backend-0.6.0-SNAPSHOT.jar ./app.jar
12+
COPY --from=build /build/target/xtreme1-backend-0.6.1-SNAPSHOT.jar ./app.jar
1313
RUN mkdir -p config
1414
RUN wget 'https://basicai-asset.s3.us-west-2.amazonaws.com/xtreme1/xtreme1-lidar-fusion-trial.zip' -O xtreme1-lidar-fusion-trial.zip
1515
RUN wget 'https://basicai-asset.s3.us-west-2.amazonaws.com/xtreme1/xtreme1-image-trial.zip' -O xtreme1-image-trial.zip

backend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ cd backend
9292
mvn package
9393

9494
# Using local configuration to start application.
95-
java -Dspring.profiles.active=local -jar target/xtreme1-backend-0.6.0-SNAPSHOT.jar
95+
java -Dspring.profiles.active=local -jar target/xtreme1-backend-0.6.1-SNAPSHOT.jar
9696
```
9797

9898
Now you can access the backend service at `http://localhost:8080/`.

backend/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<groupId>ai.basic</groupId>
1515
<artifactId>xtreme1-backend</artifactId>
16-
<version>0.6.0-SNAPSHOT</version>
16+
<version>0.6.1-SNAPSHOT</version>
1717
<name>Xtreme1 Backend</name>
1818
<description></description>
1919

backend/src/main/java/ai/basic/x1/adapter/api/job/DatasetSimilarityResultScheduledJob.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class DatasetSimilarityResultScheduledJob {
5252
private static final String UPDATE_RESULT_LOCK = "update_dataset_similarity_result_lock";
5353
private static final String GENERATE_LOCK = "generate_similarity_result_lock";
5454

55-
@Scheduled(cron = "0/5 * * * * ?")
55+
//@Scheduled(cron = "0/5 * * * * ?")
5656
public void updateDatasetSimilarityResult() {
5757
boolean getLock = similarityDistributedLock.tryLock(UPDATE_RESULT_LOCK);
5858
if (getLock) {
@@ -91,7 +91,7 @@ public void updateDatasetSimilarityResult() {
9191
}
9292
}
9393

94-
@Scheduled(cron = "0/5 * * * * ?")
94+
//@Scheduled(cron = "0/5 * * * * ?")
9595
public void generateSimilarity() {
9696
boolean getLock = similarityDistributedLock.tryLock(GENERATE_LOCK);
9797
if (getLock) {

backend/src/main/java/ai/basic/x1/adapter/port/dao/mybatis/mapper/DataInfoMapper.java

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.apache.ibatis.annotations.Mapper;
1414
import org.apache.ibatis.annotations.Param;
1515

16+
import java.io.Serializable;
1617
import java.util.List;
1718

1819
/**
@@ -51,30 +52,44 @@ public interface DataInfoMapper extends ExtendBaseMapper<DataInfo> {
5152
* Get Model run data id
5253
*
5354
* @param queryWrapper Model run Filter data parameter
54-
* @param modelId Model id
55-
* @param limit data id count
55+
* @param modelId Model id
56+
* @param limit data id count
5657
* @return data id
5758
*/
58-
List<Long> findModelRunDataIds(@Param(Constants.WRAPPER) Wrapper<DataInfo> queryWrapper,@Param("modelId") Long modelId,
59-
@Param("isExcludeModelData") Boolean isExcludeModelData,@Param("limit") Long limit);
59+
List<Long> findModelRunDataIds(@Param(Constants.WRAPPER) Wrapper<DataInfo> queryWrapper, @Param("modelId") Long modelId,
60+
@Param("isExcludeModelData") Boolean isExcludeModelData, @Param("limit") Long limit);
6061

6162
/**
6263
* Get Model run data count
6364
*
6465
* @param queryWrapper Model run Filter data parameter
65-
* @param modelId Model id
66+
* @param modelId Model id
6667
* @return data count
6768
*/
68-
Long findModelRunDataCount(@Param(Constants.WRAPPER) Wrapper<DataInfo> queryWrapper,@Param("modelId") Long modelId,
69-
@Param("isExcludeModelData") Boolean isExcludeModelData);
70-
69+
Long findModelRunDataCount(@Param(Constants.WRAPPER) Wrapper<DataInfo> queryWrapper, @Param("modelId") Long modelId,
70+
@Param("isExcludeModelData") Boolean isExcludeModelData);
7171

7272
/**
7373
* Select data
74-
* @param page page
74+
*
75+
* @param page page
7576
* @param queryWrapper parameter
7677
* @return data page
7778
*/
78-
Page<DataInfo> selectDataPage(Page<DataInfo> page, @Param(Constants.WRAPPER) Wrapper<DataInfo> queryWrapper,@Param("dataInfoQuery") DataInfoQuery dataInfoQuery);
79+
Page<DataInfo> selectDataPage(Page<DataInfo> page, @Param(Constants.WRAPPER) Wrapper<DataInfo> queryWrapper, @Param("dataInfoQuery") DataInfoQuery dataInfoQuery);
7980

81+
/**
82+
* This method overrides the deleteById method of baseMapper
83+
*
84+
* @param id
85+
*/
86+
@Override
87+
int deleteById(Serializable id);
88+
89+
/**
90+
* Delete data based on dataset Id
91+
*
92+
* @param datasetId Dataset id
93+
*/
94+
int deleteByDatasetId(@Param("datasetId") Long datasetId);
8095
}

backend/src/main/java/ai/basic/x1/adapter/port/dao/mybatis/mapper/DatasetMapper.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
import org.apache.ibatis.annotations.Mapper;
99
import org.apache.ibatis.annotations.Param;
1010

11+
import java.io.Serializable;
12+
1113
/**
12-
*
1314
* @author fyb
1415
* @date 2022-02-16 10:17:54
1516
*/
@@ -18,11 +19,20 @@ public interface DatasetMapper extends BaseMapper<Dataset> {
1819

1920
/**
2021
* Paging query dataset according to query conditions
21-
* @param page Pagination information
22+
*
23+
* @param page Pagination information
2224
* @param queryWrapper Query conditions
2325
* @return Dataset paging information
2426
*/
2527
Page<Dataset> selectDatasetPage(Page<Dataset> page, @Param(Constants.WRAPPER) Wrapper<Dataset> queryWrapper);
2628

2729
Long countObject(@Param("datasetId") Long datasetId);
30+
31+
/**
32+
* This method overrides the deleteById method of baseMapper
33+
*
34+
* @param id
35+
*/
36+
@Override
37+
int deleteById(Serializable id);
2838
}

backend/src/main/java/ai/basic/x1/adapter/port/dao/mybatis/model/DataInfo.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ public class DataInfo implements Serializable {
6666
*/
6767
private Boolean isDeleted;
6868

69+
/**
70+
* Delete unique flag, 0 when writing, set as primary key id after tombstone
71+
*/
72+
private Long delUniqueKey;
73+
6974
/**
7075
* Create time
7176
*/

backend/src/main/java/ai/basic/x1/adapter/port/dao/mybatis/model/Dataset.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ public class Dataset implements Serializable {
4747
*/
4848
private Boolean isDeleted;
4949

50+
/**
51+
* Delete unique flag, 0 when writing, set as primary key id after tombstone
52+
*/
53+
private Long delUniqueKey;
54+
5055
/**
5156
* Create time
5257
*/

backend/src/main/java/ai/basic/x1/entity/ClassAndClassificationExportBO.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public class ClassAndClassificationExportBO {
3030
@NoArgsConstructor
3131
@AllArgsConstructor
3232
public static class Class{
33+
34+
private Long id;
35+
3336
private String name;
3437

3538
private String color;
@@ -50,6 +53,8 @@ public static class Class{
5053
@AllArgsConstructor
5154
public static class Classification{
5255

56+
private Long id;
57+
5358
private String name;
5459

5560
private Boolean isRequired;

backend/src/main/java/ai/basic/x1/entity/ImageDataExportBO.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import lombok.Builder;
55
import lombok.Data;
66
import lombok.NoArgsConstructor;
7+
import org.springframework.data.annotation.Transient;
78

89
@Data
910
@Builder
@@ -31,4 +32,9 @@ public class ImageDataExportBO extends DataExportBaseBO {
3132
*/
3233
private Long height;
3334

35+
/**
36+
* File relative path
37+
*/
38+
private transient String filePath;
39+
3440
}

backend/src/main/java/ai/basic/x1/entity/LidarFusionDataExportBO.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import lombok.Builder;
66
import lombok.Data;
77
import lombok.NoArgsConstructor;
8+
import org.springframework.data.annotation.Transient;
89

910
import java.util.List;
1011

@@ -61,6 +62,11 @@ public static class LidarFusionImageBO {
6162
* Camera image height
6263
*/
6364
private Long height;
65+
66+
/**
67+
* File relative path
68+
*/
69+
private transient String filePath;
6470
}
6571

6672
}

0 commit comments

Comments
 (0)