Ilya Mukhortov
b54b0c0244
Import current GAR objects as stored and treat a level-8 poselok as a locality.
...
Houses of any type now hang on the nearest imported ancestor, and a house can be chosen from the selected locality when no street is picked.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 10:48:03 +10:00
Ilya Mukhortov
8ade6089b1
Serve compact address JSON from /compact paths.
...
Drop the compact query flag so short responses are a separate endpoint for regions, localities, streets, search, and suggest.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 09:55:11 +10:00
Ilya Mukhortov
aa1a484531
Speed up the address admin list and add subject and type filters.
...
Skip the full-table count, page with previous and next, and look up filters without scanning every row. Hide Groups from the admin index.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 09:48:38 +10:00
Ilya Mukhortov
c503f9effb
Create a Django superuser on container start when none exists.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 12:22:19 +10:00
Ilya Mukhortov
bc5a722225
Load CSRF trusted origins from env and isolate the CSRF cookie name.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 12:06:01 +10:00
Ilya Mukhortov
a55e65c53f
Fill missing houses from a remote address-service by default.
...
Facility instances can proxy GET /houses to the central API by parent_fias_id and cache results locally, instead of calling DaData directly.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 11:48:40 +10:00
Ilya Mukhortov
63de0ff236
Fill missing houses from DaData when local search is empty.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 10:53:39 +10:00
Ilya Mukhortov
9ab9baca48
Omit redundant short_label, full_label, and level from GET /regions.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 10:32:29 +10:00
Ilya Mukhortov
fa6c1db46d
Rename the Django admin header to Адресный сервис.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 10:26:09 +10:00
Ilya Mukhortov
71136db786
Add short_label, compact JSON, and omit nested parent by default.
...
Search items can return a step path without the region and a compact field set; clients that need the parent chain pass include_parent=true.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 10:10:53 +10:00
Ilya Mukhortov
9b2e06e464
Find СНТ in locality search and show ancestor path in the label.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 20:20:00 +10:00
Ilya Mukhortov
877e76d67d
Add suggest search for city and street in one query.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 20:08:08 +10:00
Ilya Mukhortov
1e9e3052ee
Require parent_id or parent_fias_id when searching houses.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 12:10:41 +10:00
Ilya Mukhortov
7e892fc13a
change package-lock.json dependencies
2026-09-17 11:48:14 +10:00
Ilya Mukhortov
a71fd9b610
Show street ancestors under suggestions instead of the region code.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 11:47:10 +10:00
Ilya Mukhortov
f1469708f5
Add full_label with the ancestor path on address search items.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 11:46:22 +10:00
Ilya Mukhortov
633becb075
Cache address search in Redis and invalidate after FIAS import.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 11:07:32 +10:00
Ilya Mukhortov
1d2a1c3f95
Add parent KLADR and FIAS filters to AddressObject search.
...
These identifiers already worked for houses; expose them on streets and other objects so clients can filter by parent without the database id.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 20:49:47 +10:00
Ilya Mukhortov
73fbbc3932
Put district type after the name in address labels.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 17:26:53 +10:00
Ilya Mukhortov
dc549696a2
Add a display label that avoids repeating FIAS type names.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 12:58:08 +10:00
Ilya Mukhortov
46ce284f55
Redesign the address client with MUI and drop react-select.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 12:36:00 +10:00
Ilya Mukhortov
3d963311fd
Require region_code again for universal search.
...
kladr_id and fias_id stay as filters; /search and gRPC Search no longer accept them as a substitute for the region.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 11:53:17 +10:00
Ilya Mukhortov
30df6ee627
Add fias_id lookup next to kladr_id in address and house search.
...
Clients can resolve objects and houses by FIAS GUID without region_code or parent_id.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 11:50:28 +10:00
Ilya Mukhortov
3cc7a864ab
Add KLADR and parent FIAS lookup to HTTP and gRPC search.
...
Clients can resolve address objects by kladr_id and houses by the street's KLADR or FIAS id without the internal parent_id.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 11:42:23 +10:00
Ilya Mukhortov
00a32f2a4c
Serve UI, API, and admin under /address-service/.
...
Keep API at {prefix}api/ so Caddy can use a static URL_PREFIX, including /.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 20:56:48 +10:00
Ilya Mukhortov
423e7ad468
Serve the SPA at /api-address/ from Caddy.
...
Exact prefix paths return index.html; other /api-address* routes still proxy to Django.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 18:29:51 +10:00
Ilya Mukhortov
c5c7e3753f
Serve the built React client from the image and slim Docker layers.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 15:48:53 +10:00
Ilya Mukhortov
978f33341b
Require PostgreSQL and bootstrap the Docker image on startup.
...
Drop SQLite, import the address dump when AddressObject is empty, and publish linux/amd64 to the registry.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 12:52:52 +10:00
Ilya Mukhortov
34558230c7
Add PostgreSQL address dump for empty-database bootstrap.
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 12:28:04 +10:00
Ilya Mukhortov
144ebdcad6
Rebuild FIAS import around streamed GAR zip and reset schema migrations.
...
Patient search is subject → locality → street → house; municipal containers
are skipped, and KLADR/postal params load from the same archive without unpacking.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 16:12:14 +10:00
Ilya Mukhortov
8569b546dc
Merge branch 'main' of github.com:med-logic/address-service
2026-08-28 17:39:18 +10:00
Ilya Mukhortov
257452219f
Add FIAS address type constants and import only actual houses.
...
Skip inactive AS_HOUSES records, dedupe house GUID/object_id batches, and ignore local .tmp/.idea dumps.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 17:38:32 +10:00
med-logic
0bfb23b540
Merge pull request #3 from med-logic/8t6q8c-codex/-uv
...
Add House model, XML importers, houses API and React client
2026-08-28 17:37:53 +10:00
med-logic
2a8472b216
Merge branch 'main' into 8t6q8c-codex/-uv
2026-08-28 17:35:23 +10:00
med-logic
820b6d1809
Require region before address search
2026-08-28 17:31:15 +10:00
Ilya Mukhortov
0a1a2d654b
Add Taskfile dev commands and import only actual FIAS objects.
...
Skip ISACTUAL!=1 records, dedupe batch GUID conflicts for Postgres, and add migrate/makemigrations plus a combined Django+Vite task.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 17:11:09 +10:00
med-logic
36c81454e6
Merge pull request #2 from med-logic/orvr99-codex/-uv
...
Add House model, XML importers, houses API and React client
2026-08-28 16:24:08 +10:00
med-logic
d7a27652da
Add React address search client
2026-08-28 16:00:22 +10:00
med-logic
a82c66726d
Merge pull request #1 from med-logic/codex
...
Add Django FIAS address microservice with API, import, Docker and tests
2026-08-12 12:20:11 +10:00
med-logic
e356fb8e82
Manage container services with s6-overlay
2026-08-12 11:17:23 +10:00
med-logic
36d9250589
Initialize repository
2026-08-12 10:16:51 +10:00