ActivityWatch / ActivityWatch/aw-server-rust

REPLACE endpoint for more reliably replacing events

オープン
#115 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Rust
スター
315
フォーク
96
平均マージ
2日 21時間
マージ済み PR(30日)
14

説明

So it's already possible to replace events by setting the "id" property in the /insert endpoint.

So why would you want to have a separate /replace endpoint?
- Because /insert does not fail if the "id" does not exist, it creates a new event
- If one out of many replaces in /insert fails we have no idea what actually happened, we need to do fetch the events after to be certain which should be unnecessary
- Any other reasons, put a comment below and I'll add it to this list

I don't think this is a high priority task right now, might be in the future if we get a use-case which replaces a lot of events.

Resources:
- Discussion on aw-server-python PR by @leoschwarz https://github.com/ActivityWatch/aw-server/pull/57

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。