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

[DOP-22127] Implement FileModifiedTime filter #330

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Conversation

dolfinus
Copy link
Member

@dolfinus dolfinus commented Jan 24, 2025

Change Summary

Implemented FileModifiedTime(since=..., until=...) file filter.
Also improved integration tests for FileDownloader(filters=[...]) and FileUploader(filters=[...]) - list of exact filenames is compared when possible, added integration tests for Regexp and FileSizeRange.

I've discovered that .walk(dir) or .listdir(dir) methods in most of connectors (excluding FTP/FTPS) return timestamp which is rounded to the whole second, but .get_stat(file) method may return timestamp with milliseconds or microseconds precision. Added a note to filter documentation.

Related issue number

Checklist

  • Commit message and PR title is comprehensive
  • Keep the change as small as possible
  • Unit and integration tests for the changes exist
  • Tests pass on CI and coverage does not decrease
  • Documentation reflects the changes where applicable
  • docs/changelog/next_release/<pull request or issue id>.<change type>.rst file added describing change
    (see CONTRIBUTING.rst for details.)
  • My PR is ready to review.

Copy link

codecov bot commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 93.54839% with 4 lines in your changes missing coverage. Please review.

Project coverage is 91.86%. Comparing base (5a3d541) to head (e983a57).
Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
onetl/file/filter/file_mtime.py 91.30% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #330      +/-   ##
===========================================
+ Coverage    91.84%   91.86%   +0.02%     
===========================================
  Files          227      228       +1     
  Lines         9790     9840      +50     
  Branches       999     1007       +8     
===========================================
+ Hits          8992     9040      +48     
- Misses         606      607       +1     
- Partials       192      193       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dolfinus dolfinus changed the title [DOP-22127] Implement FileModificationTime filter [DOP-22127] Implement FileModifiedTime filter Jan 24, 2025
@dolfinus dolfinus marked this pull request as ready for review January 27, 2025 12:34
@dolfinus dolfinus merged commit bfdda89 into develop Jan 28, 2025
40 checks passed
@dolfinus dolfinus deleted the feature/DOP-22127 branch January 28, 2025 07:35
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