DPIclimate / DPIclimate/broker
Do not update last_seen value if the current message timestamp is earlier than the current last_seen time
- Dominant language
- Python
- Stars
- 3
- Forks
- 3
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
Operations such as back-filling data can deliver messages out of order. The code currently updates the last_seen time to the message timestamp without checking if the message timestamp is earlier than the current last_seen time.
This makes it look like devices are late while the back-fill operation is running.
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named. Start by locating the handler that updates a device's last_seen value and inspect how message timestamps are compared. Done means an earlier message leaves the existing last_seen unchanged, while a later timestamp still updates it; add or run the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100