aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-06Merge branch 'pydantic'Daniel Schadt
2022-12-06update CHANGELOGDaniel Schadt
2022-12-05small documentation fixesDaniel Schadt
2022-12-05fix CSRF issue for account creationDaniel Schadt
We forgot to include the CSRF token here.
2022-12-05access settings through new Config objectDaniel Schadt
This takes away the pain of dealing with default values or value conversions in main()
2022-12-05parse/validate config with pydanticDaniel Schadt
This is the first step, in the next step, we should actually use request.config.
2022-12-03serve gzip compressed GPX data if possibleDaniel Schadt
This way, we not only save the decompression time, we can also save bandwidth! We *might* even consider using brotli, which seems to be widely supported and has even better compression ratios, but brotli compression of full efficiency is also slow. Ideally, we'd save a "fast compressed" version of the GPX file on upload, and then have a slower background-queue re-compress them with higher settings. That however should probably wait till we move the GPX data out of the database(?!), then we can even serve the data straight with a FileResponse.
2022-11-28bump version to 0.4.0v0.4.0Daniel Schadt
2022-11-28add a checklist for the release processDaniel Schadt
2022-11-28add Sphinx as docs dependencyDaniel Schadt
2022-11-28remove MANIFESTDaniel Schadt
Poetry does the right thing by default, so no more need to declare this.
2022-11-28update changelogDaniel Schadt
2022-11-28Allow overwriting of the home pageDaniel Schadt
2022-11-21disable the privacy popupDaniel Schadt
We're proxying all tiles through Fietsboek now, which means that no external services get to see the users' IPs. Therefore, we can disable this popup with a good conscience.
2022-11-21don't leak the Thunderforest API keyDaniel Schadt
This was leftover code from before the tile-proxy times.
2022-11-21fix map if OSM layer is not presentDaniel Schadt
2022-11-21small documentation fixesDaniel Schadt
2022-11-20change default emailDaniel Schadt
2022-11-20update CHANGELOGDaniel Schadt
2022-11-20Merge branch 'tile-proxy'Daniel Schadt
2022-11-20remove bisect.insortDaniel Schadt
This is due to compatibility reasons, such that the code works in Python <3.10.
2022-11-19restore compatibility with python 3.7Daniel Schadt
importlib.metadata was introduced in 3.8 :-(
2022-11-19add docs for more tile proxy informationDaniel Schadt
2022-11-19add an option to disable the tile proxyDaniel Schadt
2022-11-18split layer extraction into two functionsDaniel Schadt
2022-11-18fix SQLAlchemy deprecationDaniel Schadt
2022-11-18fix lintDaniel Schadt
I'm a slave to the linters now.
2022-11-17tileproxy: relay HTTP status codesDaniel Schadt
This is nice if we hit a 404 or something on the source, especially with user-configured sources. As a small side, we now don't give the client the URL in the error message, as that could contain API keys that we don't want to leak.
2022-11-17add a shortcut for Thunderforest mapsDaniel Schadt
Now, we can add Thunderforest maps with thunderforest.api_key = ... thunderforest.maps = cycling ...
2022-11-17enable custom map layersDaniel Schadt
This change shuffles around quite a bit because we no longer hardcode our map layers in osm-monkeypatch.js, but instead can pass them through from the Python code. This allows us to dynamically define extra layers, for example to disable layers the admin doesn't want, or to add extra layers that are not yet available. This change for example allows to embed thunderforest maps by adding the following to the config: fietsboek.tile_layers.tf_cycling = TF Cycling fietsboek.tile_layers.tf_cycling.url = https://thunderforest.com/... fietsboek.tile_layers.tf_cycling.access = restricted The next step is to make the Thunderforest maps a bit easier to access (by providing special support for those), but for now, this seems like a good first step and the necessary groundwork.
2022-11-17doc: add intersphinx links for jinja2/markupsafeDaniel Schadt
2022-11-17remember timeouts for tile serversDaniel Schadt
1. This makes Fietsboek faster because we don't have to wait for the timeout on every single request. 2. This is better for the servers, as we don't add more requests when they're already overloaded.
2022-11-17add a timeout to the tile proxyDaniel Schadt
This avoids blocking the whole pipeline
2022-11-17initial support for proxying OSM tilesDaniel Schadt
2022-11-15switch out setuptools for poetryDaniel Schadt
setup.py is the very old style for packaging, so I wanted to replace it with something more "modern". pyproject.toml seems like the way to go in the future. At first, I wanted to simply configure setuptools using pyproject.toml, but that support is in beta and seemed to cause some issues with the tox virtualenvs. Poetry seems to work fine and provides a better dependency resolver (given that dependencies are actually specified well) and some other goodies. For users, nothing much should change, as "pip install" still works.
2022-11-12Merge branch 'updater'Daniel Schadt
2022-11-12add initial update scriptDaniel Schadt
This doesn't really do anything yet, but it serves as a starting point and sets the alembic version.
2022-10-20adjust docs for new updater scriptDaniel Schadt
2022-10-10make fietsupdater status warn about unknown updateDaniel Schadt
2022-10-10lint fixesDaniel Schadt
2022-10-10fietsupdater: add a "status" subcommandDaniel Schadt
2022-10-10add a common base class to update scriptsDaniel Schadt
This makes it easier to add some useful hooks, such as "self.tell" to output information about the update to the user, and it ensures the pre_alembic/post_alembic methods exist.
2022-10-10fietsupdater: fix revision subcommandDaniel Schadt
2022-09-29fietsupdtr: noop if the update is already appliedDaniel Schadt
2022-09-29fietsupdater: use Context.fail to abortDaniel Schadt
This makes sure that the exit code is set properly
2022-09-29fietsupdater: better help behaviourDaniel Schadt
This does two things: 1. fietsupdate update --help works (before it errored because the required argument is not given) 2. fietsupdate help works (like git help ...)
2022-09-28reorganize updater CLIDaniel Schadt
This moves the updater scripts into a subfolder, which keeps them separated better from the rest of the package. In addition, we now have the "fietsupdate" command instead of using "python -m fietsboek.updater".
2022-09-25hide tags if none are setDaniel Schadt
This prevents the empty "Tagged as:" to be shown
2022-09-25fix track participants not being shownDaniel Schadt
2022-09-24fix stamp logic for downgradesDaniel Schadt