-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(be:FSADT1-660): adding province list api (#323)
* feat(be:FSADT1-660): adding province list api * chore: aligning similar code * chore: fixing code smell * doc: updating gitignore * doc: updating gitignore * fix: removing code duplication * ci: fixing deploy path for legacy * chore(deps): bump aquasecurity/trivy-action from 0.9.0 to 0.9.1 Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.9.0 to 0.9.1. - [Release notes](https://github.com/aquasecurity/trivy-action/releases) - [Commits](aquasecurity/[email protected]) --- updated-dependencies: - dependency-name: aquasecurity/trivy-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]>
- Loading branch information
Paulo Gomes da Cruz Junior
authored
Feb 10, 2023
1 parent
aa7f90f
commit 0bd5c8a
Showing
19 changed files
with
688 additions
and
95 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 |
---|---|---|
|
@@ -280,7 +280,7 @@ jobs: | |
-p CHES_API_URL='https://ches.api.gov.bc.ca/api/v1' | ||
|
||
prod-legacy: | ||
name: PROD Backend | ||
name: PROD Legacy | ||
needs: | ||
- prod-init | ||
env: | ||
|
@@ -313,7 +313,7 @@ jobs: | |
- name: Deploys | ||
uses: bcgov-nr/[email protected] | ||
with: | ||
file: backend/openshift.deploy.yml | ||
file: legacy/openshift.deploy.yml | ||
oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
oc_server: ${{ secrets.OC_SERVER }} | ||
oc_token: ${{ secrets.OC_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -82,7 +82,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Run Trivy vulnerability scanner in repo mode | ||
uses: aquasecurity/[email protected].0 | ||
uses: aquasecurity/[email protected].1 | ||
with: | ||
scan-type: "fs" | ||
format: "sarif" | ||
|
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
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
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
4 changes: 4 additions & 0 deletions
4
backend/src/main/java/ca/bc/gov/app/dto/client/ClientNameCodeDto.java
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,4 @@ | ||
package ca.bc.gov.app.dto.client; | ||
|
||
public record ClientNameCodeDto(String code, String name) { | ||
} |
4 changes: 0 additions & 4 deletions
4
backend/src/main/java/ca/bc/gov/app/dto/client/CountryCodeDto.java
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
backend/src/main/java/ca/bc/gov/app/entity/client/BaseEntity.java
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,38 @@ | ||
package ca.bc.gov.app.entity.client; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.data.relational.core.mapping.Column; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public abstract class BaseEntity { | ||
|
||
@NotNull | ||
protected String description; | ||
|
||
@NotNull | ||
@Column("effective_date") | ||
protected LocalDate effectiveAt; | ||
|
||
@NotNull | ||
@Column("expiry_date") | ||
protected LocalDate expiredAt; | ||
|
||
@Column("create_timestamp") | ||
protected LocalDateTime createdAt; | ||
|
||
@Column("update_timestamp") | ||
protected LocalDateTime updatedAt; | ||
|
||
@Column("create_user") | ||
private String createdBy; | ||
|
||
@Column("update_user") | ||
protected String updatedBy; | ||
} |
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
Oops, something went wrong.