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-1120: Remove error key when the extent is valid. #1115

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

ismailsunni
Copy link
Contributor

@ismailsunni ismailsunni commented Nov 5, 2024

Copy link

cypress bot commented Nov 5, 2024

web-mapviewer    Run #3786

Run Properties:  status check passed Passed #3786  •  git commit e2f6721bb3: PB-1120: Remove only related error message.
Project web-mapviewer
Branch Review pb-1120-layer-error-are-not-emptied
Run status status check passed Passed #3786
Run duration 05m 17s
Commit git commit e2f6721bb3: PB-1120: Remove only related error message.
Committer Ismail Sunni
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
View all changes introduced in this branch ↗︎

Copy link
Contributor

@ltkum ltkum left a comment

Choose a reason for hiding this comment

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

@pakb just merged a monster of a pull request in which all error keys are replaced with error message. This looks correct, but it would be good to rebase and adapt to the new way of handling errors :)

pakb
pakb previously approved these changes Nov 5, 2024
src/store/modules/layers.store.js Outdated Show resolved Hide resolved
@pakb pakb dismissed their stale review November 5, 2024 13:07

still needs some fixing

@ismailsunni ismailsunni force-pushed the pb-1120-layer-error-are-not-emptied branch from 4aedfc1 to 0023e10 Compare November 6, 2024 03:35
@ismailsunni
Copy link
Contributor Author

Thanks @ltkum @pakb I have used the new way to add error to a layer. I also modified the removeErrorMessage because it won't work as expected if we use Set().delete

Copy link
Contributor

@ltkum ltkum left a comment

Choose a reason for hiding this comment

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

The reason why we need to change the way we remove error messages is because within the set, the reference to the object won't be the same (we create a new object each time we update the layers). Another way to solve this would be to have the error messages be instanced only once, but I like your approach, as we won't always be sure in the future that we receive the exact same instance of a message.

looks good to me :)

@ismailsunni ismailsunni force-pushed the pb-1120-layer-error-are-not-emptied branch from 4da7852 to e2f6721 Compare November 11, 2024 03:16
@ismailsunni ismailsunni merged commit a20fe74 into develop Nov 11, 2024
6 checks passed
@ismailsunni ismailsunni deleted the pb-1120-layer-error-are-not-emptied branch November 11, 2024 03:26
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.

3 participants