-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
rework band info creation to make sure output contains all selector values #108
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
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.
Thanks for tackling this! I have to confess I find the logic sort of hard to follow (probably due to the way I set this up 🙈), so I quickly wrote up some tests to compare what's happening against main
.
Want to merge these in? #109
}) | ||
combinedBands = newCombinedBands | ||
}) | ||
Object.keys(selector).forEach((key) => { |
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.
This feels like the meat of the fix! I think I'm confused by the rest of the diff above -- what is that achieving?
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.
no functional changes with the rewrite above so reverted to keep this update a little cleaner! i wasn't parsing the reducer well last night
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.
ooh gotcha. if the reducer was feeling more readable to you with the changes, totally open to leaving em in!
Add test for `getBandInformation()`
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.
🚢
This fixes the issue we were seeing when trying to select down a store containing multiple bands, but also other selectors that need to be passed through. This should now include all the selectors with each band (eg elapsed_time, ids, etc)
I've tested this with the seaweed viewer and it seems to behave correctly. It's also working with OAE.