xuang7 commented on code in PR #6130:
URL: https://github.com/apache/texera/pull/6130#discussion_r3549362912
##########
frontend/src/app/workspace/service/virtual-environment/virtual-environment.service.ts:
##########
@@ -73,27 +74,27 @@ export class WorkflowPveService {
getSystemPackages(cuid: number): Observable<PackageResponse> {
const params = this.buildBaseParams().set("cuid", cuid.toString());
- return this.http.get<PackageResponse>("/pve/system", { params });
+ return
this.http.get<PackageResponse>(`${AppSettings.getApiEndpoint()}/pve/system`, {
params });
}
fetchPVEs(cuid: number): Observable<PvePackageResponse[]> {
const params = this.buildBaseParams().set("cuid", cuid.toString());
- return this.http.get<PvePackageResponse[]>("/pve/pves", { params });
+ return
this.http.get<PvePackageResponse[]>(`${AppSettings.getApiEndpoint()}/pve/pves`,
{ params });
}
getUserPackages(cuid: number, pveName: string): Observable<string[]> {
return this.fetchPVEs(cuid).pipe(map(pves => pves.find(pve => pve.pveName
=== pveName)?.userPackages ?? []));
}
deleteEnvironments(cuid: number) {
- return this.http.delete(`/pve/pves/${cuid}`);
+ return
this.http.delete(`${AppSettings.getApiEndpoint()}/pve/pves/${cuid}`);
Review Comment:
I agree that the naming is not very clear and should be refactored
separately.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]