mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
Add an integration test for migrating repository
This commit is contained in:
@@ -83,16 +83,30 @@ public class SnapshotAPIStateBuilder {
|
||||
String projectName,
|
||||
JsonObject jsonGetDoc
|
||||
) {
|
||||
getDoc.put(
|
||||
projectName,
|
||||
new GetDocResult(
|
||||
jsonGetDoc.get("error"),
|
||||
jsonGetDoc.get("versionID").getAsInt(),
|
||||
jsonGetDoc.get("createdAt").getAsString(),
|
||||
jsonGetDoc.get("email").getAsString(),
|
||||
jsonGetDoc.get("name").getAsString()
|
||||
)
|
||||
);
|
||||
if (jsonGetDoc.has("migratedFromId")) {
|
||||
getDoc.put(
|
||||
projectName,
|
||||
new GetDocResult(
|
||||
jsonGetDoc.get("error"),
|
||||
jsonGetDoc.get("versionID").getAsInt(),
|
||||
jsonGetDoc.get("createdAt").getAsString(),
|
||||
jsonGetDoc.get("email").getAsString(),
|
||||
jsonGetDoc.get("name").getAsString(),
|
||||
jsonGetDoc.get("migratedFromId").getAsString()
|
||||
)
|
||||
);
|
||||
} else {
|
||||
getDoc.put(
|
||||
projectName,
|
||||
new GetDocResult(
|
||||
jsonGetDoc.get("error"),
|
||||
jsonGetDoc.get("versionID").getAsInt(),
|
||||
jsonGetDoc.get("createdAt").getAsString(),
|
||||
jsonGetDoc.get("email").getAsString(),
|
||||
jsonGetDoc.get("name").getAsString()
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
private void addGetSavedVersForProject(
|
||||
|
||||
Reference in New Issue
Block a user