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

SCIX-311 default collection not applied #456

Merged

Conversation

thostetler
Copy link
Member

Adds All to the default databases.
Gets default databases working on new searches

Improves logging and error handling in query-utils

Copy link

codecov bot commented Mar 23, 2024

Codecov Report

Attention: Patch coverage is 57.81250% with 27 lines in your changes are missing coverage. Please review.

Project coverage is 47.5%. Comparing base (168ed86) to head (ce8b0ee).

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #456     +/-   ##
========================================
- Coverage    47.6%   47.5%   -0.0%     
========================================
  Files         405     409      +4     
  Lines       41614   41858    +244     
  Branches      596     600      +4     
========================================
+ Hits        19773   19857     +84     
- Misses      21830   21990    +160     
  Partials       11      11             
Files Coverage Δ
src/api/user/models.ts 100.0% <100.0%> (ø)
src/api/user/types.ts 100.0% <100.0%> (ø)
...itationExporter/components/DescriptionCollapse.tsx 96.8% <100.0%> (+0.3%) ⬆️
src/components/SearchFacet/YearHistogramSlider.tsx 25.6% <100.0%> (ø)
src/components/Settings/Search/Description.tsx 100.0% <100.0%> (ø)
src/query.ts 96.9% <ø> (-<0.1%) ⬇️
...isualizations/Containers/OverviewPageContainer.tsx 23.0% <50.0%> (ø)
src/auth-utils.ts 45.7% <0.0%> (-1.3%) ⬇️
src/query-utils.ts 88.2% <45.0%> (-10.1%) ⬇️

... and 4 files with indirect coverage changes

@thostetler thostetler force-pushed the SCIX-311-default-collection-not-applied branch from 2c4cb1f to 6cd8bd8 Compare March 24, 2024 03:02
@thostetler thostetler force-pushed the SCIX-311-default-collection-not-applied branch 2 times, most recently from 5d0ba11 to 764f5e1 Compare April 3, 2024 02:24
Moves faNameYearRange out of the query utility module since that module is relatively generic and that var is only used in a couple places.
Adjusted Box styling to remove horizontal scroll and added margin to improve the readability of the content.
Added logging to track the removal of FQ headers and FQ keys in the removeFQHeader and removeFQ functions to provide better visibility and error tracking during query modifications.
Fix default collection to show every option
Update description
@thostetler thostetler force-pushed the SCIX-311-default-collection-not-applied branch from 764f5e1 to 317eed4 Compare April 3, 2024 02:44
Copy link
Member

@shinyichen shinyichen left a comment

Choose a reason for hiding this comment

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

A question: is the 'All' option necessary? Is it just convenience? Or does All include things beyond the specified categories?

If I selected all categories but not 'All', is it equivalent to selecting 'All' ?

As pointed out in review, was including ALL twice.
@thostetler
Copy link
Member Author

A question: is the 'All' option necessary? Is it just convenience? Or does All include things beyond the specified categories?

If I selected all categories but not 'All', is it equivalent to selecting 'All' ?

I agree, I think it's just a way of explicitly saying you want to NOT apply any filters.
And yeah AFAIK all of these are the same:

  • ALL selected (resulting in no collections applied)
  • None selected (resulting in DEFAULT -- but in this case none -- collections applied)
  • All collections selected (resulting in an OR'd filter including all the collections)

I think the point is to allow users to explicitly set their intention here. In Nectar, right now we don't have any global default filters, so it doesn't change anything to set ALL -- but if we did, then this would explicitly say we want NO filters applied.

@thostetler thostetler merged commit 550caa1 into adsabs:master Apr 4, 2024
3 of 4 checks passed
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.

None yet

2 participants