summaryrefslogtreecommitdiffstats
path: root/rust/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* verify checksum against regexesBryan Newbold2018-12-211-1/+5
|
* 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)
* better return status for some error conditionsBryan Newbold2018-12-141-1/+6
|
* skeleton out new schema featuresBryan Newbold2018-12-131-0/+4
|
* enforce some controlled vocabularies in APIBryan Newbold2018-11-141-0/+4
|
* squelch diesel macro warningsBryan Newbold2018-09-181-0/+2
|
* first pass fast exportBryan Newbold2018-09-111-1/+1
|
* finish fatcat-api => fatcat-api-spec refactorBryan Newbold2018-09-111-1/+1
|
* many small API cleanupsBryan Newbold2018-09-101-1/+1
| | | | | | - use FatCatId much more often (though not everywhere yet) - more consistent types - remove redundant error handling code in wrappers
* database_entity_crud -> api_entity_crudBryan Newbold2018-09-101-1/+1
|
* fmtBryan Newbold2018-09-071-1/+1
|
* major CRUD refactorBryan Newbold2018-09-071-0/+1
| | | | | | | | | | | | | | | 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)
* correct EditgroupAlreadyAccepted responseBryan Newbold2018-08-311-0/+4
|
* pull in sha1 library (for abstracts)Bryan Newbold2018-07-251-0/+1
|
* more external ident handlingBryan Newbold2018-07-251-0/+7
|
* whole bunch of clippy fixesBryan Newbold2018-07-241-1/+2
|
* rust: base32 encoded identsBryan Newbold2018-07-201-20/+6
|
* entity ident (fcid) UUID helpersBryan Newbold2018-07-201-0/+21
| | | | | Could perhaps implement these as impl methods on the uuid::Uuid struct instead?
* refactor massive rust api_server into api_wrappersBryan Newbold2018-06-301-0/+1
| | | | | The wrappers file contains the "glue" code to map to fatcat-api (openapi2 codegen) function signatures.
* actually log errorsBryan Newbold2018-06-211-0/+2
|
* implement (most) of stats endpointBryan Newbold2018-06-191-0/+2
|
* batch POST methodsBryan Newbold2018-05-271-0/+1
|
* WIP on API spec improvementsBryan Newbold2018-05-241-3/+2
| | | | Fixes a bunch of i64/i32/isize stuff
* basic test for editgroup acceptBryan Newbold2018-05-241-13/+18
|
* get_or_create_editgroup() helper for POSTsBryan Newbold2018-05-241-0/+1
|
* clean up unused macro etc warningsBryan Newbold2018-05-241-2/+0
|
* run diesel migrations in testsBryan Newbold2018-05-241-2/+18
|
* use diesel::r2d2 instead of r2d2 directlyBryan Newbold2018-05-241-3/+2
|
* refactor error handlingBryan Newbold2018-05-151-1/+11
|
* fmtBryan Newbold2018-05-151-2/+2
|
* hack around JSON serialization for nowBryan Newbold2018-05-151-0/+1
|
* progress on database lookupBryan Newbold2018-05-151-1/+5
|
* more cleanupsBryan Newbold2018-05-151-1/+1
|
* start ripping out cruftBryan Newbold2018-05-151-4/+2
|
* fmtBryan Newbold2018-05-151-12/+16
|
* working db_pool and responseBryan Newbold2018-05-151-3/+14
|
* fix build (non-functional though)Bryan Newbold2018-05-151-1/+0
|
* broken diesel+iron integrationBryan Newbold2018-05-151-0/+2
|
* implement HTTP header middlewareBryan Newbold2018-05-151-3/+18
| | | | getting more familar with iron
* revert to v2.3.1 codegenBryan Newbold2018-05-151-15/+3
| | | | | This reverts back to something compatible with Iron and simple (blocking) parallelism, instead of the new async hyper 0.11 stuff.
* regenerated and pseudo-integratedBryan Newbold2018-05-141-6/+34
|
* add scratch rust stuffBryan Newbold2018-05-131-0/+18