aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* web: persist and reuse template loader across requestsBryan Newbold2022-08-121-8/+8
|
* web: remove remaining async endpoints with template renderingBryan Newbold2022-08-121-6/+6
| | | | | | | | This makes all remaining HTML endpoints (which use jinja templates) synchronous, not async, meaning they render in a threadpool. This is a sanity change to reduce the chance of hard-to-debug concurrency issues with i18n and jinja2 templates.
* lint: f-string used where it didn't need to beBryan Newbold2022-08-121-1/+1
|
* web: refactor i18n template loadingBryan Newbold2022-08-122-72/+93
| | | | | | | | | | | | | | | This is an attempt to fix a bug with random HTML template escapes in production. I believe these are being caused by cross-request contamination of template state due to using globals to hold on to per-language jinja2 templates. I originally thought this might be a bug in the jinja2 i18n extension itself, and there may still be concurrency concerns there, but it seems like the proximal cause is the use of globals. This change probably has a negative performance impact, because the jinja2 environment is re-created on every request (though babel files are not reloaded on every request).
* start moving I18N language options to config fileBryan Newbold2022-08-122-20/+19
|
* flake8: allow 'Any' type annotations (ignore ANN401)Bryan Newbold2022-08-121-1/+2
|
* rename fatcat_scholar.hacks to fatcat_scholar.web_hacksBryan Newbold2022-08-122-1/+1
|
* makefile: serve-gunicorn on port 9819Bryan Newbold2022-08-121-1/+1
|
* pipenv: update deps (re-lock)Bryan Newbold2022-08-111-630/+628
|
* Translated using Weblate (Italian)Alfonso Scarpino2022-07-202-7/+7
| | | | | | | Currently translated at 100.0% (193 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/it/
* Translated using Weblate (Korean)DNSE2022-07-202-7/+12
| | | | | | | Currently translated at 100.0% (193 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/ko/
* Translated using Weblate (Korean)DNSE2022-07-202-11/+12
| | | | | | | Currently translated at 96.3% (186 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/ko/
* Translated using Weblate (Portuguese)Vander2022-07-052-6/+7
| | | | | | | Currently translated at 100.0% (193 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/pt/
* Translated using Weblate (Spanish)eulalio2022-07-052-15/+29
| | | | | | | Currently translated at 99.4% (192 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/es/
* Translated using Weblate (Russian)Nikita Epifanov2022-06-062-5/+5
| | | | | | | Currently translated at 95.8% (185 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/ru/
* Translated using Weblate (Croatian)Milo Ivir2022-06-062-4/+4
| | | | | | | Currently translated at 100.0% (193 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/hr/
* Translated using Weblate (German)Ettore Atalan2022-06-062-11/+18
| | | | | | | Currently translated at 97.9% (189 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/de/
* robots: deny SemanticScholarBot search result pagesBryan Newbold2022-06-061-0/+1
|
* Merge remote-tracking branch 'github/master'Bryan Newbold2022-05-234-16/+17
|\
| * Translated using Weblate (Persian)MEgooneh2022-05-232-12/+13
| | | | | | | | | | | | | | Currently translated at 96.8% (187 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/fa/
| * Translated using Weblate (Croatian)Milo Ivir2022-05-232-4/+4
| | | | | | | | | | | | | | Currently translated at 100.0% (193 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/hr/
* | settings: new kafka main broker instanceBryan Newbold2022-05-121-2/+2
|/
* sitemap: single-command sitemap update scriptBryan Newbold2022-04-071-0/+11
|
* Translated using Weblate (Korean)Bryan Newbold2022-04-062-4/+4
| | | | | | | Currently translated at 92.2% (178 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/ko/
* Translated using Weblate (Persian)Bryan Newbold2022-04-062-4/+4
| | | | | | | Currently translated at 92.7% (179 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/fa/
* Translated using Weblate (Greek)Bryan Newbold2022-04-062-4/+4
| | | | | | | Currently translated at 48.1% (93 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/el/
* Translated using Weblate (Croatian)Bryan Newbold2022-04-062-4/+4
| | | | | | | Currently translated at 99.4% (192 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/hr/
* Translated using Weblate (Russian)Bryan Newbold2022-04-062-5/+5
| | | | | | | Currently translated at 95.3% (184 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/ru/
* Translated using Weblate (Arabic)Bryan Newbold2022-04-062-5/+5
| | | | | | | Currently translated at 95.3% (184 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/ar/
* Translated using Weblate (Chinese (Simplified))Bryan Newbold2022-04-062-7/+7
| | | | | | | Currently translated at 100.0% (193 of 193 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/zh_Hans/
* Update translation filesHosted Weblate2022-04-0614-294/+392
| | | | | | | Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/
* i18n: update .pot file; update babel jinja2 extension config for 3.xBryan Newbold2022-04-062-20/+24
|
* polish RSS feed generation, and add basic test coverageBryan Newbold2022-04-063-73/+91
|
* search: update 'Metadata' availablity to 'All Records'Bryan Newbold2022-04-061-1/+1
|
* pipenv: resolve fastapi-rss dependency issue by locking to fastapi-rss==0.1.3Bryan Newbold2022-04-062-66/+66
| | | | | This older version of the package does not try to lock the fastapi version
* small tweaks to RSS feedBryan Newbold2022-03-251-1/+3
|
* initial implementation of RSS search feedsBryan Newbold2022-03-253-0/+82
| | | | UI integration needs work
* pipenv: add fastapi-rssBryan Newbold2022-03-252-37/+46
| | | | | When re-locking, this resulted in an older FastAPI version. I think this is an upstream mistake, and I filed an issue.
* Translated using Weblate (Russian)S3aBreeze2022-03-222-4/+5
| | | | | | | Currently translated at 95.8% (184 of 192 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/ru/
* pipenv: update Pipfile.lockBryan Newbold2022-03-211-393/+372
| | | | | | Main motivation is to try to fix a 'BrokenResourceError' exception with FastAPI/starlette: https://github.com/tiangolo/fastapi/issues/4041
* settings: enable prometheus in QA/PRODBryan Newbold2022-03-011-0/+2
|
* i18n templates are a global, so capitalizeBryan Newbold2022-03-011-8/+8
|
* bugfix: elasticsearch per-request timeout for _health (arg name)Bryan Newbold2022-02-141-1/+1
|
* increase ES default timeout to 50sec, and _health specifically to 90secBryan Newbold2022-02-141-2/+4
| | | | | | This is because we are getting lots of alert chunder on the health check. It might be better to revisit which endpoint is being checked... 'count' is usually fast, but might be slow during bulk indexing.
* tweak abstract truncationJohannah Sprinz2022-02-081-2/+2
| | | | truncate abstracts longer than 550 chars at the 500 char mark
* add a CONTRIBUTORS fileBryan Newbold2022-02-081-0/+8
|
* Translated using Weblate (Portuguese)ssantos2022-02-032-4/+9
| | | | | | | Currently translated at 100.0% (192 of 192 strings) Translation: Internet Archive/Archive Scholar (web interface) Translate-URL: https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/pt/
* pipenv: update lock fileBryan Newbold2022-02-031-623/+796
|
* pipenv: black (code style tool) has stable releaseBryan Newbold2022-02-031-3/+1
|
* sitemap generation: move public domain wall; remove 'is_biblio' filterBryan Newbold2022-01-202-4/+2
|