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

PIPELINE-1860 Added Papua New Guinea normalization pipeline #22

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

rdgfuentes
Copy link
Contributor

@rdgfuentes rdgfuentes commented Sep 13, 2024

https://globalfishingwatch.atlassian.net/browse/PIPELINE-1860

  • Added PNG normalization pipeline
  • Included additional positions from 2 hours before start_date so that implied speed and course can be calculated for the first position of every vessel in start_date, otherwise it was null
  • Added FilterDateRange transformation to exclude those additional positions before start_date from the output so that they are not stored in BQ.

Copy link

nx-cloud bot commented Sep 13, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 2d2db44. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

Copy link

@tomaslink tomaslink left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@andres-arana andres-arana left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 44 to 49
self.start_date = parse_yyyy_mm_dd_param(params.start_date).replace(
tzinfo=dt.timezone.utc
)
self.end_date = parse_yyyy_mm_dd_param(params.end_date).replace(
tzinfo=dt.timezone.utc
)

Choose a reason for hiding this comment

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

Isn't this something we might want to have embedded in the parse_yyyy_mm_dd_param function instead of here? I can't find a reason why we might want to include local tz logic anywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, I'll move it. Thanks

Copy link

codecov bot commented Sep 17, 2024

Codecov Report

Attention: Patch coverage is 83.54430% with 13 lines in your changes missing coverage. Please review.

Project coverage is 76.58%. Comparing base (8cc94ea) to head (2d2db44).
Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
...normalization/transforms/png_map_source_message.py 77.55% 8 Missing and 3 partials ⚠️
packages/libs/utils/utils/convert.py 50.00% 1 Missing ⚠️
packages/libs/utils/utils/dates.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           develop      #22       +/-   ##
============================================
+ Coverage         0   76.58%   +76.58%     
============================================
  Files            0       46       +46     
  Lines            0      756      +756     
  Branches         0       69       +69     
============================================
+ Hits             0      579      +579     
- Misses           0      159      +159     
- Partials         0       18       +18     

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

@rdgfuentes rdgfuentes merged commit a93cffe into develop Sep 18, 2024
7 checks passed
@rdgfuentes rdgfuentes deleted the feature/PIPELINE-1860-png-normalization branch September 18, 2024 12:57
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.

3 participants