Skip to content

BFD-4788: Switch from filter out to pruning for part d obsolete records - #3217

Merged
marshallweekley-eng merged 16 commits into
masterfrom
BFD-4788
Jul 28, 2026
Merged

BFD-4788: Switch from filter out to pruning for part d obsolete records#3217
marshallweekley-eng merged 16 commits into
masterfrom
BFD-4788

Conversation

@marshallweekley-eng

Copy link
Copy Markdown
Contributor

JIRA Ticket:
BFD-4788

What Does This PR Do?

Switch from filter out to pruning for part d obsolete records

What Should Reviewers Watch For?

Check prune logic and new stage. It will need to reconcile with other prune work out there based on commit order.

If you're reviewing this PR, please check for these things in particular:
Take note of the repeatable script for flyway. To date we have just created a new script to update a view. This works a little differently. Flyway checks the check sum of the repeatable file and if it changes it runs the script again. It is useful for it to be easy as an engineer to see the most up to date schema of a given view. They are typically helpful for concepts like views and functions and lets source control give revision history. They run last always in the flyway deployment. If we do not like the repeatable script its contents can be moved to an versioned script.

What Security Implications Does This PR Have?

Please indicate if this PR does any of the following:

  • Adds any new software dependencies
  • Modifies any security controls
  • Adds new transmission or storage of data
  • Any other changes that could possibly affect security?

N/A

  • I have considered the above security implications as it relates to this PR. (If one or more of the above apply, it cannot be merged without the ISSO or team security engineer's (@sb-benohe) approval.)
  • I have created tests to sufficiently ensure the reliability of my code, if applicable. If this is a modification to an existing piece of code, I have audited the associated tests to ensure everything works as expected.

Validation

Tests are updated to check for this scenario. I tested the view update and it prevents the server-ng from ever seeing the unpruned records.

@mel1-G

mel1-G commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

I'm sold on the repeatable script here and for future changes. I didn't know that existed. This is going to reduce a lot of the clutter of scripts. Nice find :) Happy to approve once your merge conflicts are resolved.

Comment thread apps/bfd-db-migrator-ng/migrations/V1_35_0__add_bene_ma_part_d_obs_date_idx.sql Outdated
marshallweekley-eng and others added 2 commits July 23, 2026 07:58
…_obs_date_idx.sql

Co-authored-by: aschey-forpeople <162160982+aschey-forpeople@users.noreply.github.com>
mel1-G
mel1-G previously approved these changes Jul 23, 2026
Comment thread apps/bfd-pipeline-idr/pipeline_stages.py Outdated
# Conflicts:
#	apps/bfd-pipeline-idr/pipeline_stages.py
#	apps/bfd-pipeline-idr/pipeline_utils.py
@bfd-sast

bfd-sast Bot commented Jul 28, 2026

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed for 'bfd-parent'

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@marshallweekley-eng
marshallweekley-eng added this pull request to the merge queue Jul 28, 2026
Merged via the queue into master with commit bb05a7f Jul 28, 2026
13 checks passed
@marshallweekley-eng
marshallweekley-eng deleted the BFD-4788 branch July 28, 2026 20:15
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