Skip to content

Commit

Permalink
PLAT-1242 - Edit the outputted studio url to be URL used by Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
georgi-seqera committed Jan 23, 2025
1 parent e5dc023 commit 384d182
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected Response exec() throws ApiException {

DataStudioStartResponse response = api().startDataStudio(dataStudioRefOptions.dataStudio.sessionId, request, wspId);

return new DataStudioStartSubmitted(dataStudioRefOptions.dataStudio.sessionId, wspId, workspaceRef(wspId), dataStudioDto.getStudioUrl(), response.getJobSubmitted());
return new DataStudioStartSubmitted(dataStudioRefOptions.dataStudio.sessionId, wspId, workspaceRef(wspId), baseWorkspaceUrl(wspId), response.getJobSubmitted());
} catch (ApiException e) {
if (e.getCode() == 404) {
throw new DataStudioNotFoundException(dataStudioRefOptions.dataStudio.sessionId, wspId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public class DataStudioStartSubmitted extends Response {
public final String workspaceRef;
public final Boolean jobSubmitted;

public DataStudioStartSubmitted(String sessionId, Long workspaceId, String workspaceRef, String studioUrl, Boolean jobSubmitted) {
public DataStudioStartSubmitted(String sessionId, Long workspaceId, String workspaceRef, String baseWorkspaceUrl, Boolean jobSubmitted) {
this.sessionId = sessionId;
this.workspaceId = workspaceId;
this.workspaceRef = workspaceRef;
this.studioUrl = studioUrl;
this.studioUrl = String.format("%s/studios/%s/connect", baseWorkspaceUrl, sessionId);
this.jobSubmitted = jobSubmitted;
}

Expand Down

0 comments on commit 384d182

Please sign in to comment.