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

rework band info creation to make sure output contains all selector values #108

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

Shane98c
Copy link
Member

@Shane98c Shane98c commented Mar 1, 2024

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.

Copy link

vercel bot commented Mar 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
maps-demo ⬜️ Ignored (Inspect) Visit Preview Mar 1, 2024 6:50pm
maps-docs ⬜️ Ignored (Inspect) Visit Preview Mar 1, 2024 6:50pm

@Shane98c Shane98c requested a review from katamartin March 1, 2024 16:15
Copy link
Member

@katamartin katamartin left a 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) => {
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

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!

Copy link
Member

@katamartin katamartin left a comment

Choose a reason for hiding this comment

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

🚢

@Shane98c Shane98c merged commit 847e1e0 into main Mar 12, 2024
10 checks passed
@Shane98c Shane98c deleted the band-info branch March 12, 2024 17:17
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