Skip to content

Fix extract_classifications_pipeline empty string bug#219

Merged
Thomas-S-Allen merged 1 commit intoadsabs:masterfrom
Thomas-S-Allen:solr_updater_fix
Jan 2, 2026
Merged

Fix extract_classifications_pipeline empty string bug#219
Thomas-S-Allen merged 1 commit intoadsabs:masterfrom
Thomas-S-Allen:solr_updater_fix

Conversation

@Thomas-S-Allen
Copy link
Copy Markdown
Contributor

Use list comprehension to remove empty strings from list of classifications

Copy link
Copy Markdown
Contributor

@tjacovich tjacovich left a comment

Choose a reason for hiding this comment

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

@Thomas-S-Allen How does this line behave if no elements exist? Is db_classifications just []?

@Thomas-S-Allen
Copy link
Copy Markdown
Contributor Author

Yes, if there are no elements, db_classifications will just be [], and be caught by the current logic.

@tjacovich tjacovich self-requested a review January 2, 2026 23:03
@Thomas-S-Allen Thomas-S-Allen merged commit 3ecf071 into adsabs:master Jan 2, 2026
2 checks passed
tjacovich added a commit that referenced this pull request Feb 19, 2026
* adding lockfile scripts to long tasks (#213)

* adding aws to requirements (#214)

* adding aws to requirements

* changing aws version

* changing aws version 2

* changing aws version 3

* Added user-defined fields for scix id generation (#212)

* Added user-defined fields for scix id generation

* updated test cases

* new version of scixpipelineutils

* updating test scixids

* updating test scixids

* updating test scixids #3

* modified test cases to have at least title in bib_data

* Update requirements.txt

Co-authored-by: Taylor Jacovich <tjacovich@cfa.harvard.edu>

---------

Co-authored-by: Taylor Jacovich <tjacovich@cfa.harvard.edu>

* Update update_record to call async task for boost_mesage. Add queue for receiving augment processes. (#215)

* Update update_record to call async task for boost_mesage. Add queue for receiving augment processes.

* Broke boost call out of update storage to remove circular import.

* removed circular import.

* Fix args in task_boost_request.

* Add awscli back to requirements.txt

Added awscli version 1.27.60 to requirements.

* Added support for pub_abbrev from import (#217)

* Fix extract_classifications_pipeline empty string bug (#219)

* Adding has_bib_data label (#216)

* Adding has_bib_data label

* Adding has_bib_data label

* removing comment

* removing unnecessary check

* Rewrite task_update_record so that calls to task_boost_request is cal… (#220)

* Rewrite task_update_record so that calls to task_boost_request is called for individual records when the message is a list type.

* Add IGNORED_BOOST_PAYLOAD_TYPES to config.

* upgrading scixpipelineutils requirement

* Cleared out all classifier code.

* update scix ids (#223)

---------

Co-authored-by: Fernanda <femalves@users.noreply.github.com>
Co-authored-by: mugdhapolimera <35502000+mugdhapolimera@users.noreply.github.com>
Co-authored-by: Kelly Lockhart <2926089+kelockhart@users.noreply.github.com>
Co-authored-by: Thomas S. Allen <tom.sco@gmail.com>
Co-authored-by: Mugdha Polimera <mugdhapolimera@gmail.com>
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