-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add async apis for csv import (#18647)
* Add async apis for import csv * checkstyle fix * fix checkstyle after merge from main * fix auts * fix backend tests * ui: add async import support for glossary * ui: improve the import page layout * ui: add async import support for teams and users * show banner at the top * fix unit test * update importteams page test * minor change --------- Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
- Loading branch information
1 parent
4696b99
commit 0e41609
Showing
26 changed files
with
1,055 additions
and
235 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
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
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
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
21 changes: 21 additions & 0 deletions
21
openmetadata-service/src/main/java/org/openmetadata/service/util/CSVImportMessage.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,21 @@ | ||
package org.openmetadata.service.util; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import org.openmetadata.schema.type.csv.CsvImportResult; | ||
|
||
@NoArgsConstructor | ||
public class CSVImportMessage { | ||
@Getter @Setter private String jobId; | ||
@Getter @Setter private String status; | ||
@Getter @Setter private CsvImportResult result; | ||
@Getter @Setter private String error; | ||
|
||
public CSVImportMessage(String jobId, String status, CsvImportResult result, String error) { | ||
this.jobId = jobId; | ||
this.status = status; | ||
this.result = result; | ||
this.error = error; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
openmetadata-service/src/main/java/org/openmetadata/service/util/CSVImportResponse.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,16 @@ | ||
package org.openmetadata.service.util; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@NoArgsConstructor | ||
public class CSVImportResponse { | ||
@Getter @Setter private String jobId; | ||
@Getter @Setter private String message; | ||
|
||
public CSVImportResponse(String jobId, String message) { | ||
this.jobId = jobId; | ||
this.message = message; | ||
} | ||
} |
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.