-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: migration, add operator rest api * feat: migration, add liquibase and product operator rest api impl * feat: migration, update tests * feat: migration, add openapi def * feat: migration, add product search impl * feat: migration, update api * feat: migration, fix the exception handling * feat: migration, external api add method to get product by name * feat: migration, add tests * feat: migration, add tests for internal rest api
- Loading branch information
1 parent
c32d40b
commit 2086662
Showing
64 changed files
with
3,756 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sections: | ||
- title: Major changes | ||
labels: | ||
- "release/super-feature" | ||
- title: Complete changelog | ||
labels: | ||
- "bug" | ||
- "enhancement" | ||
- "dependencies" | ||
template: | | ||
{{ range $section := .Sections }}{{ if $section.Items }}### {{ $section.GetTitle }}{{ range $item := $section.Items }} | ||
* [#{{ $item.GetID }}]({{ $item.GetURL }}) - {{ $item.GetTitle }}{{ end }}{{ end }} | ||
{{ end }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: maven | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
labels: | ||
- dependencies |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Build Feature Branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- '!main' | ||
- '!fix/[0-9]+.[0-9]+.x' | ||
|
||
jobs: | ||
branch: | ||
uses: onecx/ci-quarkus/.github/workflows/build-branch.yml@v1 | ||
secrets: inherit |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Build Pull Request | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pr: | ||
uses: onecx/ci-quarkus/.github/workflows/build-pr.yml@v1 | ||
secrets: inherit |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Build Release | ||
on: | ||
push: | ||
tags: | ||
- '**' | ||
jobs: | ||
release: | ||
uses: onecx/ci-quarkus/.github/workflows/build-release.yml@v1 | ||
secrets: inherit |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'fix/[0-9]+.[0-9]+.x' | ||
paths-ignore: | ||
- '.gitignore' | ||
- 'CODEOWNERS' | ||
- 'LICENSE' | ||
- '*.md' | ||
- '*.adoc' | ||
- '*.txt' | ||
- '.all-contributorsrc' | ||
|
||
jobs: | ||
build: | ||
uses: onecx/ci-quarkus/.github/workflows/build.yml@v1 | ||
secrets: inherit |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: Create Fix Branch | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
fix: | ||
uses: onecx/ci-common/.github/workflows/create-fix-branch.yml@v1 | ||
secrets: inherit |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: Create Release Version | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
release: | ||
uses: onecx/ci-common/.github/workflows/create-release.yml@v1 | ||
secrets: inherit |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Update documentation | ||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'docs/**' | ||
jobs: | ||
release: | ||
uses: onecx/ci-common/.github/workflows/documentation.yml@v1 | ||
secrets: inherit |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Sonar Pull Request | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Build Pull Request"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
pr: | ||
uses: onecx/ci-quarkus/.github/workflows/quarkus-pr-sonar.yml@v1 | ||
secrets: inherit |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#Maven | ||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
release.properties | ||
.flattened-pom.xml | ||
|
||
# Eclipse | ||
.project | ||
.classpath | ||
.settings/ | ||
bin/ | ||
|
||
# IntelliJ | ||
.idea | ||
*.ipr | ||
*.iml | ||
*.iws | ||
|
||
# NetBeans | ||
nb-configuration.xml | ||
|
||
# Visual Studio Code | ||
.vscode | ||
.factorypath | ||
|
||
# OSX | ||
.DS_Store | ||
|
||
# Vim | ||
*.swp | ||
*.swo | ||
|
||
# patch | ||
*.orig | ||
*.rej | ||
|
||
# Local environment | ||
.env | ||
|
||
# Plugin directory | ||
/.quarkus/cli/plugins/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>io.github.onecx</groupId> | ||
<artifactId>onecx-quarkus3-parent</artifactId> | ||
<version>0.18.0</version> | ||
</parent> | ||
|
||
<artifactId>onecx-product-store-svc</artifactId> | ||
<version>999-SNAPSHOT</version> | ||
|
||
<dependencies> | ||
<!-- 1000kit --> | ||
<dependency> | ||
<groupId>org.tkit.quarkus.lib</groupId> | ||
<artifactId>tkit-quarkus-jpa</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.tkit.quarkus.lib</groupId> | ||
<artifactId>tkit-quarkus-log-cdi</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.tkit.quarkus.lib</groupId> | ||
<artifactId>tkit-quarkus-log-rs</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.tkit.quarkus.lib</groupId> | ||
<artifactId>tkit-quarkus-log-json</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.tkit.quarkus.lib</groupId> | ||
<artifactId>tkit-quarkus-rest</artifactId> | ||
</dependency> | ||
|
||
<!-- QUARKUS --> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-arc</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-liquibase</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.github.blagerweij</groupId> | ||
<artifactId>liquibase-sessionlock</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-smallrye-health</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-micrometer-registry-prometheus</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-hibernate-orm</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-resteasy-reactive</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-resteasy-reactive-jackson</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-jdbc-postgresql</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-smallrye-openapi</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-hibernate-validator</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-opentelemetry</artifactId> | ||
</dependency> | ||
|
||
<!-- OTHER --> | ||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mapstruct</groupId> | ||
<artifactId>mapstruct</artifactId> | ||
</dependency> | ||
|
||
<!-- TEST --> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-junit5</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-junit5-mockito</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.rest-assured</groupId> | ||
<artifactId>rest-assured</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.tkit.quarkus.lib</groupId> | ||
<artifactId>tkit-quarkus-test-db-import</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-test-keycloak-server</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.openapitools</groupId> | ||
<artifactId>openapi-generator-maven-plugin</artifactId> | ||
<configuration> | ||
<generatorName>jaxrs-spec</generatorName> | ||
<modelNameSuffix>DTO</modelNameSuffix> | ||
<generateApiTests>false</generateApiTests> | ||
<generateApiDocumentation>false</generateApiDocumentation> | ||
<generateModelTests>false</generateModelTests> | ||
<generateModelDocumentation>false</generateModelDocumentation> | ||
<generateSupportingFiles>false</generateSupportingFiles> | ||
<addCompileSourceRoot>true</addCompileSourceRoot> | ||
<library>quarkus</library> | ||
<configOptions> | ||
<sourceFolder>/</sourceFolder> | ||
<openApiNullable>false</openApiNullable> | ||
<returnResponse>true</returnResponse> | ||
<useTags>true</useTags> | ||
<interfaceOnly>true</interfaceOnly> | ||
<serializableModel>true</serializableModel> | ||
<singleContentTypes>true</singleContentTypes> | ||
<dateLibrary>java8</dateLibrary> | ||
<useMicroProfileOpenAPIAnnotations>true</useMicroProfileOpenAPIAnnotations> | ||
<useJakartaEe>true</useJakartaEe> | ||
<useSwaggerAnnotations>false</useSwaggerAnnotations> | ||
<java17>true</java17> | ||
</configOptions> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>operator-product-v1</id> | ||
<goals> | ||
<goal>generate</goal> | ||
</goals> | ||
<configuration> | ||
<inputSpec>src/main/openapi/onecx-product-store-operator-product-v1.yaml</inputSpec> | ||
<apiPackage>gen.io.github.onecx.product.store.rs.operator.product.v1</apiPackage> | ||
<modelPackage>gen.io.github.onecx.product.store.rs.operator.product.v1.model</modelPackage> | ||
<modelNameSuffix>DTOV1</modelNameSuffix> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>operator-mfe-v1</id> | ||
<goals> | ||
<goal>generate</goal> | ||
</goals> | ||
<configuration> | ||
<inputSpec>src/main/openapi/onecx-product-store-operator-mfe-v1.yaml</inputSpec> | ||
<apiPackage>gen.io.github.onecx.product.store.rs.operator.mfe.v1</apiPackage> | ||
<modelPackage>gen.io.github.onecx.product.store.rs.operator.mfe.v1.model</modelPackage> | ||
<modelNameSuffix>DTOV1</modelNameSuffix> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>internal</id> | ||
<goals> | ||
<goal>generate</goal> | ||
</goals> | ||
<configuration> | ||
<inputSpec>src/main/openapi/onecx-product-store-internal.yaml</inputSpec> | ||
<apiPackage>gen.io.github.onecx.product.store.rs.internal</apiPackage> | ||
<modelPackage>gen.io.github.onecx.product.store.rs.internal.model</modelPackage> | ||
<modelNameSuffix>DTO</modelNameSuffix> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>external-v1</id> | ||
<goals> | ||
<goal>generate</goal> | ||
</goals> | ||
<configuration> | ||
<inputSpec>src/main/openapi/onecx-product-store-v1.yaml</inputSpec> | ||
<apiPackage>gen.io.github.onecx.product.store.rs.external.v1</apiPackage> | ||
<modelPackage>gen.io.github.onecx.product.store.rs.external.v1.model</modelPackage> | ||
<modelNameSuffix>DTOV1</modelNameSuffix> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
|
||
</project> |
Oops, something went wrong.