akash-network / support

Akash Support and Issue Tracking
Apache License 2.0
5 stars 4 forks source link

simplify commands: common method for finding relevant object #63

Open boz opened 3 years ago

boz commented 3 years ago

We currently require explicit IDs for all commands - anywhere from just --dseq to thew entire LeaseID. This is unnecessarily cumbersome - many times there is only one reasonable set of values to use for the ID.

IDs in the system are generally additive with respect to a related object - OrderID = GroupID + OSeq, BidID = OrderID + Provider, etc... And indexes are laid out such that the "smaller" object can act as a prefix search for the "larger" object.

  1. --owner
  2. --dseq
  3. --gseq
  4. --oseq
  5. --provider

I'd like there to be a way to set some runitime defaults where possible. For example:

If the target object is not fully specified and the heuristic fails, it should fail with a message that indicates that more information is needed.

As a stretch goal, it'd also be nice to get a full collection of matching objects. For instance, for the akash provider send-manifest command, It could automatically send the manifest to all providers if a --all flag is set.