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

PB-984: avoid duplicate errors #1092

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

ltkum
Copy link
Contributor

@ltkum ltkum commented Oct 8, 2024

Issue : sometimes, errors and warning might get added multiple times, and as they are new object instances, the set had issue ensuring unicity

Fix : we filter the errors and warnings received, ensuring we only add messages with a different message AND different parameters.

Test link

@ltkum ltkum requested review from pakb and sommerfe October 8, 2024 14:35
@github-actions github-actions bot added the bug Something isn't working label Oct 8, 2024
@ltkum
Copy link
Contributor Author

ltkum commented Oct 8, 2024

@sommerfe : since you're the one that found the issue, can you quickly check if you manage to reproduce it ? I might need to make a more thorough check on the params, since those are an object too.

@ltkum ltkum force-pushed the fix-PB-984-ensure-unicity branch 2 times, most recently from 30360ba to ccd9edc Compare October 8, 2024 14:45
Copy link

cypress bot commented Oct 8, 2024

web-mapviewer    Run #3568

Run Properties:  status check passed Passed #3568  •  git commit 629c9b1e0f: PB-984: more torough check on equality
Project web-mapviewer
Run status status check passed Passed #3568
Run duration 04m 26s
Commit git commit 629c9b1e0f: PB-984: more torough check on equality
Committer Martin Künzi
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 21
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 211

@sommerfe
Copy link
Contributor

sommerfe commented Oct 9, 2024

When I import a KML file i still get a warning that i have to close 4 times to make it disappear, then a different one is visible that i can close with one click so maybe there is still something missing

@ltkum ltkum requested a review from sommerfe October 10, 2024 13:29
@sommerfe
Copy link
Contributor

Now i don't get any warnings or errors when importing a KML file, is this correct or should there still be some warnings ?

@ltkum
Copy link
Contributor Author

ltkum commented Oct 14, 2024

Now i don't get any warnings or errors when importing a KML file, is this correct or should there still be some warnings ?

If you import a KML through the menu, there should be no errors / warnings. (sorry for the late answer, I was sick on friday)

Issue : sometimes, errors and warning might get added multiple times, and as they are new object instances, the set had issue ensuring unicity

Fix : we filter the errors and warnings received, ensuring we only add messages with a different message AND different parameters.

PB-984: putting equality check in class for easier readability

can't filter aset
- We now dive into the params to check that they have the same length, the same keys, and the same values.
small issue with filtering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants