Sarah Hoffmann
2ddb19c0b0
Merge pull request #3986 from lonvia/rework-tiger-tests
...
Rework unit tests for import of tiger data
2026-02-13 14:11:04 +01:00
Sarah Hoffmann
3f14f89bdf
Merge pull request #3985 from lonvia/rework-indexing-test
...
Rework unit tests for indexing
2026-02-13 12:06:51 +01:00
Sarah Hoffmann
8ed7a3875a
rework tiger unit tests to use production pgsql functions
2026-02-13 11:16:40 +01:00
Sarah Hoffmann
70b9140f13
pass reverse-only as a separate parameter
...
... instead of hacking the internal structures of SQLPreprocessor
2026-02-13 11:12:23 +01:00
Sarah Hoffmann
3285948130
rewrite indexing tests to use standard table fixtures
2026-02-13 11:03:18 +01:00
Sarah Hoffmann
9d0732a941
add fixtures for postcode, interpolation table creation and filling
2026-02-13 10:57:59 +01:00
Sarah Hoffmann
5314e6c881
Merge pull request #3984 from lonvia/avoid-custom-table-definition-in-tests
...
Reuse table creation SQL in unittest
2026-02-13 09:16:44 +01:00
Sarah Hoffmann
2750d66470
use load_sql fixture instead of explicit SQLPreprocessor
2026-02-12 22:42:58 +01:00
Sarah Hoffmann
0d423ad7a7
reorganise fixtures for placex table
...
Now follows the same pattern as fixtures for other tables and
uses the production SQL for table creation.
2026-02-12 22:14:15 +01:00
Sarah Hoffmann
dd332caa4d
simplify property test table implementation
2026-02-12 21:15:03 +01:00
Sarah Hoffmann
d691cfc35d
switch table definitions in conftest to use production SQL
2026-02-12 21:12:10 +01:00
Sarah Hoffmann
d274a5aecc
add fixtures for country table
2026-02-12 20:55:59 +01:00
Sarah Hoffmann
35a023d133
add function for inserting data to testing cursor
2026-02-12 20:44:04 +01:00
Sarah Hoffmann
79682a94ce
use better SQL quoting in test cursor implementation
2026-02-12 20:44:04 +01:00
Sarah Hoffmann
aa42dc8a93
fix potential cancelling race with full queue
2026-02-12 20:44:04 +01:00
Sarah Hoffmann
29fcd0b763
Merge pull request #3982 from lonvia/split-table-creation
...
Split up table creation SQL
2026-02-12 17:42:45 +01:00
Sarah Hoffmann
2237ce7124
split up table creation SQL into separate files
2026-02-12 16:36:10 +01:00
Sarah Hoffmann
58295e0643
remove unused indexes and sequences
2026-02-12 16:33:45 +01:00
Sarah Hoffmann
fed64cda5a
Merge pull request #3957 from jayaddison/issue-2714/linked-places-default-language
...
Indexing: add default-language placename from linked places
2026-02-11 15:08:18 +01:00
Sarah Hoffmann
b995803c66
Merge pull request #3979 from jayaddison/issue-2714-prep/extract-rank-zero-specialcasing
...
Indexer: relocate zero-ranked-address indexing
2026-02-11 15:05:28 +01:00
Sarah Hoffmann
986d303c95
Merge pull request #3980 from lonvia/security-smells
...
Improve SQL query assembly
2026-02-10 15:26:34 +01:00
James Addison
310d6e3c92
Indexer: relocate zero-ranked-address indexing
2026-02-10 11:51:18 +00:00
Sarah Hoffmann
7a3ea55f3d
ignore tables with odd names in SQLPreprocessor
2026-02-10 11:40:52 +01:00
Sarah Hoffmann
d10d70944d
avoid f-strings in SQL creation in tests
2026-02-10 11:39:19 +01:00
Sarah Hoffmann
73590baf15
use psycopg.sql for SQL building in tokenizer
2026-02-10 11:39:19 +01:00
Sarah Hoffmann
e17d0cb5cf
only allow alphanumeric and dash in DATABASE_WEBUSER
...
This variable is used a lot in raw SQL. Avoid injection issues.
2026-02-10 11:39:17 +01:00
Sarah Hoffmann
7a62c7d812
sanity check class names before inserting into classtype tables
...
The subsequent INSERT is done on an unqouted table name, making in
theory an SQL injection through an OSM value possible. In practise
this cannot happen because we check for the existance of the table.
During the creation of the classtype tables there is a sanity
check in place to disallow any table names that consist of anything
other than alphanumeric characters.
2026-02-10 11:38:26 +01:00
Sarah Hoffmann
615804b1b3
Merge pull request #3978 from jayaddison/issue-2714-prep/index-boundaries-method-signature-nitpick
...
Refactor: add default params to Indexer.index_boundaries
2026-02-10 09:45:29 +01:00
Sarah Hoffmann
79bbdfd55c
Merge pull request #3975 from kad-link/fix/utf8-encoding-clean
...
Fix: Enforce explicit UTF-8 encoding in file I/O
2026-02-10 09:32:06 +01:00
James Addison
509f59b193
Refactor: add default params to index_boundaries
2026-02-09 21:36:30 +00:00
Sri CHaRan
f84b279540
fix: add utf-8 encoding in read-write files
2026-02-10 00:38:40 +05:30
James Addison
e62811cf97
Indexing: invert boolean logic to factor-out empty ELSE clause
...
Relates-to commit fa2a789e27 .
2026-02-09 18:33:02 +00:00
Sarah Hoffmann
cd2f6e458b
Merge pull request #3970 from lonvia/improve-dev-docs
...
Some minor improvement to developer docs
2026-02-05 21:57:54 +01:00
James Addison
fa2a789e27
Indexing: manage the case where no default-language exists
...
Relates-to commit 6fee784c9f .
2026-02-05 20:48:01 +00:00
Sarah Hoffmann
fc49a77e70
Merge pull request #3960 from jayaddison/tests/has-pending-monkeypatch-robustness
...
Tests: parameter-agnostic 'Indexer.has_pending' monkeypatching
2026-02-05 21:05:57 +01:00
Sarah Hoffmann
28baa34bdc
point to developer docs from CONTRIBUTING.md
2026-02-05 20:51:41 +01:00
Sarah Hoffmann
151a5b64a8
docs: fix list of packages for development install
2026-02-05 20:45:18 +01:00
James Addison
6fee784c9f
Indexing: add default-language placename from linked places
2026-02-05 15:19:48 +00:00
James Addison
3db7c6d804
Tests: parameter-agnostic has_pending monkeypatching
...
Instead of relying on runtime parameter compatibility between
the patched `has_pending` method and `list.pop`, use a proxy
lambda function that accepts arbitrary keyword params.
2026-02-05 15:09:09 +00:00
Sarah Hoffmann
b2f868d2fc
Merge pull request #3966 from remo-lab/fix/sql-injection-truncate
...
Fix SQL injection in truncate_data_tables
2026-02-05 14:44:55 +01:00
remo-lab
ae7301921a
Fix SQL injection in truncate_data_tables
...
Signed-off-by: remo-lab <remopanda7@gmail.com >
2026-02-05 17:04:10 +05:30
Sarah Hoffmann
8188689765
Merge pull request #3962 from lonvia/docs-deploy
...
Docs: switch deployment to use gunicorn's asgi/uwsgi support
2026-02-03 11:45:57 +01:00
Sarah Hoffmann
135453e463
docs: switch deployment to use gunicorn's asgi/uwsgi support
2026-02-03 09:08:06 +01:00
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
Sarah Hoffmann
c882718355
Merge pull request #3959 from Aditya30ag/fix/readme-nominatim-api-module-path
...
Fix README: update Nominatim API server module path
2026-02-02 09:12:24 +01:00
Aditya30ag
3f02a4e33b
Fix README: update Nominatim API server module path
2026-02-02 11:43:03 +05:30
Sarah Hoffmann
1cf5464d3a
Merge pull request #3955 from AmmarYasser455/fix/typos
...
docs: fix multiple typos in documentation and source code
2026-02-01 10:05:34 +01:00
Sarah Hoffmann
dcbfa2a3d0
Merge pull request #3952 from jayaddison/pr-3687-followup/boundary-admin-level-for-linkage
...
Tests: resolve an issue in the place-linkage name expansion test case
2026-02-01 10:05:16 +01:00
James Addison
5cdc6724de
Tests: set boundary admin level to enable linking
2026-01-31 22:00:23 +00:00
Itz-Agasta
45972811e3
Preserve import error tables during freeze
...
- Remove 'import_polygon_%' from UPDATE_TABLES to keep import_polygon_error
and import_polygon_delete tables in frozen databases.
- These tables contain permanent import error tracking data and should not
be deleted during freeze. The ro-access grant system expects them to exist
in all database states.
2026-01-31 22:50:18 +05:30