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

Bugfix/species filter is getting ignored in the metadata search #158

Conversation

upendrakumbham
Copy link
Contributor

@upendrakumbham upendrakumbham commented Aug 5, 2024

Bug: Our cell type wheel is not refreshing with the latest species drop-down value change. Simply, the wheel is ignoring species dropdown.

This PR - Fixes that issue

To Fix this:

I have modified two components:

  1. scxa-gene search Form
  2. scxa-scxa-cell-type-wheel-experiment-heatmap

Changes:

  • Added a onchange function to notify the gene search form when species changed from the species drop-down
  • Set the latest species value in the state
  • Trigger cell type wheel end point with latest species (Refresh cell type wheel component with latest data when we change species)
  • passed species prop to the scxa-cell-type-wheel-experiment-heatmap component in the demo.js to refresh wheel every on change trigger

Local testing:

  • 'npm pack' in the scxa-gene search Form component and tgz file will be generated in that component after npm pack
  • copy the absolute path and do npm install <path> in the scxa-cell-type-wheel-experiment-heatmap component
  • run npx webpack-dev-server --mode=development

… onchange event and maintaining species state
… trigger onchange event and maintaining species state"

This reverts commit e12a243.
… the state to pass it to the cell type wheel endpoint
…-type-wheel endpoint with the selected species value
@upendrakumbham upendrakumbham self-assigned this Aug 5, 2024
@upendrakumbham upendrakumbham requested a review from ke4 August 5, 2024 12:14
…map component to trigger wheel endpoint when we change species drop down
@upendrakumbham upendrakumbham marked this pull request as ready for review August 5, 2024 14:17
Copy link
Contributor

@ke4 ke4 left a comment

Choose a reason for hiding this comment

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

Good work!
I added 2 tiny change requests.
Could you please review and consider them?
Thanks

@ke4 ke4 added the bug Something isn't working label Aug 5, 2024
@ke4 ke4 linked an issue Aug 5, 2024 that may be closed by this pull request
3 tasks
@upendrakumbham
Copy link
Contributor Author

FIxed both, thanks for the comments.

Copy link
Contributor

@ke4 ke4 left a comment

Choose a reason for hiding this comment

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

I am picky here and sorry for that, but could you restore a little bit formatting that I commented, please?
Otherwise all good. Thanks for your work!

/>
<div className={`row-expanded small-12 columns`}>
<div className={`small-12 medium-6 columns`} aria-label={`Cell type wheel`}>
{props.searchTerm.trim() ?
<CellTypeWheelFetchLoader
host={props.host}
resource={URI(props.cellTypeWheelResource)
resource={URI(props.cellTypeWheelResource)
Copy link
Contributor

Choose a reason for hiding this comment

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

I know it is a tiny formatting thing, but could you restore the aligning of this line, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, not sure, how it was disturbed, it makes sense. Thanks for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed formatting, please feel free to review when log in

Copy link
Contributor

@ke4 ke4 left a comment

Choose a reason for hiding this comment

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

LGTM, sorry about my pickiness

@upendrakumbham upendrakumbham merged commit 8b58862 into master Aug 7, 2024
@upendrakumbham upendrakumbham deleted the bugfix/species_filter_is_getting_ignored_in_the_metadata_search branch August 7, 2024 10:11
upendrakumbham added a commit that referenced this pull request Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Species filter is getting ignored in the metadata search
2 participants