Skip to content

Commit

Permalink
added changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sondermanish committed Feb 13, 2025
1 parent 51f200f commit 3972081
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ public Mono<? extends ArtifactImportDTO> importArtifactFromGit(

final String repoName = gitHandlingService.getRepoName(gitConnectDTO);

// since at this point in the import flow, there is no context about the artifact type
// it needs to be retrieved from the fetched repository itself. however, in order to retrieve
// the artifact type from repository, the repository needs to be saved.
// for saving the repo an identifier is required (which usually is the artifact id);
// however, the artifact could only be generated after the artifact type is known.
// hence this is a temporary placeholder to hold the repository and it's components
String placeholder = "temp" + UUID.randomUUID();
ArtifactJsonTransformationDTO tempJsonTransformationDTO =
new ArtifactJsonTransformationDTO(workspaceId, placeholder, repoName);
Expand Down

0 comments on commit 3972081

Please sign in to comment.