WIP: Resolve "Add geolocation of persons" #1865

Closed
tteichler wants to merge 6 commits from 215-add-geolocation-of-persons into master
Owner

Closes #215

Closes #215
Author
Owner

changed milestone to %"2.0a2"

changed milestone to %"2.0a2"
Author
Owner

added 1 commit

  • 50664195 - Add celery task to set longitude and latitude of person

Compare with previous version

added 1 commit <ul><li>50664195 - Add celery task to set longitude and latitude of person</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/220/diffs?diff_id=1715&start_sha=1cc55ed59725f3951800e6aa17ec5528c65dbb7e)
Author
Owner

assigned to @nik

assigned to @nik
Author
Owner

Maybe you can do a short review ;)?

Maybe you can do a short review ;)?
Author
Owner

added 1 commit

  • 53a2e618 - Add celery task to set longitude and latitude of person

Compare with previous version

added 1 commit <ul><li>53a2e618 - Add celery task to set longitude and latitude of person</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/220/diffs?diff_id=1717&start_sha=506641955b1efcce491fd7101d29b9bb707e1429)
Owner
  1. If the feature is optional, do not hard-depend on geopy.
  2. Have you researched options for external libraries, both for the geocoding and for a specialised model field?
  3. What is the rationale for not having the geocoding called from Person.save? Maybe by having a celery task to update one person by id, and calling that from save?
1. If the feature is optional, do not hard-depend on geopy. 2. Have you researched options for external libraries, both for the geocoding and for a specialised model field? 3. What is the rationale for not having the geocoding called from `Person.save`? Maybe by having a celery task to update one person by id, and calling that from `save`?
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>f168c8de - Do not hard-depend on geopy</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/220/diffs?diff_id=1720&start_sha=53a2e618aaa74a4496bf7906d48beb5508647d28)
Author
Owner

added 1 commit

  • 97605ccc - Move to util

Compare with previous version

added 1 commit <ul><li>97605ccc - Move to util</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/220/diffs?diff_id=1723&start_sha=f168c8de9ca6cfc6b4e567a8c5433e3eb9df0275)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>003ca60f - Move to util</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/220/diffs?diff_id=1725&start_sha=97605ccc068796bfeaf93b30e5fe3b42cee70233)
Author
Owner

If the feature is optional, do not hard-depend on geopy.

Done

Have you researched options for external libraries, both for the geocoding and for a specialised model field?

Nope. This library simply saves the coordinates in the fields. Maybe we can look into this together later

What is the rationale for not having the geocoding called from Person.save? Maybe by having a celery task to update one person by id, and calling that from save?

update_geolocation() is now called from save()

> If the feature is optional, do not hard-depend on geopy. Done > Have you researched options for external libraries, both for the geocoding and for a specialised model field? Nope. This library simply saves the coordinates in the fields. Maybe we can look into this together later > What is the rationale for not having the geocoding called from `Person.save`? Maybe by having a celery task to update one person by id, and calling that from `save`? update_geolocation() is now called from save()
Author
Owner

resolved all threads

resolved all threads
Author
Owner

added 22 commits

  • 003ca60f...5adc7377 - 21 commits from branch master
  • 4feb0246 - Merge branch 'master' into 215-add-geolocation-of-persons

Compare with previous version

added 22 commits <ul><li>003ca60f...5adc7377 - 21 commits from branch <code>master</code></li><li>4feb0246 - Merge branch &#39;master&#39; into 215-add-geolocation-of-persons</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/220/diffs?diff_id=1750&start_sha=003ca60f4b0c33933215802c8d29954845e45eb4)
Owner

removed milestone

removed milestone
Author
Owner

added 598 commits

  • 4feb0246...75256e08 - 597 commits from branch master
  • 664f72b3 - Merge branch 'master' into 215-add-geolocation-of-persons

Compare with previous version

added 598 commits <ul><li>4feb0246...75256e08 - 597 commits from branch <code>master</code></li><li>664f72b3 - Merge branch &#39;master&#39; into 215-add-geolocation-of-persons</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/220/diffs?diff_id=2713&start_sha=4feb024670e6fcde17aad0eeca3d55cd622356c3)
Owner

Seems somehow unrelated, and we do not even use constance anymore.

Seems somehow unrelated, and we do not even use constance anymore.
Owner

Should be a method on Person.

Should be a method on `Person`.
Author
Owner

resolved all threads

resolved all threads
Author
Owner

changed this line in version 9 of the diff

changed this line in [version 9 of the diff](/AlekSIS/official/AlekSIS/-/merge_requests/220/diffs?diff_id=2715&start_sha=664f72b327471d9ed38262e2e7e98b9398f23493#abc9d828b78bd9d36e05475d0bc91119bc5bc6b0_395_395)
Author
Owner

changed this line in version 9 of the diff

changed this line in [version 9 of the diff](/AlekSIS/official/AlekSIS/-/merge_requests/220/diffs?diff_id=2715&start_sha=664f72b327471d9ed38262e2e7e98b9398f23493#8c15ef90a05145592bdded0de1ca9faad06ca049_337_337)
Author
Owner

resolved all threads

resolved all threads
Author
Owner

added 1 commit

  • d46f05ba - Make update_geolocation method on person

Compare with previous version

added 1 commit <ul><li>d46f05ba - Make update_geolocation method on person</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/220/diffs?diff_id=2715&start_sha=664f72b327471d9ed38262e2e7e98b9398f23493)
nik closed this pull request 2026-01-19 13:38:13 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core!1865
No description provided.