Commit Graph

71 Commits

Author SHA1 Message Date
Lauréline Guérin f69f6281ab
base_adresse: endpoint cities, compatibility with wcs geolocation (#85863)
gitea/passerelle/pipeline/head This commit looks good Details
2024-01-19 08:40:55 +01:00
Valentin Deniaud 40142de8d2 misc: apply double-quote-string-fixer (#79788) 2023-08-16 10:08:30 +02:00
Benjamin Dauvergne 84cd51957e base_adresse: add parameter type=housenumber to prevent users from picking street addresses (#76376)
gitea/passerelle/pipeline/head This commit looks good Details
2023-05-15 10:36:37 +02:00
Benjamin Dauvergne b5995828a5 base_adresse: retry on 504 and reduce to 3 short retries (#74397)
gitea/passerelle/pipeline/head This commit looks good Details
2023-03-17 11:50:12 +01:00
Paul Marillonnet b542c7b956 base-adresse: provide ordering options to cities endpoint (#74374) 2023-02-16 14:12:42 +01:00
Benjamin Dauvergne f84216a5ac base_adresse: set result id to lookup id (#72263)
base_adresse data source ids are not canonical, many can match the same
adress. But clients of the API does not handle this well, so it's better
to always return the same id event if we know it has changed.
2022-12-12 14:45:19 +01:00
Thomas NOËL 7d87e97137 base_adresse: handle only-space q (#69889) 2022-10-04 23:50:26 +02:00
Thomas NOËL 425fe18348 base_adresse: do not search if q is too short or not start alphanum (#69865) 2022-10-04 17:50:55 +02:00
Valentin Deniaud 989fb52719 misc: apply pyupgrade (#61865) 2022-09-29 16:22:29 +02:00
Benjamin Dauvergne 7a04d9253f base_adresse: truncate q to 200 characters (#67763) 2022-07-29 19:02:24 +02:00
Lauréline Guérin 7cf903431a
base_adresse: fix cron with not found region (#67629) 2022-07-29 12:30:27 +02:00
Lauréline Guérin da9b818451
ban import: revert last optimizations (#66342)
This reverts commit 7479f1d143.
2022-06-20 16:34:45 +02:00
Pierre Ducroquet 58f482cf93 ban import: update streets only when needed (#65843) 2022-06-07 08:44:15 +02:00
Lauréline Guérin 7c525dc946
misc: fix unneeded-not pylint error (#62099) 2022-03-25 11:38:47 +01:00
Lauréline Guérin 1e90f91e99
misc: fix no-name-in-module pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin 59182339ab
misc: fix redundant-u-string-prefix pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin 35512c9c2f
misc: remove unused-variable pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin dbb8416537
misc: add __init__ file to tests dir (#62099) 2022-03-25 08:24:24 +01:00
Valentin Deniaud 6a983ee0e5 base_adresse: return additionnal adresses data (#57129) 2021-09-23 10:44:10 +02:00
Thomas NOËL 28576589a8 base_adresse: store BAN identifier in streets (#56035) 2021-09-16 10:22:38 +02:00
Thomas NOËL 636b595833 base_adresse: link data models to BaseAdresse instance (#55959) 2021-08-04 14:20:29 +02:00
Thomas NOËL fdc8c28947 base_adresse: link StreetModel to its BaseAdresse instance (#55950) 2021-08-04 14:20:24 +02:00
Thomas NOËL 58f544f1c2 base_adresse: revert last commit, bad migration code (#55950)
Migrations must not mix AlterField/AddField and RunPython
2021-08-04 11:13:04 +02:00
Thomas NOËL e1e8e95339 base_adresse: link StreetModel to its BaseAdresse instance (#55950) 2021-08-04 10:26:26 +02:00
Benjamin Dauvergne 18b2e436ff base_adresse: add lat/lon/type to address'id to get by id through reverse (#55522) 2021-07-15 18:51:36 +02:00
Nicolas Roche 6193d0a8ca base_adresse: add reverse endpoint result into address cache model (#53989) 2021-06-07 10:18:11 +02:00
Nicolas Roche 06db6d8767 misc: apply isort (#52937) 2021-05-07 13:51:13 +02:00
Nicolas Roche 12440ac62b base_adresse: return 200 on connection error (#52006) 2021-04-12 09:07:45 +02:00
Frédéric Péters 3d9df1e526 trivial: apply black (#49820) 2021-02-20 16:28:47 +01:00
Nicolas Roche 3ddf46eff1 base_adresse: return first address on reverse endpoint (#50963) 2021-02-15 09:22:01 +01:00
Valentin Deniaud 82b9459cbf base_adresse: use job to fetch data at create and edit (#50087) 2021-01-19 11:27:13 +01:00
Valentin Deniaud beddcdc7b3 Revert "base_adresse: use job to fetch data at create and edit (#50087)"
This reverts commit d4c814f6a7.
2021-01-13 10:51:50 +01:00
Valentin Deniaud d4c814f6a7 base_adresse: use job to fetch data at create and edit (#50087) 2021-01-13 10:41:16 +01:00
Thomas NOËL fa1f64f85f base_adresse: render id as string in streets endpoint (#47976) 2020-10-22 18:21:07 +02:00
Thomas NOËL 31130a9691 base_adresse: accept multiple codes on cities endpoint (#45307) 2020-07-24 15:43:09 +02:00
Lauréline Guérin 637eda15a2
base_adresse: use new ban data (#38204) 2020-04-28 15:28:09 +02:00
Thomas NOËL 6cdd8fd1bb base_adresse: handle citycode on streets endpoint (#41103) 2020-03-27 17:30:21 +01:00
Thomas NOËL b5a6d01979 base_adresse: handle citycode filter on geocoding endpoints (#41103) 2020-03-27 17:30:16 +01:00
Valentin Deniaud e946b26162 base_adresse: avoid crash on bad API response (#40573) 2020-03-09 17:06:52 +01:00
Valentin Deniaud 5d4722f9cc base_adresse: add /addresses/ endpoint (#39387)
Compatible with wcs API.
2020-02-17 15:33:35 +01:00
Valentin Deniaud a1030144aa base_adresse: fix search when query contains dash (#39817) 2020-02-13 14:55:38 +01:00
Emmanuel Cazenave 18266fe189 tests base_adresse: read bzip files in binary mode (#38781) 2020-01-29 10:27:54 +01:00
Emmanuel Cazenave 5c6ebaaa6a tests: use resp.text (#38923) 2020-01-14 19:20:26 +01:00
Valentin Deniaud 1a4c7c649b base_adresse: add API Géo endpoints (#11497)
Namely /cities/, /departments/ and /regions/.
2019-12-06 17:07:16 +01:00
Valentin Deniaud bccef54753 base_adresse: add missing asserts in streets tests (#11497) 2019-12-06 17:07:16 +01:00
Frédéric Péters c0232fd393 tests: remove xfail from multiple zipcodes support on postgresql (#30455) 2019-09-16 17:32:49 +02:00
Frédéric Péters f424478578 base adresse: pass lat/lon when geocoding (#33098) 2019-05-21 17:49:56 +02:00
Frédéric Péters fdf35728ad base adresse: add support for ?id= on streets endpoint (#32132) 2019-04-10 10:59:27 +02:00
Benjamin Dauvergne fe2772afb5 tests: mark some base_adresse tests as expected to fail (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne 43b837172b base_adresse: PEP8ness, code style (#30458) 2019-03-01 17:55:02 +01:00