Sarah Hoffmann
cc9c8963f3
Merge pull request #3949 from Itz-Agasta/try
...
Feat: Add admin function for granting access to read-only user
2026-02-02 09:53:24 +01:00
James Addison
5cdc6724de
Tests: set boundary admin level to enable linking
2026-01-31 22:00:23 +00:00
Itz-Agasta
5e2ce10fe0
Adds mock grants SQL file for import test
2026-01-27 17:55:51 +05:30
Itz-Agasta
e77a4c2f35
Switch to ast.literal_eval for dict parsing
...
Due to some test data in the BDD feature files includes Python raw strings and escape sequences that standard json.loads() cannot parse switching to safer Python literal evaluation
for converting string representations of dictionaries.
2026-01-24 15:32:47 +05:30
Itz-Agasta
9fa980bca2
Replaces eval with json.loads for safer dict parsing
...
Switches from eval to json.loads when parsing string representations
of dictionaries to prevent arbitrary code
execution.
2026-01-24 15:32:47 +05:30
Sarah Hoffmann
fe773c12b2
Merge pull request #3946 from lonvia/enable-entrances-for-reverse
...
Enable entrance lookup for reverse and lookup
2026-01-23 22:10:43 +01:00
Sarah Hoffmann
cc96912580
Merge pull request #3906 from AyushDharDubey/fix/issue_2463-Use-search_name-table-for-TIGER-data-imports-on-'dropped'-databases
...
Use `search_name` as fallback for TIGER imports when update tables are dropped
2026-01-23 20:52:40 +01:00
Sarah Hoffmann
6a6a064ef7
enable entrances for reverse and lookup
2026-01-23 17:38:47 +01:00
Sarah Hoffmann
35b42ad9ce
update Starlette tests to using their TestClient
2026-01-23 16:28:13 +01:00
Ayush Dhar Dubey
eefd0efa59
update test frozen db: new tiger import mechanism
2026-01-09 17:47:07 +05:30
Sarah Hoffmann
f30fcdcd9d
BDD: make sure randomly generated names always contain a letter
2026-01-07 09:58:40 +01:00
Sarah Hoffmann
3bcd1aa721
adapt BDD tests for new postcode table structure
2025-12-30 15:21:20 +01:00
Sarah Hoffmann
354aa07cad
adapt unit tests to new postcode algorithms
2025-12-30 15:21:18 +01:00
Sarah Hoffmann
340fe64e8b
put postcodes in extra table on import
2025-12-30 15:20:46 +01:00
Aditya30ag
3b182afa72
Fix typo in place_addressline table name in tests
2025-12-30 17:40:08 +05:30
Ayush Dhar Dubey
4fd616254a
update Locales constructor:
...
expect output names as argument and avoid redundant configuration initialization
2025-12-20 19:15:33 +05:30
Sarah Hoffmann
58e56ec53d
Merge pull request #3901 from AyushDharDubey/fix/issue_3829-use-mwparserfromhell-to-parse-sp-wiki-page
...
Replace regex with `mwparserfromhell` based MW WikiCode Parsing for Special Phrases
2025-12-08 11:51:50 +01:00
Ayush Dhar Dubey
4919240377
test for cell-per-line format
2025-12-08 11:01:14 +05:30
Ayush Dhar Dubey
56cb183c4e
update sp test content
...
add latest <generator>MediaWiki 1.43.5</generator>
add test case for one-row-per-line
2025-12-08 10:59:10 +05:30
Sarah Hoffmann
35060164ab
reverse: only return housenumbers near street
2025-12-07 11:00:23 +01:00
Sarah Hoffmann
3bb5d00848
avoid extra query for finding closest housenumber in reverse
2025-12-05 17:09:13 +01:00
Sarah Hoffmann
ffd5c32f17
fix comparision between countr tokens and country restriction
2025-12-04 18:29:25 +01:00
Sarah Hoffmann
48d13c593b
fix flaky test around postcode word match penalties
2025-12-02 11:15:37 +01:00
Sarah Hoffmann
9447c90b09
adapt tests to new country token format
2025-12-01 13:10:18 +01:00
Sarah Hoffmann
81c6cb72e6
add normalised country name to word table
...
Country tokens now follow the usual convetion of having the
normalized version in the word column and the extra info about the
country code in the info column.
2025-12-01 13:10:18 +01:00
Sarah Hoffmann
303ac42b47
Merge pull request #3862 from mtmail/skip-all-zero-postcodes
...
Postcode sanetizer now skips values which are only zeros
2025-10-31 10:36:05 +01:00
Sarah Hoffmann
a51c771107
disable improved BDD test naming for pytest < 8
...
Needs the improved test collector introduced in pytest 8.0.
2025-10-30 20:50:00 +01:00
Sarah Hoffmann
55547723bf
add custom pytest collector for BDD feature files
2025-10-30 17:56:23 +01:00
marc tobias
362088775f
postcode sanetizer skips postcodes which are only zeros
2025-10-30 13:45:29 +01:00
Sarah Hoffmann
5d4c29b84b
force inclusion of extratags used directly by Nominatim
2025-10-28 17:20:17 +01:00
Sarah Hoffmann
f1fbc04f33
harmonize use of callback with set_entrance_filter
...
All other functions except a simple function, so do this here as well.
2025-10-28 14:33:45 +01:00
Sarah Hoffmann
2dda9079f0
add BDD tests for importing into the new place_entrance table
2025-10-24 10:52:25 +02:00
Sarah Hoffmann
589825d37e
adapt tests for extra place_entrance table
2025-10-23 17:25:20 +02:00
Sarah Hoffmann
5a8aa6cce4
adapt tests to new penalties
2025-09-12 17:45:22 +02:00
Sarah Hoffmann
1d1d80e1e3
adapt BDD tests for new address ranks
2025-09-11 11:56:39 +02:00
Sarah Hoffmann
177b16b89b
use new QueryStatistics in API server
2025-09-10 11:52:06 +02:00
Sarah Hoffmann
8339c2b928
no longer accept None in result maker functions
2025-09-06 11:09:40 +02:00
Sarah Hoffmann
bf604e36ee
add test for timeout class
2025-09-05 23:31:09 +02:00
Sarah Hoffmann
3a50f749dd
apply request timeout also while waiting for a connection from pool
2025-09-05 23:31:09 +02:00
Emily Love Watson
91e345f77f
Store entrance fields as columns on table
2025-08-29 10:26:29 -05:00
Emily Love Watson
d0ad65f696
Select all entrances for results in one query
2025-08-29 10:26:29 -05:00
Emily Love Watson
e916d27b7c
Update entrances when entrance nodes are updated
2025-08-29 10:26:29 -05:00
Emily Love Watson
823ad5d279
Update entrances schema
2025-08-29 10:26:29 -05:00
Sarah Hoffmann
c2a311e69c
fix poscode update computation: use distance
2025-08-29 15:10:27 +02:00
marc tobias
247afe1f56
sanetizer no longer strips name parts in brackets when more parts follow
2025-08-23 01:06:35 +02:00
anqixxx
6b627df4fb
Locales and localization refactor with Locales as a localizer object.
...
Removed auto-localization from search/search_address APIs (now explicit), simplified AddressLines to subclass List[AddressLine], made display_name a computed property in Results instead of field and removed result-localization circular dependencies
2025-08-12 08:05:37 -04:00
Sarah Hoffmann
0045203092
don't restrict to viewbox for frequent terms
...
All searched places may be outside the viewbox in which case the
restriction means that there are no results at all. Add the penalty for
being outside the viewbox earlier instead and then cut the list.
2025-08-06 17:27:52 +02:00
Sarah Hoffmann
a7709c768d
add test for reverse with address layer and inherited address
2025-07-31 22:25:55 +02:00
Sarah Hoffmann
47c0a101b9
Merge pull request #3799 from lonvia/reduce-coordinate-precision
...
Reduce coordinate precision of centroids and interpolation lines
2025-07-30 14:50:36 +02:00
marc tobias
9bad3b1e61
Better hint to user if database import didnt finish
2025-07-30 10:25:14 +02:00