Commit Graph

656 Commits

Author SHA1 Message Date
6df0244cc5 React UI
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone Build was killed
2023-07-12 00:44:22 +04:00
Andrey Tkachenko
7f189b49b2 Api v1
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-10 17:52:30 +04:00
Andrey Tkachenko
8d03abb434 Update README.md
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-07 17:23:35 +04:00
Andrey Tkachenko
bd14072c56 Add .drone.yaml
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-07 15:36:29 +04:00
Rasmus Kaj
45ce78af68 Release 0.12.2 (2023-03-04)
* Removed unnessesary id columns from relation tables.
* Attempt to improve the SQL query generated by search, especially on
  multiple negative tags/places/people.
* Put less semi-duplicate data in error log.
* Refactored fetch_places to make `get_or_create_place` logicaly self
  contained.
2023-03-04 18:13:22 +01:00
Rasmus Kaj
992856d4d9 Refactor get_or_create_place. 2023-03-04 18:06:11 +01:00
Rasmus Kaj
344a49af22 Attempt to improve search SQL. 2023-03-04 17:43:20 +01:00
Rasmus Kaj
80df975074 Put less semi-duplicate data in error log. 2023-03-04 17:28:00 +01:00
Rasmus Kaj
31c5823464 Remove unnessesary id columns from relation tables. 2023-02-27 00:31:34 +01:00
Rasmus Kaj
8ef1f0820a Postrelease. 2023-02-26 19:56:35 +01:00
Rasmus Kaj
d773ede1e6 Release 0.12.0 (2023-02-26)
* Database access is now async (PR #10).
  - Use `diesel-async` with deadpool feature for database access.
  - A bunch of previously synchronous handlers are now async.
  - Some `.map` and simliar replaced with `if` blocks or `for` loops.
* Refactored query parsing and facet handling in search (PR #11).
  Should be more efficient now, especially for negative facets.
* Improved diagnosics and date format flexibility in parsing exif data.
* Avoid an extra query for the positions in search and splitlist.
* Links by time is 404 if no images found in query.
* Some random cleanup and refactoring.
2023-02-26 12:23:13 +01:00
Rasmus Kaj
656898ec27 Avoid an extra query for the positions in splitlist. 2023-02-26 11:57:55 +01:00
Rasmus Kaj
4ea5b15793 Some clippy-suggested fixes. 2023-02-26 00:56:17 +01:00
Rasmus Kaj
808216a4ae Some cleanup regarding use statements. 2023-02-25 17:37:17 +01:00
Rasmus Kaj
112d7b8efa Links by time is 404 if no images found in query. 2023-02-25 11:38:02 +01:00
Rasmus Kaj
4800d3d256 Improve diagnosics and date format flexibility in parsing exif data. 2023-02-25 09:47:29 +01:00
Rasmus Kaj
7e7d1e6b3b
Merge pull request #11 from kaj/better-search
Improve the search handler.
2023-02-25 00:00:27 +01:00
Rasmus Kaj
10fb0911cd Improve the search handler.
Mainly the inclusion/exclusion of facettes got a major rewrite.
2023-02-24 23:54:44 +01:00
Rasmus Kaj
821cd7fe48 Avoid an extra query for the positions in search. 2023-02-21 23:33:14 +01:00
Rasmus Kaj
65e1a7d906
Merge pull request #10 from kaj/diesel-async
Use async database access.
2023-02-21 23:26:23 +01:00
Rasmus Kaj
b586c3df6c Use async database access.
- Use `diesel-async` with deadpool feature for database access.
- A bunch of previously synchronous handlers are now async.
- Some `.map` and simliar replaced with `if` blocks or `for` loops.
2023-02-21 23:13:17 +01:00
Rasmus Kaj
3823e9a337 Postrelease. 2023-02-11 20:22:08 +01:00
Rasmus Kaj
50ba2a6c51 Release 0.11.10 (2023-02-11)
* Bugfix in month start calculation.
2023-02-11 19:48:39 +01:00
Rasmus Kaj
33c1c8be8d Bugfix in month start calculation. 2023-02-11 19:46:35 +01:00
Rasmus Kaj
4bad944a19 Postrelease. 2023-02-11 19:02:22 +01:00
Rasmus Kaj
147901246e Release 0.11.8 (2023-01-29)
* Check for null bytes in autocomplete patterns, make them result in a
  400 bad request rather than a 500 internal server error.
* Changed zoom-on-click to use fullscreen.  I think that is an
  improvement especially on mobile.
* Improved logging by using tracing and tracing-subscriber rather than
  log and env_logger.
* Four more kinds of OSM areas to recognize.
* Added a favicon.
* Update diesel to 2.0.0: Mainly most operations now needs a `&mut
  PgConnection`.  Also, getting parts of dates are now done by sql
  functions.
* Update ructe to 0.16.0.
* Update clap to 4.0.18.
* Add this changelog.
2023-01-29 01:24:07 +01:00
Rasmus Kaj
02564ed6fc Add first attempt of a favicon. 2023-01-29 01:13:07 +01:00
Rasmus Kaj
f692047889 Fix clippy issues, mainly string capture. 2023-01-28 18:32:47 +01:00
Rasmus Kaj
c9463bcb16 Fix some borrow-related clippy issues. 2023-01-28 17:48:43 +01:00
Rasmus Kaj
b60cf29e72 Update CI.
Update checkoud, Use @dtolnay s rust-toolchain, and a problem-matcher.
2023-01-28 17:36:13 +01:00
Rasmus Kaj
d3adaa7679 Fix deprecated chrono usage. 2023-01-28 17:31:02 +01:00
Rasmus Kaj
4e33806879 Update ructe to 0.16.0. 2023-01-28 12:51:34 +01:00
Rasmus Kaj
01013aaf06 Changed zoom-on-click to use fullscreen. 2023-01-12 01:22:21 +01:00
Rasmus Kaj
17cdd4f5cd Update clap to 4.0.18. 2022-10-24 18:59:07 +02:00
Rasmus Kaj
34cef49582
Merge pull request #8 from kaj/diesel-2
Use diesel 2.0
2022-10-24 18:34:17 +02:00
Rasmus Kaj
03dd6a5465 Use diesel 2.0
Most of the changes are for database access now requiring an &mut
connection.
2022-10-24 18:26:07 +02:00
Rasmus Kaj
f7c3d60e77 Update ructe to 0.15.0. 2022-09-18 22:24:52 +02:00
Rasmus Kaj
5a3578f244 Minor consistency cleanup. 2022-09-08 00:11:15 +02:00
Rasmus Kaj
30b34fd98d Yet another OSM kind to recognize. 2022-07-27 10:54:01 +02:00
Rasmus Kaj
cf32bb7e5e Another kind of OSM area. 2022-07-17 20:22:02 +02:00
Rasmus Kaj
8385ea1298 Use tracing.
Improved logging by using tracing and tracing-subscriber rather than
log and env_logger.
2022-07-17 19:50:53 +02:00
Rasmus Kaj
2660c91732 Refactor autocompletion routes. 2022-07-16 22:20:01 +02:00
Rasmus Kaj
86d301ada5 Check for null bytes in autocomplete patterns.
Make them an bad request rather than an internal server error.
2022-07-16 17:49:34 +02:00
Rasmus Kaj
3cfa084a61 Yet another OSM tag to recognize. 2022-07-15 16:41:08 +02:00
Rasmus Kaj
36b5b7b160 Yet another kind of OSM area to recognize. 2022-07-15 15:23:33 +02:00
Rasmus Kaj
4fb9fe76b0 Postrelease, add a changelog. 2022-07-15 14:32:26 +02:00
Rasmus Kaj
dfdcb90667 Release 0.11.6
* Another kind of area to recognize.
* Update structopt to clap 3.2.8.
* Tell robots not to index the login form.
2022-07-10 01:18:40 +02:00
Rasmus Kaj
5525364771 Another kind of area to recognize. 2022-07-10 01:10:03 +02:00
Rasmus Kaj
ce4651a66b Update structopt to clap 3.2.8. 2022-07-07 17:32:29 +02:00
Rasmus Kaj
235d0a9d6f Tell robots not to index the login form. 2022-02-26 17:05:28 +01:00