summaryrefslogtreecommitdiffstats
path: root/rust/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* add serde deps directly to fatcat crateBryan Newbold2019-01-141-0/+2
|
* WIP on annotations and editgroup accessorsBryan Newbold2019-01-111-1/+1
|
* WIP on annotations and changesBryan Newbold2019-01-101-1/+1
|
* narrow down many glob importsBryan Newbold2019-01-101-0/+1
|
* HUGE refactor of error types (to use failure)Bryan Newbold2019-01-091-2/+2
|
* some clippy nitsBryan Newbold2019-01-091-3/+0
|
* huge refactor of rust modules/filesBryan Newbold2019-01-081-190/+13
| | | | | | Taking advantage of new Rust 2018 crate/module path changes, and re-organizing things. Somewhat optimistic this could help with partial rebuild speed also.
* rust 2018 edition!Bryan Newbold2019-01-081-2/+2
| | | | Only the basics to get things to compile/test again in this commit.
* integrate pg_tmp into testsBryan Newbold2019-01-081-5/+21
|
* make editor_id optional when createding editgroupBryan Newbold2018-12-311-2/+1
| | | | The editor_id can be infered from auth metadata.
* allow multiple 'alt' keys to be specified in envBryan Newbold2018-12-311-1/+18
|
* rustfmt; implement role-based auth checksBryan Newbold2018-12-311-5/+15
|
* wire-up auth config via ENVBryan Newbold2018-12-311-8/+18
|
* more auth refactoringBryan Newbold2018-12-281-1/+1
|
* start refactor of auth codeBryan Newbold2018-12-281-1/+2
| | | | | | | Pulls auth code (which requires the persistent state of a signing keyring) into a struct. Doesn't try verify macaroon in middleware, do it in individual wrappers.
* more basic work on authBryan Newbold2018-12-271-1/+2
|
* start skeleton of auth internal bitsBryan Newbold2018-12-261-1/+3
|
* 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
|