-
Notifications
You must be signed in to change notification settings - Fork 97
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-1128] Incorrect query in weekly VIIRS alert widget #4815
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wri7tno
reviewed
Jun 24, 2024
@@ -71,7 +72,7 @@ export const getData = createSelector( | |||
}; | |||
|
|||
years.forEach((year) => { | |||
const yearDataByWeek = groupBy(groupedByYear[year], 'week'); | |||
const yearDataByWeek = toArray(groupBy(groupedByYear[year], 'week')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch
wri7tno
approved these changes
Jun 24, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Recharts uses dataKey to set the unique value displayed at XAxis. We were using date for it but hiding most part to display only 12 dates Now we are using month and setting it as a unique value
…ty monthLabel to XAxis dataKey
Now when the user selects confidence 'all' we count the alerts for the three different confidence levels
06d3691
to
8a4ec20
Compare
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
In Slack, Jimmy noted that something seems to be wrong with weekly VIIRS alert widget; he thinks it is a front end issue and has to do with the way it is being queried. The downloaded data looks correct and has data through this week.
Alongside this task, new bugs were found.
Example from Yukon, Canada:
![yukon](https://private-user-images.githubusercontent.com/23243868/342502894-bcf959fc-3763-4a6b-84f6-111d4fa0a4d1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Mjc3NjYsIm5iZiI6MTczOTUyNzQ2NiwicGF0aCI6Ii8yMzI0Mzg2OC8zNDI1MDI4OTQtYmNmOTU5ZmMtMzc2My00YTZiLTg0ZjYtMTExZDRmYTBhNGQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDEwMDQyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2YTA5Njc2NDExNTBjMWQ0ZWU5MTI2MWY0MGZkMmViMzVhNjcyYzA3M2RkZGM2YzQ4ZjZlN2M2MGU3OTQzMWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.D6RfRpHUE5eq3dx3aF2TM07VHbrdMfpA3Tfm3FSBnO0)
Demo