Get site ready for MVP: various fixes and additions - #18
Conversation
…UI renders it as a slider. If frontend returns <int>-<int> for confidence filter, interprets it as a range and filters results accordingly.
…ox. Currently searches sample's gsm, title, data_processing, and description fields.
✅ Deploy Preview for m2on ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
I'm actually not able to observe this, can you show a screenshot? If you're referring to the study search results page, some time ago I changed it to not show the search box at all (regardless of # of results) until you click "new search".
Currently the frontend just looks for
Feel free to return as much as you want here. I do think votes can influence users, but I don't see it as a huge risk to expose up/down vote counts in the API. I know it's easy for you to add them back in later, but I figure it's probably even easier to just have them there in the API response and just update the frontend to show them. And perhaps we could use the up/down info in the frontend in some other way than just displaying them (idk, like asking extra questions if the user downvotes something that is heavily upvoted by everyone else). For expediency and my own sanity, I'm working on just bringing in changes from the other PRs right now (except for the schema one) and resolving the conflicts by hand. I don't think this will affect your backend work any more than it already will be. Then my plan is to come back later and do the auto-schema generation (and useQuery simplification) and field normalization. |
…es 'database_name' to 'database' in GEOSeriesDatabase for consistency w/ExternalDbRefs. Adds index migrations for db + series queries. Adds 'timed' utility for timing code blocks.
Here's a short video demonstrating the behavior: Screen.Recording.2026-06-23.at.10.10.30.AM.mov
I recently changed the type of
Sure; I re-added |
…ests those columns anyway, leading to N+1 queries
…e new refine.bio parquet and geo in others
…jects column to update refs
…selected techs. Adds commented-out technologies serializer field in case we eventually need it.
…mit it to just entries for which we have predictions
…xed platform serializer
… fixes samples relation to restrict to SearchTerm-identified GEOSeries
Previously, the payload specified start: true, however this begins the data normalization and downloading procedure for a user. This requres a token and the user must agree to refine.bio's licensing agreement. I changed the start value to false and removed the quantile_normalized, quant_sf_only, and svd_algorithm. This will still create a refine.bio dataset and users will go there to select the download parameters on the the refine.bio download page. We can probably get rid of the email input too since that is also related to starting the processing and downloading procedure.
|
@vincerubinetti I know why the refine.bio export isn't working. In the refine.bio module (refine.bio.ts), the POST payload specified data processing and normalization arguments, and also specified The I removed any payload keys related to data processing and specified I pushed these changes in 2153fe9. |
… from the cache to the db under a new SiteStatistic model, updates mgmt command to populate that model
|
Thanks all for your contributions! Merging this now and will deploy to production soon after. |
This PR is a collection of minor fixes for issues brought up in our June 12th meeting.
A non-exhaustive list of tasks I could see being included in this PR:
GEOSeriesDatabaseandExternalDbRefs, update frontend schema accordinglyDetails
These details are just for things I've completed so far; as I complete more I'll update this section.
Aggregated Feedback for Studies
Study responses now include a dict of the following form:
EDIT: Changed this to just return
vote_countto show review activity rather than information about likes/dislikes, since VR brought up that these statistics can influence reviewers.(Since we're moving to global facets, we'll be removing caching from the study endpoints filter entirely, which obviates the need to update the caching policy to account for user-generated feedback. I removed the text I'd written about caching because of that.)
Sample Search
The
queryargument submitted by the sample search box now filters sample results on the backend; the search box searches the following fields inGEOSample:Again, I chose ones that looked informative.
@vincerubinetti one minor thing, if you enter a query that returns 0 results, the UI for the search box disappears making it impossible to correct the query.
External Databases (work-in-progress)
Study responses will include each study's presence in the external databases archs4, recount3, and refine.bio. These will be merged under the existing
databasekey, alongside the current records derived fromGEOSeriesDatabase. Thedatabasekey will have the following form:db_nameis from the set ("archs4", "recount3", "refine.bio"). Each of the subkeys, "external_id" or "url" is optional, and either can also be null (if the record is found, but not value was provided, e.g. for archs4).Currently, I lack external DB IDs for archs4, so that field will be
nullfor all archs4 entries. Let me know if you'd prefer for me to model it some other way, happy to change it.