Skip to content

BUG - Latest version filter does not appear to work #1506

Description

@hafarooki

Description of the issue

The --version latest filter on imap_data_access seems to not work properly. I wonder if the simpler window function approach in #1502 might fix this.

Steps to reproduce the issue

>>> imap-data-access query --version latest --start-date 20260101 --end-date 20260103
Found [3] matching files in science table
|--------------------------------------------------------------------------------------------------------------------------------|
| Instrument | Data Level | Descriptor | Start Date | Ingestion Date    | Version   | Filename                                   |
|--------------------------------------------------------------------------------------------------------------------------------|
| codice     | l0         | raw        | 20260101   | 20260102 18:21:42 | v001.0001 | imap_codice_l0_raw_20260101_v001.0001.pkts |
| codice     | l0         | raw        | 20260102   | 20260102 18:21:48 | v001.0001 | imap_codice_l0_raw_20260102_v001.0001.pkts |
| codice     | l0         | raw        | 20260103   | 20260104 06:21:54 | v001.0001 | imap_codice_l0_raw_20260103_v001.0001.pkts |
|--------------------------------------------------------------------------------------------------------------------------------|

Expected vs Actual behavior

Only CoDICE is included in the output with the flag. Without the flag, everything is listed. Clearly, the latest version query is doing more than it should!

Code Snippet (If applicable)

Code

Additional notes, affected areas, and suggested fixes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions