You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a bucket is created with a special hostname/UUID "local" or similar then it should default to the hostname/UUID of the running instance.
Or it should be the responsibility of the watcher to retrieve the UUID from /api/0/info and use it during bucket creation. Although defaulting to the local value seems like better API ergonomics (and would maybe make migration easier).
Additionally, we might want to move the hostname (later UUID) bucket attribute into the data field of buckets. This would impose specific semantics on the data field of buckets (which we currently lack) so might need further discussion (i.e. which data attributes are reserved for internal use in aw-server?)
A few things we should consider changing:
/api/0/infoand use it during bucket creation. Although defaulting to the local value seems like better API ergonomics (and would maybe make migration easier).datafield of buckets. This would impose specific semantics on the data field of buckets (which we currently lack) so might need further discussion (i.e. which data attributes are reserved for internal use in aw-server?)Originally discussed here: ActivityWatch/aw-server-rust#61 (comment)