Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Create layer correctly from saved layer config #2179

Merged
merged 2 commits into from Apr 4, 2023

Conversation

igorDykhta
Copy link
Collaborator

This PR ensures we load the layer correctly when using createLayerFromConfig. We can now pass a parsed and loaded layer to the method

Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
src/reducers/src/vis-state-updaters.ts Outdated Show resolved Hide resolved
@@ -1186,6 +1186,175 @@ test('#visStateReducer -> DUPLICATE_LAYER', t => {
t.end();
});

// TODO: not sure if this test is correct, it basically checks if the loaded visState is empty
// if we load configuration through the schema manager all layers will be changing from having visualChannels to visualConfig
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure where the test comes from, but maybe the goal is to make sure that an invalid layer wouldn't be loaded?

Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
@igorDykhta igorDykhta merged commit c847573 into master Apr 4, 2023
9 checks passed
@delete-merged-branch delete-merged-branch bot deleted the igr/create-layer-from-saved-layer-config branch April 4, 2023 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants