This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
forked from folio-org/mod-data-export-spring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UXPROD-3903: Upgrade MDES to version 3.0.0 (folio-org#270)
* Update POM and some src files to accommodate new schema * Change submodule * Update submodule configuration a bit more * Specify source for maven/IDE intellisense * Add http to server urls in open-api file to be able to generate sources * Remove problematic test lines temporarily * Update submodule * Updated submodule folio-export-common * Update submodule * Update submodule * Update submodule * update submodule! * Update submodule * update submodule again * update submodule * update submodule * Updated submodule folio-export-common * Update submodule * Updated submodule folio-export-common * Add logic to convert from old scheduling format to new one - #3 (#6) * changes from master * update folio-export-common * closes #3 * moved isLegacyJob to new util class: LegacyBursarMigrationUtil * moved recreateLegacyJobs to util class: LegacyBursarMigrationUtil * Update submodule * Add sonar configuration * Change new code recency * Update submodule * Update submodule * Revert unnecessary formatting changes * Revert more unnecessary formatting changes * Parentheses * Remove more unneccessary changes * Convert old tests to use new BursarExportJob class * Convert test to use BursarExportJob class * Update sample data to new bursar format * Refactor and add tests to LegacyBursarMigrationUtil - closes #9 * Update sonar.yml * Fix some code smells * Add lombok config * Update module descriptor * Revert versions * Update version in pom.xml * Remove jacoco * Add test for BursarExportLegacyJobService * Rewrite code * Add more coverage to BursarExportLegacyJobServiceTest * Fix test * Updated submodule folio-export-common * Updated submodule folio-export-common * Updated submodule folio-export-common * Updated submodule folio-export-common * Fix correct UserData types * Updated submodule folio-export-common * Update module descriptor MDES version to 1.0 * Updated submodule folio-export-common * Updated submodule folio-export-common * Updated submodule folio-export-common * Add condition to new filter age * Fix test error due to age filter * Fix default condition to GREATER_THAN_EQUAL * Updated submodule folio-export-common * Merge folio-org/master pinto folio-org/ualibweb-staging * Add back log4j2 * Fix unit tests issues * Fix unit tests issues * Change ports back to 8081 * Refactor entityToDto to avoid duplications * Refactor code to avoid duplicate * Failed assertion * Remove uneeded imports * Refactor job entities to avoid duplications * Fix sonar issue * Clean up and revert unnecessary changes * Clean up code * Updated submodule folio-export-common * Updated submodule folio-export-common * [MODEXPS-238, MODEXPS-245] Rename LegacyJob schemas and refactor LegacyBursarMigrationUtil to BursarMigrationService (folio-org#281) * Rename legacy job to job with legacy bursar parameters * Remove localhost in jobs.yaml * Updated submodule folio-export-common * Updated submodule folio-export-common * MODEXPS-238: Rename LegacyJob to JobWithLegacyBursarParameters * Updated submodule folio-export-common * MODEXPS-245: Refactor LegacyBursarMigrationUtil to BursarMigrationService * Update pom.xml * Updated submodule folio-export-common * Uncomment tests that should now work * Resolve formatting issues * Resolve more formatting issues * Comment out failed assertions * Remove duplication in pom.xml * Set different timeout for testScheduleJobWithMultipleTriggers test * Set different timeout for testSchedule * Change timeout for tests * Increase timeout for assertions in QuarzExportJobSchedulerTest * Increase timeout on assertion for QuartzExportJobSchedulerTest * Increase poll delay * Increase timeout * Decrease poll delay * Updated submodule folio-export-common * Fix deprecated property in BaseJob * Increase timeout for testScheduleJobWithMultipleTriggers * Increase even more timeout for testScheduleJobWithMultipleTriggers * Empty-Commit to rerun SonarCloud Code Analysis * Increase timeout for testSchedule * Reduce timeout for testSchedule and testScheduleJobWithMultipleTriggers * Increase timeout for testSchedule and testScheduleJobWithMultipleTriggers * Increase timeout for testDeleteOldJobDeleteScheduler * Increase timeout for testScheduleJobWithMultipleTriggers * Add plugin 'find-and-replace-maven-plugin' * Fix type mapping for LegacyBursarFeeFinesTypeMappings * Empty-Commit to rerun Jenkins build * Empty-Commit to rerun Jenkins build * Empty-Commit to rerun Jenkins build * Update submodule * Simplify migration logic * Fix typo * Convert configs, too * Rename BurSar to Bursar * Clarify header/footer token name * Only run bursar migration for certain versions * Update interface to v2.0 * formatting * Improve mocking in tenant service test * test debugging * revert debugging changes * Use possessive regex * sonar pls * Move bursar update checking into BursarMigrationService * Update submodule --------- Co-authored-by: Noah Overcash <[email protected]> Co-authored-by: Faruq Yusuff <[email protected]> Co-authored-by: Noah Overcash <[email protected]> Co-authored-by: Viachaslau Khandramai <[email protected]> Co-authored-by: danetsaoo <[email protected]> Co-authored-by: Pax Nguyen <[email protected]>
- Loading branch information
1 parent
ee13c78
commit 13b8e9b
Showing
38 changed files
with
1,312 additions
and
275 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
Submodule folio-export-common
updated
40 files
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 @@ | ||
lombok.addLombokGeneratedAnnotation = true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
package org.folio.de.entity; | ||
|
||
import io.hypersistence.utils.hibernate.type.json.JsonBinaryType; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.EnumType; | ||
import jakarta.persistence.Enumerated; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.MappedSuperclass; | ||
import java.util.Date; | ||
import java.util.List; | ||
import java.util.UUID; | ||
import lombok.Data; | ||
import org.folio.des.domain.dto.EntityType; | ||
import org.folio.des.domain.dto.ExportType; | ||
import org.folio.des.domain.dto.IdentifierType; | ||
import org.folio.des.domain.dto.JobStatus; | ||
import org.folio.des.domain.dto.Progress; | ||
import org.hibernate.annotations.GenericGenerator; | ||
import org.hibernate.annotations.Type; | ||
import org.springframework.batch.core.BatchStatus; | ||
import org.springframework.batch.core.ExitStatus; | ||
|
||
@MappedSuperclass | ||
@Data | ||
public abstract class BaseJob { | ||
|
||
@Id | ||
@GeneratedValue(generator = "UUID") | ||
@GenericGenerator(name = "UUID", type = org.folio.des.repository.generator.CustomUUIDGenerator.class) | ||
@Column(updatable = false, nullable = false) | ||
private UUID id; | ||
|
||
private String name; | ||
|
||
private String description; | ||
|
||
private String source; | ||
|
||
private Boolean isSystemSource; | ||
|
||
@Enumerated(EnumType.STRING) | ||
private ExportType type; | ||
|
||
@Enumerated(EnumType.STRING) | ||
private JobStatus status; | ||
|
||
@Type(JsonBinaryType.class) | ||
@Column(columnDefinition = "jsonb") | ||
private List<String> files = null; | ||
|
||
@Type(JsonBinaryType.class) | ||
@Column(columnDefinition = "jsonb") | ||
private List<String> fileNames = null; | ||
|
||
private Date startTime; | ||
|
||
private Date endTime; | ||
|
||
private Date createdDate; | ||
|
||
private UUID createdByUserId; | ||
|
||
private String createdByUsername; | ||
|
||
private Date updatedDate; | ||
|
||
private UUID updatedByUserId; | ||
|
||
private String updatedByUsername; | ||
|
||
private String outputFormat; | ||
|
||
private String errorDetails; | ||
|
||
@Enumerated(EnumType.STRING) | ||
private BatchStatus batchStatus; | ||
|
||
@Type(JsonBinaryType.class) | ||
@Column(columnDefinition = "jsonb") | ||
private ExitStatus exitStatus; | ||
|
||
@Enumerated(EnumType.STRING) | ||
private IdentifierType identifierType; | ||
|
||
@Enumerated(EnumType.STRING) | ||
private EntityType entityType; | ||
|
||
@Type(JsonBinaryType.class) | ||
@Column(columnDefinition = "jsonb") | ||
private Progress progress; | ||
} |
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
20 changes: 20 additions & 0 deletions
20
src/main/java/org/folio/de/entity/bursarlegacy/JobWithLegacyBursarParameters.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,20 @@ | ||
package org.folio.de.entity.bursarlegacy; | ||
|
||
import io.hypersistence.utils.hibernate.type.json.JsonBinaryType; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Table; | ||
import lombok.Data; | ||
import org.folio.de.entity.BaseJob; | ||
import org.folio.des.domain.dto.ExportTypeSpecificParametersWithLegacyBursar; | ||
import org.hibernate.annotations.Type; | ||
|
||
@Entity | ||
@Table(name = "job") | ||
@Data | ||
public class JobWithLegacyBursarParameters extends BaseJob { | ||
|
||
@Type(JsonBinaryType.class) | ||
@Column(columnDefinition = "jsonb") | ||
private ExportTypeSpecificParametersWithLegacyBursar exportTypeSpecificParameters; | ||
} |
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
Oops, something went wrong.