mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
Update changelog
This commit is contained in:
parent
f13800a728
commit
0e90bdf15d
4 changed files with 9 additions and 7 deletions
|
|
@ -10,8 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||
The visit suggestion release.
|
||||
|
||||
1. With this release deployment, data migration will work, starting visits suggestion process for all users.
|
||||
2. After initial visit suggestion process, new suggestions will be calculated every 24 hours, based on points for last 7 days.
|
||||
3. If you have enabled reverse geocoding and provided Photon Api Host, Dawarich will try to reverse geocode your visit and suggest specific places you might have visited, such as cafes, restaurants, parks, etc. If reverse geocoding is not enabled, or Photon Api Host is not provided, Dawarich will not try to suggest places but you'll be able to rename the visit yourself.
|
||||
2. After initial visit suggestion process, new suggestions will be calculated every 24 hours, based on points for last 24 hours.
|
||||
3. If you have enabled reverse geocoding and (optionally) provided Photon Api Host, Dawarich will try to reverse geocode your visit and suggest specific places you might have visited, such as cafes, restaurants, parks, etc. If reverse geocoding is not enabled, or Photon Api Host is not provided, Dawarich will not try to suggest places but you'll be able to rename the visit yourself.
|
||||
4. You can confirm or decline the visit suggestion. If you confirm the visit, it will be added to your timeline. If you decline the visit, it will be removed from your timeline. You'll be able to see all your confirmed, declined and suggested visits on the Visits page.
|
||||
|
||||
- [x] Get places from Google Places API based on visit coordinates
|
||||
|
|
@ -21,6 +21,8 @@ The visit suggestion release.
|
|||
- [x] Add a possibility to rename the visit
|
||||
- [x] Make it look acceptable
|
||||
- [ ] Make visits suggestion an idempotent process
|
||||
- [ ] Places management: if visit is detected at a place with a name, suggest this name as a visit name
|
||||
- [ ] Separate page for places management
|
||||
|
||||
|
||||
### Added
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -3,7 +3,7 @@
|
|||
class VisitSuggestingJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(user_ids: [], start_at: 1.week.ago, end_at: Time.current)
|
||||
def perform(user_ids: [], start_at: 1.day.ago, end_at: Time.current)
|
||||
users = user_ids.any? ? User.where(id: user_ids) : User.all
|
||||
|
||||
users.find_each { Visits::Suggest.new(_1, start_at:, end_at:).call }
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class Visits::Suggest
|
|||
|
||||
nil unless reverse_geocoding_enabled?
|
||||
|
||||
# reverse_geocode(visits)
|
||||
reverse_geocode(visits)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
|||
Loading…
Reference in a new issue