ctengel / taskmaster

Master your tasks
GNU General Public License v3.0
0 stars 0 forks source link

CLI prioritization/order/frogs #45

Open ctengel opened 3 years ago

ctengel commented 3 years ago

Related to #55 ?

ctengel commented 1 year ago

we need prioritzation to work like so

  1. Reserved
  2. ordering LSB (1 is higher)
  3. ordering MSB (1 is higher)
  4. priority LSB (0=B_, 1=AC)
  5. priority MSB (0=C_, 1=AB)
  6. if 6 is:
    • 0 (not unstaged)
      • 0=normal, merged in from later date
      • 1=higher, merged in from higher date
    • 1 (unstaged)
      • 0=normal, manually individually unstaged
      • 1=higher, bulk unstaged (like at end of day)
  7. unstaged, i.e. 1 if the task had been staged and was unstaged
  8. reserved

pri up increases the 3&4 bits (none=>C=>B=>A) but does not change the others

pri down zeroes out 7-5, 3-0

stop using wakeup as a way to prioritize

ctengel commented 1 year ago

ensure it is available from API - probably is!

ctengel commented 1 year ago

For now implement in client library

ctengel commented 1 year ago

Problem: above description shows priority with 0 as lowest and 255 as highest (descending), but API currently has it implemented ascending

ctengel commented 1 year ago

Currently it is not used anywhere - it had been in legacy, but not in current.

Currently it is again ascending (i.e. lower integers are highest priority)

Other curveball - sqlite considers null to be LOW, whilst postgres considers null to be HIGH

Default is Null and I think we would want default to be low. We can work around by explicitly asking NULLSLAST or setting default=0

ctengel commented 1 year ago

The simple answer for now - modify the api to do desc and rely on sqlite, with more explicit if/when we move to postgres

(note FROG is considered more important than PRI, but not much else)

ctengel commented 1 year ago

Still needed