Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | wire up new TOML views | Bryan Newbold | 2020-07-30 | 12 | -63/+194 |
| | |||||
* | generic HTML views for TOML editing | Bryan Newbold | 2020-07-30 | 4 | -0/+80 |
| | |||||
* | editing: more 'raise' status instead of 'abort()' | Bryan Newbold | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | generic helpers for TOML editing routes | Bryan Newbold | 2020-07-30 | 2 | -10/+201 |
| | |||||
* | comments documenting tuple/dict types in graphics.py | Bryan Newbold | 2020-07-30 | 1 | -0/+11 |
| | |||||
* | minor lint fixes | Bryan Newbold | 2020-07-30 | 1 | -2/+1 |
| | |||||
* | control shadow preservation display with a flag | Bryan Newbold | 2020-07-30 | 5 | -19/+80 |
| | |||||
* | release search: fix fulltext_only checkbox (from query object) | Bryan Newbold | 2020-07-30 | 2 | -1/+2 |
| | |||||
* | search: 'recent' mode for coverage search | Bryan Newbold | 2020-07-30 | 4 | -7/+134 |
| | |||||
* | first iteration of flexible search coverage | Bryan Newbold | 2020-07-30 | 5 | -2/+148 |
| | |||||
* | make some ES agg methods work on general queries | Bryan Newbold | 2020-07-30 | 2 | -32/+58 |
| | | | | | | | Eg, instead of container-specific year histogram, have the histogram fetch function take a ReleaseQuery. This is in preparation for more generic coverage visualization pages. | ||||
* | move container _stats enrichment to routes | Bryan Newbold | 2020-07-30 | 2 | -9/+4 |
| | | | | | These were being added to many views which didn't need them (eg, metadata, editing views) | ||||
* | web: move random article enrichment to special case | Bryan Newbold | 2020-07-30 | 2 | -6/+5 |
| | | | | | Instead of always enriching container entities with random articles, only do so for the primary container view. | ||||
* | lint coverage changes (so far) | Bryan Newbold | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | update container view stats | Bryan Newbold | 2020-07-30 | 5 | -85/+158 |
| | | | | | | - show release type counts - new-style preservation status (single bar) - show release_type preservation break down on coverage page | ||||
* | preservation coverage updates (first round) | Bryan Newbold | 2020-07-30 | 4 | -32/+326 |
| | | | | | | | | | | - new by-year chart with stacked histograms of all 4 preservation statuses - new-style single progress bar showing overall preservation status - new by-volume query and chart Old endpoints are left as-is, with the intention of having them "deprecated" for some time span until entirely removing them. | ||||
* | experimentally update semantic-ui to fomantic-ui 2.8.6 | Bryan Newbold | 2020-07-30 | 1 | -4/+4 |
| | | | | | | | | | | fomatic-ui is a "community fork" which has had more active recent feature additions, though i'm not sure whether the quality has been as good as the main semantic-ui project. the proximal motivation to upgrade/switch is to get multi-bar progress bars, to display overall preservation status in a single bar as a fraction. | ||||
* | include new-style preservation+release_type aggs in container stats | Bryan Newbold | 2020-07-30 | 1 | -4/+35 |
| | |||||
* | graphics: handle empty coverage years | Bryan Newbold | 2020-07-30 | 1 | -7/+8 |
| | |||||
* | update front-page counts | Bryan Newbold | 2020-07-28 | 1 | -3/+3 |
| | |||||
* | switch SERP stage coloring to brown uppercase | Bryan Newbold | 2020-07-28 | 1 | -13/+11 |
| | | | | To match fatcat-scholor, where this scheme has been successful. | ||||
* | error handling: use 400 page with error passed instead of flash() | Bryan Newbold | 2020-07-28 | 3 | -21/+23 |
| | |||||
* | remove some spurious print statements | Bryan Newbold | 2020-07-28 | 2 | -4/+1 |
| | |||||
* | convert some API errors from abort() to raise | Bryan Newbold | 2020-07-28 | 2 | -14/+14 |
| | |||||
* | generic API error page | Bryan Newbold | 2020-07-28 | 2 | -0/+50 |
| | | | | | | | | | | This error handler and view page currently works much better than the "flash()" infrastructure built-in to flask, which uses cookies and mostly does not work with our views and layouts. Would like to gradually migrate almost all API errors in the web interface to just raising errors that get rendered on an error page, instead of calling `abort(ae.status)`. | ||||
* | search: catch ES errors and display better | Bryan Newbold | 2020-07-28 | 5 | -20/+46 |
| | |||||
* | refactor search macros into new file | Bryan Newbold | 2020-07-28 | 4 | -45/+72 |
| | |||||
* | include container_id as a query boost term | Bryan Newbold | 2020-07-28 | 1 | -0/+1 |
| | |||||
* | re-order search params to satisfy pylint | Bryan Newbold | 2020-07-24 | 1 | -6/+6 |
| | | | | | | Moved all the request_cache=True param calls to just before ES request exectuation. The former ordering "just worked", but pylint didn't like it, and I suspose it was not as idiomatic as it should have been. | ||||
* | small lint fixes | Bryan Newbold | 2020-07-24 | 1 | -2/+1 |
| | |||||
* | finish backend refactoring of search code | Bryan Newbold | 2020-07-24 | 1 | -133/+108 |
| | |||||
* | refactor release and container search | Bryan Newbold | 2020-07-24 | 5 | -131/+233 |
| | | | | | | | | | | Based on fatcat-scholar refactoring. This doesn't include refactoring of stats, aggregates, or histograms yet, just the direct queries. Don't have any test coverage yet; intend to try elasticmock or figuring out how to ingest mock JSON results directly. | ||||
* | web search: fix pylint error | Bryan Newbold | 2020-07-24 | 1 | -2/+2 |
| | |||||
* | WIP: refactoring search to use elasticsearch-dsl | Bryan Newbold | 2020-07-24 | 2 | -153/+137 |
| | |||||
* | simple lint (flake8) fixes over python codebase | Bryan Newbold | 2020-07-23 | 2 | -2/+2 |
| | | | | | | These should not have any behavior changes, though a number of exception catches are now more general, and there may be long-tail exceptions getting thrown in these statements. | ||||
* | get mediawiki username creation working with spaces | Bryan Newbold | 2020-07-09 | 1 | -1/+2 |
| | |||||
* | lint (flake8) web interface python files | Bryan Newbold | 2020-07-01 | 7 | -26/+16 |
| | |||||
* | make fulltext-only label clickable | Martin Czygan | 2020-06-16 | 1 | -2/+2 |
| | |||||
* | use ES 'best_url' in file download pages | Bryan Newbold | 2020-06-04 | 2 | -2/+4 |
| | | | | Similar to recent change for release download pages. | ||||
* | re-use 'best pdf url' for release green button | Bryan Newbold | 2020-06-04 | 1 | -2/+2 |
| | | | | | | | I thought this was the existing behavior, but it looks like we were just taking the first link from the first file. In the future may refactor this out even further. | ||||
* | Merge branch 'martin-fix-container-empty-search' into 'master' | Martin Czygan | 2020-04-29 | 1 | -0/+4 |
|\ | | | | | | | | | search: assume * when q is not set or empty See merge request webgroup/fatcat!51 | ||||
| * | search: assume * when q is not set or empty | Martin Czygan | 2020-04-29 | 1 | -0/+4 |
| | | | | | | | | An example would be a blank search from a container details page. | ||||
* | | Merge branch 'bnewbold-search-tweaks' into 'master' | bnewbold | 2020-04-27 | 3 | -92/+132 |
|\ \ | |/ |/| | | | | | tweaks to search result pages See merge request webgroup/fatcat!50 | ||||
| * | web search: tweak release search result style | Bryan Newbold | 2020-04-23 | 1 | -25/+51 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is also back-ported from covid19.fatcat.wiki, though with some more tweaks on top. The changes are: - show original title if available (usually non-English) - move release_type label to title line suffix, and only show if not a "paper" - show publication status and withdrawl as text after the journal title, not as a label | ||||
| * | web search: improve indentation, fix missing div tags | Bryan Newbold | 2020-04-23 | 2 | -67/+81 |
| | | | | | | | | These are back-ported fixes from covid19.fatcat.wiki | ||||
* | | web: fix ident=None broken links | Bryan Newbold | 2020-04-23 | 3 | -6/+10 |
|/ | | | | | | On web interface views for revisions, we had a bunch of broken links because the ident is "None". This commit fixes these by removing the links. | ||||
* | consistently use raw string prefix for regex | Bryan Newbold | 2020-04-17 | 1 | -1/+1 |
| | |||||
* | web: small corrections to subtitle/original_name | Bryan Newbold | 2020-03-28 | 2 | -2/+4 |
| | |||||
* | Merge branch 'bnewbold-translation-view' | Bryan Newbold | 2020-03-28 | 2 | -0/+7 |
|\ | |||||
| * | web: use more idiomatic type check | Bryan Newbold | 2020-03-28 | 1 | -1/+1 |
| | | | | | | | | Thanks to Martin for suggestion |