Skip to content

Conversation

@moseshll
Copy link
Contributor

@moseshll moseshll commented Aug 22, 2025

  • Add grin_gfv Perl module which does most of the heavy lifting.
  • Add tests for same
  • Update bin/grin_gfv.pl to use the new module.
  • For comparison, see the attachments with the expected outcome of the next run (existing means the current grin_gfv.pl vs the new version in this PR). (Note: I think existing_revert.txt has the last character cut off, should be wu.89091057513)
    existing_revert.txt
    existing_update.txt
    new_revert.txt
    new_update.txt

- Add `grin_gfv` Perl module which does most of the heavy lifting.
- Add tests for most of the exposed functionality
  - FIXME: still need tests for `write_update_to_gfv` and `write_reversion_from_gfv`
- Use experimental version of db-image with `feed_*` tables added
  - FIXME: can we remove `sql/ingest.sql` so we don't have to maintain them here?
- Updated `bin/grin_gfv.pl` to `bin/new_grin_gfv.pl`
  - TODO run some side by side comparisons against actual data (with `noop` flag and the dangerous stuff excised)
  - The new one will replace the old
@moseshll moseshll marked this pull request as ready for review August 25, 2025 19:34
@moseshll moseshll requested a review from aelkiss August 25, 2025 19:34
Copy link
Member

@aelkiss aelkiss left a comment

Choose a reason for hiding this comment

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

Overall I'm very happy with the tests and extraction into subroutines.

Two things to point out:

  • Tickets had requested that items be sorted within each block in a report
  • Using icus/gatt as the reversion check confused me, since only items with reason bib are eligible to receive pdus/gfv

@moseshll moseshll merged commit eb0baa4 into main Aug 28, 2025
1 check passed
@moseshll moseshll deleted the ETT-519-520_gfv_reports branch August 28, 2025 19:20
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