The deletion of visits can take a while. To prevent any possible race condition we should invalidate archives only after the visits were deleted.
We recently deleted few visits and noticed the reports are still showing the wrong data. Not sure if this was the problem but be still good to change.
- [ ] Functional review done
- [ ] Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
- [ ] Security review done see checklist
- [ ] Code review done
- [ ] Tests were added if useful/possible
- [ ] Reviewed for breaking changes
- [ ] Developer changelog updated if needed
- [ ] Documentation added if needed
- [ ] Existing documentation updated if needed