-
Notifications
You must be signed in to change notification settings - Fork 2
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
smart layer update for changes not working for grouped layers #975
Comments
What exactly is not working? I tried changing the opacity and style 2 levels deep, that seems to work just fine |
Hello @RobertOrthofer , as far as i can see, if the group identifier stays the same, but the nested group layers change, with new ids and everything the nested layers will not update. |
Thanks for the detailed test case, i will look into it |
I have continued testing and as you said, it seems to work as expected, i can't reproduce the issue again right now. EOxElements/elements/map/src/generate.ts Line 400 in 974aa84
Not sure if i should open a new issue, or we can leave it as part of this one. Here are the configs:
|
Unfortunately i can't reproduce this problem either, but since you have a very specific part of the code where the error is thrown, maybe there is a layer that changes it's type from |
That is strange, i can reproduce the error also in the storybook, e.g. here: |
I also get |
Interesting, i'm looking into this, and also why the error doesn't occur in the testing environment |
This was a bit tricky, but it seems to be the same problem that we already had some time ago. In the function I am yet to find the real culprit here. As I am not an npm expert, @silvester-pari do you have any suspicion in this regard? It seems that in the current |
Since the merging of ol version 9.2.5-dev, everything fails, since the peer dependencies of ol-stac and ol-pmtiles don't seem to be met. I hope this gets resolved once we have ol 10 (or we revert back to ol 9.2.4). |
this seems to be fixed via #1141. I will add a test for faster debugging in the future. |
Silvester updated the package lock and now in theory in the latest storybook deployment there should not be an older OL version? Could you check again @RobertOrthofer if you can see the version conflict you found last time? |
So, i have been experimenting around and trying locally to use all packages build at the latest state, and i don't think this is a version issue. This is quite a stubborn issue, i hope you have more luck finding the underlying cause @RobertOrthofer with these inputs |
yes, there is another issue that was hidden underneath the package issue, you are completely right about the "same place but unrelated". It's a very basic problem, but was hard to find, I will update the PR asap. I'm still not sure why the error occurs in storybook but not in my test case though |
yes, that's exactly that. IMO the error is that the |
I tried setting the retries to 0, didn't change anything. We need to investigate further here, but it's not connected anymore to the issue which has been fixed. |
The smart update functionality for layers assumes a flat structure, but it is possible to work with groups.
We either need to rethink how we do the smart layer update approach, or implement recursive checks for potentially any depth level that is possible with groups
The text was updated successfully, but these errors were encountered: