Skip to content

Commit

Permalink
removed save from interceptors and kept missing object intercepter as is
Browse files Browse the repository at this point in the history
  • Loading branch information
jvigliotta committed Mar 6, 2025
1 parent 5ee9b66 commit 0deb2bf
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ export default function conditionWidgetStylesInterceptor(openmct) {

domainObject.configuration.objectStyles = {};

Check warning on line 33 in src/plugins/conditionWidget/conditionWidgetStylesInterceptor.js

View check run for this annotation

Codecov / codecov/patch

src/plugins/conditionWidget/conditionWidgetStylesInterceptor.js#L33

Added line #L33 was not covered by tests

openmct.objects.save(domainObject);

return domainObject;

Check warning on line 35 in src/plugins/conditionWidget/conditionWidgetStylesInterceptor.js

View check run for this annotation

Codecov / codecov/patch

src/plugins/conditionWidget/conditionWidgetStylesInterceptor.js#L35

Added line #L35 was not covered by tests
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/interceptors/missingObjectInterceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ export default function MissingObjectInterceptor(openmct) {

return object;
},
priority: openmct.priority.HIGH + 1 // this should be the first interceptor to run
priority: openmct.priority.HIGH
});
}
2 changes: 0 additions & 2 deletions src/plugins/plot/overlayPlot/overlayPlotStylesInterceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ export default function overlayPlotStylesInterceptor(openmct) {

domainObject.configuration.objectStyles = {};

Check warning on line 36 in src/plugins/plot/overlayPlot/overlayPlotStylesInterceptor.js

View check run for this annotation

Codecov / codecov/patch

src/plugins/plot/overlayPlot/overlayPlotStylesInterceptor.js#L36

Added line #L36 was not covered by tests

openmct.objects.save(domainObject);

return domainObject;

Check warning on line 38 in src/plugins/plot/overlayPlot/overlayPlotStylesInterceptor.js

View check run for this annotation

Codecov / codecov/patch

src/plugins/plot/overlayPlot/overlayPlotStylesInterceptor.js#L38

Added line #L38 was not covered by tests
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ export default function stackedPlotConfigurationInterceptor(openmct) {
domainObject.configuration.objectStyles = {};

Check warning on line 41 in src/plugins/plot/stackedPlot/stackedPlotConfigurationInterceptor.js

View check run for this annotation

Codecov / codecov/patch

src/plugins/plot/stackedPlot/stackedPlotConfigurationInterceptor.js#L40-L41

Added lines #L40 - L41 were not covered by tests
}

openmct.objects.save(domainObject);

return domainObject;

Check warning on line 44 in src/plugins/plot/stackedPlot/stackedPlotConfigurationInterceptor.js

View check run for this annotation

Codecov / codecov/patch

src/plugins/plot/stackedPlot/stackedPlotConfigurationInterceptor.js#L44

Added line #L44 was not covered by tests
}
});
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/telemetryTable/telemetryTableStylesInterceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ export default function telemetryTableStylesInterceptor(openmct) {
invoke: (identifier, domainObject) => {
domainObject.configuration.objectStyles = {};

Check warning on line 33 in src/plugins/telemetryTable/telemetryTableStylesInterceptor.js

View check run for this annotation

Codecov / codecov/patch

src/plugins/telemetryTable/telemetryTableStylesInterceptor.js#L33

Added line #L33 was not covered by tests

openmct.objects.save(domainObject);

return domainObject;

Check warning on line 35 in src/plugins/telemetryTable/telemetryTableStylesInterceptor.js

View check run for this annotation

Codecov / codecov/patch

src/plugins/telemetryTable/telemetryTableStylesInterceptor.js#L35

Added line #L35 was not covered by tests
}
};
Expand Down

0 comments on commit 0deb2bf

Please sign in to comment.