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

Use timdex-dataset-api v0.9.0 and remove temporary code #316

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

jonavellecuerdo
Copy link
Contributor

@jonavellecuerdo jonavellecuerdo commented Feb 3, 2025

Purpose and background context

Update timdex-pipeline-lambdas helper function dataset_records_exist_for_run to use timdex-dataset-api v0.9.0 and remove temporary workaround that uses low-level PyArrow dataset filtering.

How can a reviewer manually see the effects of these changes?

See result of updates to TIMDEXDataset._get_filtered_dataset in MITLibraries/timdex-dataset-api#99 (review)

Includes new or updated dependencies?

YES

Changes expectations for external applications?

NO

What are the relevant tickets?

Developer

  • All new ENV is documented in README
  • All new ENV has been added to staging and production environments
  • All related Jira tickets are linked in commit message(s)
  • Stakeholder approval has been confirmed (or is not needed)

Code Reviewer(s)

  • The commit message is clear and follows our guidelines (not just this PR message)
  • There are appropriate tests covering any new functionality
  • The provided documentation is sufficient for understanding any new functionality introduced
  • Any manual tests have been performed and verified
  • New dependencies are appropriate or there were no changes

Why these changes are being introduced:
* As of v0.9.0, TDA accepts filtering fields using 'or'
conditions, allowing the removal of a temporary workaround
in the helper method that checks for existence of records in
a TIMDEXDataset post-filtering.

How this addresses that need:
* Remove temporary workaround
* Update 'load' method to filter action using list of
possible values

Side effects of this change:
* None

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/TIMX-455
@jonavellecuerdo jonavellecuerdo requested a review from a team February 3, 2025 20:51
Copy link
Contributor

@ghukill ghukill left a comment

Choose a reason for hiding this comment

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

Cutting is delivering! Looks good. Thanks for knocking these out @jonavellecuerdo.

@jonavellecuerdo jonavellecuerdo merged commit 2aad716 into main Feb 3, 2025
3 checks passed
@jonavellecuerdo jonavellecuerdo deleted the TIMX-455-update-lambdas-helper-method branch February 3, 2025 22:05
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