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

[FLAG-965] Fix VIIRS dropdown #4721

Merged
merged 8 commits into from
Nov 8, 2023
Merged

Conversation

willian-viana
Copy link
Collaborator

@willian-viana willian-viana commented Nov 3, 2023

Overview

After we launched the high/all confidence dropdown here, we noted that VIIRS analysis showed 0 for both custom and admin areas.

Demo

Screenshot 2023-11-03 at 20 46 26
Screenshot 2023-11-03 at 20 46 51

Notes

I had to add new validation on getWhereQuery method. We need to think a better solution to handle new layer features and the related widgets.

Testing

  • Open the map and select the VIIRS Layer.
  • Select a country to analyze.
  • Change the option from high confidence to all and vice versa
  • Validate if the widgets are displayed correctly.

To avoid errors between viirs layers and wigets with the new options (high confidence) we added some validations to
getWhereQuery method
To the future, we will need to think a better solution
@willian-viana willian-viana requested a review from wri7tno November 3, 2023 23:47
@willian-viana willian-viana self-assigned this Nov 3, 2023
@willian-viana willian-viana marked this pull request as ready for review November 3, 2023 23:47
Now we can access layer options when the widget is render on the map
To avoid confidence__cat = 'h' to be added on the query, since we always fetch by all alerts
@willian-viana willian-viana changed the title [FLAG-965] Fix viirs dropdown [FLAG-965] Fix VIIRS dropdown Nov 7, 2023
@wri7tno
Copy link
Collaborator

wri7tno commented Nov 7, 2023

LGTM tested

… as a boolean

To use this new parameter on the tile endpoint we need to use a boolean to high_confidence_only
So I removed the object and set again as a boolean
@willian-viana willian-viana force-pushed the fix/viirs-dropdown-FLAG-965 branch from a8c029f to 547814d Compare November 8, 2023 17:42
@willian-viana willian-viana force-pushed the fix/viirs-dropdown-FLAG-965 branch from 547814d to df9b223 Compare November 8, 2023 17:45
@willian-viana willian-viana force-pushed the fix/viirs-dropdown-FLAG-965 branch from df9b223 to 600739b Compare November 8, 2023 20:34
@willian-viana willian-viana temporarily deployed to gfw-staging-pr-4721 November 8, 2023 20:34 Inactive
@willian-viana willian-viana merged commit b8e4d93 into develop Nov 8, 2023
4 checks passed
@willian-viana willian-viana deleted the fix/viirs-dropdown-FLAG-965 branch November 8, 2023 21:37
@willian-viana willian-viana mentioned this pull request Nov 8, 2023
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.

2 participants