Skip to content

Commit

Permalink
Merge pull request #1930 from asfadmin/DS-5415-on-demand-loading
Browse files Browse the repository at this point in the history
Ds 5415 on demand loading
  • Loading branch information
williamh890 authored Jun 27, 2024
2 parents 0a18474 + 0d1ab5b commit 1a4d89c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ export class ScenesListComponent implements OnInit, OnDestroy, AfterContentInit
scenes => {
this.scenes = scenes;

this.removeLoadedScenes(scenes);
this.loadDummyProducts(scenes);
this.removeLoadedScenes(scenes);
}
)
);
Expand Down
4 changes: 4 additions & 0 deletions src/app/services/hyp3.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ export class Hyp3Service {
jobOptions.name = options.projectName;
}

if (!jobOptions.name) {
delete jobOptions.name;
}

return jobOptions;
});
}
Expand Down
6 changes: 4 additions & 2 deletions src/app/store/scenes/scenes.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export function scenesReducer(state = initState, action: ScenesActions): ScenesS

searchResults = searchResults.concat(subproducts)


const products = searchResults
.reduce((total, product) => {
if (product.isDummyProduct && isAlreadyLoaded(product, state.products[product.id])) {
Expand Down Expand Up @@ -160,10 +159,13 @@ export function scenesReducer(state = initState, action: ScenesActions): ScenesS
const product = cmrData[jobProduct.name];

if(!!product) {
if (!jobProduct.metadata.job) {
return;
}
let job = {
...jobProduct.metadata.job,
job_parameters: {
...jobProduct.metadata.job.job_parameters,
...jobProduct.metadata.job?.job_parameters,
}
};
const jobFile = !!job.files ?
Expand Down

0 comments on commit 1a4d89c

Please sign in to comment.