summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/routes.py
Commit message (Collapse)AuthorAgeFilesLines
* web: move random article enrichment to special caseBryan Newbold2020-07-301-2/+3
| | | | | Instead of always enriching container entities with random articles, only do so for the primary container view.
* update container view statsBryan Newbold2020-07-301-0/+5
| | | | | | - 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 Newbold2020-07-301-4/+60
| | | | | | | | | | - 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.
* error handling: use 400 page with error passed instead of flash()Bryan Newbold2020-07-281-13/+7
|
* remove some spurious print statementsBryan Newbold2020-07-281-3/+0
|
* convert some API errors from abort() to raiseBryan Newbold2020-07-281-7/+7
|
* generic API error pageBryan Newbold2020-07-281-0/+30
| | | | | | | | | | 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 betterBryan Newbold2020-07-281-3/+9
|
* refactor release and container searchBryan Newbold2020-07-241-33/+11
| | | | | | | | | | 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.
* simple lint (flake8) fixes over python codebaseBryan Newbold2020-07-231-1/+1
| | | | | | 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.
* lint (flake8) web interface python filesBryan Newbold2020-07-011-4/+3
|
* search: assume * when q is not set or emptyMartin Czygan2020-04-291-0/+4
| | | | An example would be a blank search from a container details page.
* update ingest request schemaBryan Newbold2019-12-131-2/+6
| | | | | This is mostly changing ingest_type from 'file' to 'pdf', and adding 'link_source'/'link_source_id', plus some small cleanups.
* initial 'Save Paper Now' web formBryan Newbold2019-12-121-1/+41
|
* Add basic pagination to search resultsMartin Czygan2019-11-081-2/+7
| | | | | | | | | | | | The "deep paging problem" imposes some limit, which currently is a hardcoded default value, `deep_page_limit=2000` in `do_search`. Elasticsearch can be configured, too: > Note that from + size can not be more than the index.max_result_window index setting, which defaults to 10,000. -- https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-from-size
* redirect direct entity underscore linksBryan Newbold2019-10-031-0/+28
|
* handle more external identifiers in pythonBryan Newbold2019-09-181-0/+4
| | | | | This makes it possible to, eg, past an arxiv identifier or SHA-1 hash in the general search box and do a quick lookup.
* webface: fix duration_seconds parsingBryan Newbold2019-09-181-1/+1
|
* python webface impl token generationBryan Newbold2019-09-181-0/+33
|
* refactor all python source for client lib nameBryan Newbold2019-09-051-2/+2
|
* finish container coverage pageBryan Newbold2019-09-041-0/+15
| | | | Also re-worked container view sidebar a bit more.
* start container coverage pageBryan Newbold2019-09-041-0/+19
|
* do release search by container_id, not issnlBryan Newbold2019-09-031-0/+4
|
* container issnl: handle invalid ISSN-L better, and fix except blocksBryan Newbold2019-08-221-2/+5
|
* default container stats by ident, not issnlBryan Newbold2019-08-121-1/+19
|
* complete generic entity rev viewsBryan Newbold2019-06-281-28/+14
| | | | | | Was getting 500s in production from crawlers. Also expand test coverage.
* include _metadata in editgroup views alsoBryan Newbold2019-06-141-0/+4
|
* refactor all entities to new UI styleBryan Newbold2019-06-131-18/+128
|
* fixes after rebaseBryan Newbold2019-06-131-2/+2
|
* start work on 'generic' search boxBryan Newbold2019-06-131-4/+26
|
* entity view tweaksBryan Newbold2019-06-131-3/+7
|
* experiment with entity view tabsbnewbold2019-06-131-0/+12
|
* implement major refactor for other entity typesBryan Newbold2019-06-131-115/+90
|
* get rid of active_editgroup_id cookieBryan Newbold2019-06-131-3/+0
|
* container revision viewBryan Newbold2019-06-131-1/+1
|
* continue large refactors of entity viewsBryan Newbold2019-06-121-5/+21
| | | | | | - container views generic - editgroup edit deletion and re-editing - /editgroup/entity/ident views
* start refactoring entity view routesBryan Newbold2019-06-111-202/+134
|
* fixes to lookup viewsBryan Newbold2019-06-051-2/+2
|
* more lookup viewsBryan Newbold2019-06-051-10/+74
|
* release lookup viewBryan Newbold2019-06-051-9/+20
|
* arxiv abstracts latex hackBryan Newbold2019-05-221-0/+4
|
* webface lookups for jstor, arxivBryan Newbold2019-05-221-1/+2
|
* simplify file/fileset/webcapture views with release expansionBryan Newbold2019-05-201-24/+4
|
* partial python impl of ext_id and release_stage refactorsBryan Newbold2019-05-131-1/+1
|
* fix author sort order on release viewBryan Newbold2019-04-181-1/+3
| | | | | | My sorting function was too clever, so I made it even more clever. Closes #27; thanks @ibnesayeed for the report.
* crude mostly-working wikipedia (mediawiki) loginBryan Newbold2019-04-091-2/+15
|
* resyle login viewsBryan Newbold2019-04-091-5/+0
|
* have webcapture wayback links go right to capture (not calendar)Bryan Newbold2019-04-091-6/+7
|
* temporary hack to remove ext-link XML in refsBryan Newbold2019-04-091-0/+10
|
* partial checking of editgroup_id checking when editingBryan Newbold2019-04-091-0/+3
|