Ticket #1591 (closed developer task: fixed)
Replace usage of cities, regions and countries with geonames_cache
| Reported by: | planetcruiser | Owned by: | planetcruiser |
|---|---|---|---|
| Priority: | blocker | Milestone: | 0.5.7 - bugfixing |
| Component: | BW Geo | Keywords: | |
| Cc: |
Description (last modified by planetcruiser) (diff)
Issue:
- Currently we have two ways of retrieving city, region and country information for members (city/region/country tables and geonames_* tables)
- This should be reduced to one way in order to have less source for error
Solution:
- Only use geonames_cache table to lookup location data
- Remove cities, regions and countries tables
Notes:
- Currently the cities table is corrupt/truncated on the live database, queries to it are unreliable - this increases urgency!
Change History
comment:1 Changed 4 months ago by planetcruiser
- Owner set to planetcruiser
- Status changed from new to accepted
comment:2 Changed 4 months ago by planetcruiser
last profile visitors on personal start page fixed via https://gitorious.org/bewelcome/rox/commit/437884034d9f7a2f92527d03659e9e57c852167f
comment:3 Changed 4 months ago by planetcruiser
/places overview counters fixed via https://gitorious.org/bewelcome/rox/commit/ffb1ae38e47b415e6b8600b7632b2abc7d809535
comment:4 Changed 4 months ago by planetcruiser
member counters for regions of a country fixed via https://gitorious.org/bewelcome/rox/commit/cef3cf8e2244ba364b260ea7468663ba1221471e
comment:5 Changed 4 months ago by planetcruiser
fixed display of regions via https://gitorious.org/bewelcome/rox/commit/e0d96a692ab64fe29daa20e42119d03e5f0ec243
comment:6 Changed 4 months ago by planetcruiser
fixed display of cities via https://gitorious.org/bewelcome/rox/commit/8d0ad0c19d18c3aefe517e747f12952ff540736e
comment:7 Changed 4 months ago by planetcruiser
country member list fixed via https://gitorious.org/bewelcome/rox/commit/8d4ce875d08798f48645530767aaef52d14e5905
comment:8 Changed 4 months ago by planetcruiser
region member list fixed via https://gitorious.org/bewelcome/rox/commit/3f8af5049ade8a844fefb64ed177a680667cec3b
comment:9 Changed 4 months ago by planetcruiser
- Description modified (diff)
- Summary changed from Replace usage of cities and countries with geonames_cache to Replace usage of cities, regions and countries with geonames_cache
comment:10 follow-up: ↓ 12 Changed 4 months ago by globetrotter_tt
There are still problems with some country codes on alpha. See http://alpha.bewelcome.org/places/AX or http://alpha.bewelcome.org/places/GU for example
Also "Kosovo" is not shown in the list, but two members:
have already signed up there long time ago, but were never set to active because of this.
comment:11 Changed 4 months ago by planetcruiser
replacing all remaining usage of country/region/city tables (not considering htdocs/bw/) via:
- https://gitorious.org/bewelcome/rox/commit/34dc09516a4a14b15a86b6c4fdf7045bb208f3e5
- https://gitorious.org/bewelcome/rox/commit/56d0569ac4d6b6b2f828208e46389c56bb251e43
- https://gitorious.org/bewelcome/rox/commit/e54abf7acc30f66927ff154a568ed92fc2028765
- https://gitorious.org/bewelcome/rox/commit/66c177d1475f9aafe90ee496542a774ad7443f3e
- https://gitorious.org/bewelcome/rox/commit/8d505a2706b34ece2f281d11a7210b21178e80d0
- https://gitorious.org/bewelcome/rox/commit/b0e2995d993cb368f4e430873dcea43464450625
- https://gitorious.org/bewelcome/rox/commit/fd83ec5197e5b87c727e7c0861f7d0ac7a92b685
- https://gitorious.org/bewelcome/rox/commit/920c6716ea5315990ac8852d15701fa880d0feff
- https://gitorious.org/bewelcome/rox/commit/5a5c17774782d65e4361f99ec8acabefc4982e0c
- https://gitorious.org/bewelcome/rox/commit/9873f31aac702cd53a116a02ff07941cf3512777
- https://gitorious.org/bewelcome/rox/commit/f98f374796e00adb8a65b20ac7a5027bef775193
- https://gitorious.org/bewelcome/rox/commit/63d15dc2fc85b1e824ee79d3f5dc87bed8df9fce
- https://gitorious.org/bewelcome/rox/commit/e4456c4ee8c16a0c99d2460ba96e4ec0ef52c7fb
- https://gitorious.org/bewelcome/rox/commit/e9fcd1c0853ecef210a0d599b2e4ed07d567187d
- https://gitorious.org/bewelcome/rox/commit/f942e97967a752cc006660a3ead66eaab40e41f5
- https://gitorious.org/bewelcome/rox/commit/a14589d5e1ed3f2ed063ba92ba2634512853a1d9
- https://gitorious.org/bewelcome/rox/commit/2392379384b08f59eb8cda00e27c5c4e1d4c5379
- https://gitorious.org/bewelcome/rox/commit/e7cf3f3c64a1ffdd279c2463db796f0a76693972
- https://gitorious.org/bewelcome/rox/commit/b4848b49b5060b27abd5377767ef62f4f5e009b2
comment:12 in reply to: ↑ 10 ; follow-up: ↓ 14 Changed 4 months ago by planetcruiser
Replying to globetrotter_tt:
There are still problems with some country codes on alpha. See http://alpha.bewelcome.org/places/AX or http://alpha.bewelcome.org/places/GU for example
Also "Kosovo" is not shown in the list, but two members:
have already signed up there long time ago, but were never set to active because of this.
could you please create a new ticket for this?
comment:13 follow-up: ↓ 15 Changed 4 months ago by planetcruiser
- follow_up changed from none to test on alpha
- Status changed from accepted to closed
- Resolution set to fixed
phew, this was a big one. i will compile a list of effected features later.
please test ;)
comment:14 in reply to: ↑ 12 Changed 4 months ago by globetrotter_tt
Replying to planetcruiser:
Replying to globetrotter_tt:
There are still problems with some country codes on alpha. See http://alpha.bewelcome.org/places/AX or http://alpha.bewelcome.org/places/GU for example
Also "Kosovo" is not shown in the list, but two members:
have already signed up there long time ago, but were never set to active because of this.
could you please create a new ticket for this?
new ticket: #1601
comment:15 in reply to: ↑ 13 Changed 4 months ago by planetcruiser
Replying to planetcruiser:
i will compile a list of effected features later.



will start with this now