Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

script/delete_records: Add option to match fields with regex pattern #151

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 22, 2023

  1. script/delete_records: Add option to match fields with regex pattern

    Uses rethinkdb's `match` command to filter for records with field value
    that matches the provided regex pattern. See rethinkdb docs for more
    details: https://rethinkdb.com/api/python/match/
    
    This was prompted by our need to delete flu sequence records that have
    accessions with pattern "EPIEPI". We've fixed the accession with #148,
    but we need to manually remove the old duplicate sequence records
    because the flu sequence table uses the accession as the index.¹
    
    ¹ https://github.com/nextstrain/fauna/blob/ec1feb679715890ae6d14efe11c979f27d6f1d6f/vdb/upload.py#L82
    joverlee521 committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    7099585 View commit details
    Browse the repository at this point in the history