summaryrefslogtreecommitdiffstats
path: root/rust/src/api_server.rs
Commit message (Collapse)AuthorAgeFilesLines
* remove unused postgres-backed stats stuffBryan Newbold2018-12-241-79/+5
| | | | Will replace with elasticsearch-based dash in webface
* rust impl of API harmonizationBryan Newbold2018-12-241-26/+26
|
* implement release_year (and rustfmt)Bryan Newbold2018-12-241-3/+3
|
* verify checksum against regexesBryan Newbold2018-12-211-18/+27
|
* more edit edgecases; editgroup status checkBryan Newbold2018-12-211-0/+1
|
* many redirect implementationsBryan Newbold2018-12-141-1/+5
| | | | | | | | | | | | | | | | | | Probably should have split this commit up, it's huge: - accept the state of "redirect to a deletion", where redirect_id is Some but rev_id is None. call this a "redirect"; previously this was an invalid state. - GET for a deleted entity returns a 200 and a stub entity, not a 404 - to PUT a redirect, or to "revert" an entity to point at a specific pre-existing revision, PUT a stub entity. things are getting messy here... to detect this state, ensure the 'state' field is blank/none (this is for API usage ergonomics, where results from a GET are often re-used in a PUT or even POST) - rustfmt - maybe even more small tweaks along the way? mystery meat! Tests are in python, not rust (and a future commit)
* lookups implBryan Newbold2018-12-141-26/+51
|
* skeleton out new schema featuresBryan Newbold2018-12-131-37/+153
|
* implement hide flagBryan Newbold2018-11-261-15/+25
|
* rustfmt, and implement schema tweaksBryan Newbold2018-09-221-6/+3
|
* remove is_not_null redundant lookup conditionsBryan Newbold2018-09-151-12/+0
|
* implement new editgroup_id behaviorBryan Newbold2018-09-111-11/+3
|
* refactor entity get and 'expansion'Bryan Newbold2018-09-111-65/+18
|
* finish fatcat-api => fatcat-api-spec refactorBryan Newbold2018-09-111-2/+2
|
* new rustfmtBryan Newbold2018-09-111-17/+21
|
* rust clippy (lint) tweaksBryan Newbold2018-09-111-6/+6
|
* many small API cleanupsBryan Newbold2018-09-101-46/+44
| | | | | | - use FatCatId much more often (though not everywhere yet) - more consistent types - remove redundant error handling code in wrappers
* continue CRUD refactor, removing CUD handlersBryan Newbold2018-09-101-220/+1
| | | | | | | | Can't remove the "get" handlers because of the expand parameter, which is only implemented for releases and in the handler (not in the CRUD trait, yet). Also didn't do the batch handler stuff yet.
* database_entity_crud -> api_entity_crudBryan Newbold2018-09-101-1/+1
|
* api_server: give up and use star schema importBryan Newbold2018-09-091-6/+1
|
* TODO and commentBryan Newbold2018-09-071-1/+0
|
* fixes after autoaccept mergeBryan Newbold2018-09-071-44/+35
|
* fmtBryan Newbold2018-09-071-28/+65
|
* Merge branch 'autoaccept' into http-verbsBryan Newbold2018-09-071-1/+30
|\ | | | | | | | | | | | | | | | | Started resolving conflicts in: TODO notes/cloud_instances.txt rust/fatcat-api/README.md rust/src/api_server.rs
| * editgroup IDs are fcid, not uuidBryan Newbold2018-08-301-1/+1
| |
| * editgroup parameter for batch insertsBryan Newbold2018-08-301-5/+19
| |
| * implement autoacceptBryan Newbold2018-08-201-18/+43
| | | | | | | | | | | | Need to review: - changelog creation - clobbering of existing editgroup flag
* | fix/replace a lot of expect() callsBryan Newbold2018-09-071-3/+2
| |
* | mostly done with CRUD refactorBryan Newbold2018-09-071-617/+70
| | | | | | | | One failing test in this commit.
* | batch inserts by defaultBryan Newbold2018-09-071-0/+1
| |
* | major CRUD refactorBryan Newbold2018-09-071-85/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the start of a large refactor to move all entity CRUD (create, read, update, delete) model/database code into it's own file. HACKING has been updated with an overview of what happens in each file. Next steps: - split rev (and sub-table) insertion in to db_rev_insert and make create/update generic - inserts should be batch (vector) by default - move all other entities into this new trait framework - bypass api_server wrappers and call into CRUD from api_wrappers for entity ops (should be a big cleanup)
* | skeleton create/delete endpoints for worksBryan Newbold2018-09-061-0/+122
| | | | | | | | Other entities just stubs
* | correct EditgroupAlreadyAccepted responseBryan Newbold2018-08-311-1/+4
|/
* use index_val, not index, in SQL schemaBryan Newbold2018-08-201-6/+6
|
* add NOT NULL to other lookupsBryan Newbold2018-08-191-0/+6
|
* add hints for postgres query plannerBryan Newbold2018-08-191-0/+6
|
* trivial implementation of core_id field on releasesBryan Newbold2018-08-141-3/+5
|
* remove accidental printlnBryan Newbold2018-07-261-1/+0
|
* refactoring; expand keyword implBryan Newbold2018-07-251-43/+70
|
* big transaction/conn refactorBryan Newbold2018-07-251-152/+85
|
* have get_editgroup take optional connBryan Newbold2018-07-251-9/+18
|
* actually ON CONFLICT abstract creation (and test)Bryan Newbold2018-07-251-3/+3
|
* abstracts; more testsBryan Newbold2018-07-251-13/+53
|
* more external ident handlingBryan Newbold2018-07-251-10/+45
|
* whole bunch of clippy fixesBryan Newbold2018-07-241-58/+58
|
* partial implementation of new API featuresBryan Newbold2018-07-241-35/+84
|
* oops, forgot revisions should be UUIDBryan Newbold2018-07-201-5/+5
|
* editor_id and editgroup_id as idents; revisions as raw UUIDBryan Newbold2018-07-201-44/+44
|
* rust: base32 encoded identsBryan Newbold2018-07-201-32/+32
|
* refactor massive rust api_server into api_wrappersBryan Newbold2018-06-301-439/+53
| | | | | The wrappers file contains the "glue" code to map to fatcat-api (openapi2 codegen) function signatures.