ActivityWatch / ActivityWatch/aw-server-rust

DELETE endpoint to delete event(s)

Đang mở
#60 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Rust
Star
315
Fork
96
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
14

Mô tả

My suggested API:
- Remove `DELETE /events/` endpoint
- Add `POST /events/delete/by_ids`
- Add `GET /events/delete/by_period?start=X&end=X`

Reasons why the old delete API is bad and should be replaced completely:
- The new "by_ids" endpoint makes it possible to remove multiple specific events in one go while the old API could only delete one event at a time.
- The old DELETE endpoint is also broken because both `/events/` and `/events/count` are in the same namespace

Things which need to be considered:
- Vacuuming the database

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.