Commit graph

390 commits

Author SHA1 Message Date
Edward Betts 1771f19f56 Alert admin about unsupported time precision 2021-11-13 16:41:15 +00:00
Edward Betts 7b181cd1b3 Better output for centuries in format_wikibase_time + tests. 2021-11-13 16:27:46 +00:00
Edward Betts fd5829f8d2 Accept precision=7 (century) for time format 2021-11-13 10:45:46 +00:00
Edward Betts b22d4058fd Add new get_tags_for_isa_item function 2021-11-13 10:44:56 +00:00
Edward Betts ed56bdc767 Add industrial park (Q329683) to stop list. 2021-11-12 12:18:53 +00:00
Edward Betts 734dd4025c Make skip_tags global. 2021-11-12 12:17:59 +00:00
Edward Betts 66f214a51b Don't call session.commit in get_item function. 2021-11-12 12:17:15 +00:00
Edward Betts 45ce752458 Hide debugging info. Explain extra tags/keys. 2021-11-12 12:15:47 +00:00
Edward Betts 87fae39c63 Show house number for OSM candidates without street name 2021-11-12 12:15:07 +00:00
Edward Betts b18162fb1a Track which map bounds are already done 2021-10-22 12:06:10 +01:00
Edward Betts 74f82ecbb0 Show brand:wikidata in candidates list 2021-10-22 11:59:11 +01:00
Edward Betts 43cf62e997 Move 'no name' in candidates list 2021-10-22 11:58:34 +01:00
Edward Betts 463e05b856 Remove unused code 2021-10-22 11:58:03 +01:00
Edward Betts b5773b9df3 Update API base URL 2021-10-22 11:55:05 +01:00
Edward Betts cb1acfd50d Show detailed source of tags when no candidates are found 2021-10-22 11:52:21 +01:00
Edward Betts d37a177d38 Handle updating OSM object wikidata tag 2021-10-22 11:50:25 +01:00
Edward Betts fd496be2ff API changes 2021-10-22 11:43:27 +01:00
Edward Betts 20a95c73f2 Catch and report API errors to user 2021-10-22 11:40:10 +01:00
Edward Betts e7f8884b7b Add support for changing Wikidata tag on OSM object 2021-10-22 11:32:26 +01:00
Edward Betts e8b1b411e5 Watercouses are also linear features 2021-10-22 11:31:34 +01:00
Edward Betts 2c8ac7259c Look for more variations of street names 2021-10-22 11:30:27 +01:00
Edward Betts badef91b97 No need for user object. Grab item if needed. 2021-10-22 11:27:50 +01:00
Edward Betts bd9323006b Start work on IsA page 2021-10-22 10:02:52 +01:00
Edward Betts 14abffe79c Avoid crash when searching for USA 2021-10-22 10:01:46 +01:00
Edward Betts 83a06d9ed7 Rename project to 'OWL Map' 2021-10-22 10:01:23 +01:00
Edward Betts 9c426b2918 Item methods to work out if it is a linear feature 2021-10-22 09:54:04 +01:00
Edward Betts 38e23ec8cc New method to get IsA details for item 2021-10-22 09:53:40 +01:00
Edward Betts f291ce993e New table to store extra tags/keys
We get the OSM tags/keys for matching from the item types in Wikidata.

Sometimes we want to check extra tags/keys without adding them to
Wikidata.

This new table is a place to store them, instead of having them in the
source code.

In the future normal users will be able to add or remove extra
tags/keys.
2021-10-22 09:44:53 +01:00
Edward Betts c1fc249a14 Remove unused code 2021-10-22 09:43:36 +01:00
Edward Betts dd7a92de77 Update extra keys 2021-10-22 09:43:14 +01:00
Edward Betts 7a3cb474ac Improve error handling
* Report errors to admin by e-mail
* Return details of error in JSON for API calls
* Show error details page for non-API calls
2021-10-22 08:02:46 +01:00
Edward Betts db7b13b706 Skip more tags 2021-10-15 09:49:08 +01:00
Edward Betts 8efbc8a9c1 assembly plant (Q47509284) should match landuse=brownfield 2021-10-09 18:04:52 +02:00
Edward Betts b4882a8e9f Add some extra tags to consider 2021-10-09 13:00:43 +02:00
Edward Betts d6f317e9bb No mock uploads for now 2021-10-09 13:00:21 +02:00
Edward Betts 0e1df75725 'Part of' in item detail links to object on OSM 2021-10-06 19:14:47 +02:00
Edward Betts bd808243f2 Show heritage designation in item detail 2021-10-06 19:13:34 +02:00
Edward Betts 8d5476bd43 Show aliases in item detail 2021-10-06 19:06:42 +02:00
Edward Betts f6418da9a9 Add zoom to item button 2021-10-06 19:05:04 +02:00
Edward Betts 48e185260f Item details switches to single column on narrow screen. 2021-10-06 19:02:18 +02:00
Edward Betts b49d92b0bd Include heritage designation in Wikidata item details 2021-10-06 18:43:37 +02:00
Edward Betts 71ac793101 Include duration in api_missing_wikidata_items response 2021-10-06 18:42:44 +02:00
Edward Betts a18528d2f9 Incldue max_distance in api_find_osm_candidates response 2021-10-06 18:42:06 +02:00
Edward Betts f8eeb4200c Add Wikidata links to documentation 2021-08-05 08:44:13 +02:00
Edward Betts c47590dd65 Switch save default from mock to live. 2021-08-05 08:43:15 +02:00
Edward Betts 6c46c3713a All items filters selected by default, for now. 2021-08-05 08:32:06 +02:00
Edward Betts b825bb68cc Reduce maximum item count for map 2021-08-05 08:31:07 +02:00
Edward Betts 95a9d16564 More tags to check for 2021-07-30 16:05:18 +02:00
Edward Betts 9b7f6ee878 Add item type filter 2021-07-30 16:02:41 +02:00
Edward Betts a791de7a24 Don't hide the loading spinner when an item is open 2021-07-24 12:28:34 +02:00