CHIMEFRB / datatrail-cli

CHIME/FRB Data Management CLI
https://chimefrb.github.io/datatrail-cli/
MIT License
2 stars 0 forks source link

[FEATURE] Clearer output in case event exists but is not fully registered #46

Closed tjzegmott closed 12 months ago

tjzegmott commented 12 months ago

Is your feature request related to a problem? Please describe. In the case below, the event dataset was created, but not fully registered - this is an unregistered event (at time of issue).

kshin@scattering:~$ datatrail ps chime.event.baseband.raw 339081551
     Datatrail: 339081551 chime.event.baseband.raw at SEs      
┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┓
┃ Storage Element (SE) ┃ Number of Files ┃ Size of Files [GB] ┃
┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━┩
└──────────────────────┴─────────────────┴────────────────────┘
         Datatrail: Policies for 339081551 chime.event.baseband.raw         
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┓
┃ Policy      ┃ Storage Element ┃ Priority ┃ Default ┃ Delete After [days] ┃
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━┩
│ Replication │ chime           │ low      │ True    │ -                   │
├─────────────┼─────────────────┼──────────┼─────────┼─────────────────────┤
│ Deletion    │ minoc           │ low      │ True    │ 36500               │
│             │ arc             │ high     │ True    │ 60                  │
│             │ chime           │ medium   │ True    │ 90                  │
│             │ kko             │ medium   │ True    │ 90                  │
│             │ gbo             │ medium   │ True    │ 90                  │
├─────────────┼─────────────────┼──────────┼─────────┼─────────────────────┤
│ Belongs to  │ None            │          │         │                     │
└─────────────┴─────────────────┴──────────┴─────────┴─────────────────────┘

Describe the solution you'd like A clear and concise description of what you want to happen.

Bare minimum:

kshin@scattering:~$ datatrail ps chime.event.baseband.raw 339081551
Warning: this may be an unregistered dataset!
     Datatrail: 339081551 chime.event.baseband.raw at SEs      
┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┓
┃ Storage Element (SE) ┃ Number of Files ┃ Size of Files [GB] ┃
┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━┩
└──────────────────────┴─────────────────┴────────────────────┘
         Datatrail: Policies for 339081551 chime.event.baseband.raw         
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┓
┃ Policy      ┃ Storage Element ┃ Priority ┃ Default ┃ Delete After [days] ┃
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━┩
│ Replication │ chime           │ low      │ True    │ -                   │
├─────────────┼─────────────────┼──────────┼─────────┼─────────────────────┤
│ Deletion    │ minoc           │ low      │ True    │ 36500               │
│             │ arc             │ high     │ True    │ 60                  │
│             │ chime           │ medium   │ True    │ 90                  │
│             │ kko             │ medium   │ True    │ 90                  │
│             │ gbo             │ medium   │ True    │ 90                  │
├─────────────┼─────────────────┼──────────┼─────────┼─────────────────────┤
│ Belongs to  │ None            │          │         │                     │
└─────────────┴─────────────────┴──────────┴─────────┴─────────────────────┘

Stretch: Also query the unregistered datasets and output some info from there, eg. reason.