Skip to content

Commit

Permalink
getplantuml() in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
mauvaisetroupe committed Nov 10, 2023
1 parent 239fbf9 commit f78592d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@ export default defineComponent({

const retrieveApplication = async applicationId => {
try {
getPlantUML(applicationId);
getStructurePlantUML(applicationId);
retrieveCapabilities(applicationId);

plantUMLImage.value = '';
capabilitiesPlantUMLImage.value = '';
const res = await applicationService().find(applicationId);

application.value = res;
} catch (error) {
alertService.showAnyError(error);
} finally {
getPlantUML(applicationId);
getStructurePlantUML(applicationId);
retrieveCapabilities(applicationId);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ export default defineComponent({
const retrieveLandscapeView = async landscapeViewId => {
try {
loadTab(landscapeViewId);

// load landscape schema
getPlantUML(landscapeViewId);

// load golen/replicas schema
getDataObjectsLandscapePlantUML(landscapeViewId);

const res = await landscapeViewService().find(landscapeViewId);
const landscape = res.landscape;
conputeAllApplicationsByFlow(landscape);
Expand Down Expand Up @@ -160,8 +167,6 @@ export default defineComponent({
} catch (error) {
alertService.showAnyError(error);
}
getPlantUML(landscapeViewId);
getDataObjectsLandscapePlantUML(landscapeViewId);
};

if (route.params?.landscapeViewId) {
Expand Down

0 comments on commit f78592d

Please sign in to comment.