Git Product home page Git Product logo

Comments (3)

heykc avatar heykc commented on July 19, 2024

I can cover this issue! Setting up a draft PR in a few ✌️

from earthdata-search.

mreese84 avatar mreese84 commented on July 19, 2024

Awesome! Thank you @heykc

from earthdata-search.

heykc avatar heykc commented on July 19, 2024

@abbottry apologies for not running the tests before pushing! I do have a question for you or anyone that would be able to answer. The test directly checks that props.onApplyGranuleFilters is called with { readableGranuleName: null } however my change directly affects what we're sending to props.onApplyGranuleFilters (sending an empty array rather than null). Obviously I don't want to just change the test so that it passes with my fix, but correct me if I'm wrong, I do believe we should be passing in an empty array rather than a null value.

If we pass a null value, we remove the null filter completely once the prunedFilters reducer runs inside of collections.js (line 116 in \static\src\js\actions\collections.js . Unless we somehow retain and pass the null filter to the UPDATE_GRANULE_SEARCH_QUERY action, we won't be able to update the state in Redux with the updated readableGranuleName value. And since an empty array is still truthy, we wouldn't be removing it in the prunedFilters reducer.

Let me know if you agree. If you do, I can make the change to the test file to expect an empty array, otherwise, I'm happy to discuss possible other actions we can take. ✌️

from earthdata-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.