• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MITLibraries / timdex-dataset-api / 12243134456
99%
main: 93%

Build:
Build:
LAST BUILD BRANCH: USE-306-handle-missing-metadata-or-embeddings
DEFAULT BRANCH: main
Ran 09 Dec 2024 07:48PM UTC
Jobs 1
Files 5
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Dec 2024 07:46PM UTC coverage: 98.013%. Remained the same
12243134456

push

github

jonavellecuerdo
Add post_init method to DatasetRecord to derive partition values

Why these changes are being introduced:
* The [year, month, day] partition values can be derived from
DatasetRecord.run_date and removing the 'partition_values'
mixin from TIMDEXDataset.write method reduces the
complexity of the function by making the write method directly
pull partitions from the DatasetRecord partition columns
instead. For more details, see:
https://mitlibraries.atlassian.net/wiki/spaces/IN/pages/4094296066/Engineering+Plan+Parquet+Datasets+for+TIMDEX+ETL#Rework-Dataset-Partitions-to-use-only-Year-%2F-Month-%2F-Day.

How this addresses that need:
* Derive [year, month, day] attrs for DatasetRecord from 'run-date'
to use as partition values
* Remove option 'partition_values' from TIMDEXDataset.write method
and rely on valid 'run-date' values to derive partitions,
raising an error if 'run-date' cannot be parsed
* Remove deprecated tests

Side effects of this change:
* None

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/TIMX-432

10 of 10 new or added lines in 1 file covered. (100.0%)

2 existing lines in 2 files now uncovered.

148 of 151 relevant lines covered (98.01%)

0.98 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
97.06
0.0% timdex_dataset_api/record.py
1
98.98
0.0% timdex_dataset_api/dataset.py
Jobs
ID Job ID Ran Files Coverage
1 12243134456.1 09 Dec 2024 07:48PM UTC 5
98.01
GitHub Action Run
Source Files on build 12243134456
  • Tree
  • List 5
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12243134456
  • ea736022 on github
  • Prev Build on TIMX-432-rework-dataset-partitions (#12243107501)
  • Next Build on TIMX-432-rework-dataset-partitions (#12243904605)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc