Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | HUGE refactor of error types (to use failure) | Bryan Newbold | 2019-01-09 | 1 | -2/+2 |
| | |||||
* | some clippy nits | Bryan Newbold | 2019-01-09 | 1 | -3/+0 |
| | |||||
* | huge refactor of rust modules/files | Bryan Newbold | 2019-01-08 | 1 | -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 Newbold | 2019-01-08 | 1 | -2/+2 |
| | | | | Only the basics to get things to compile/test again in this commit. | ||||
* | integrate pg_tmp into tests | Bryan Newbold | 2019-01-08 | 1 | -5/+21 |
| | |||||
* | make editor_id optional when createding editgroup | Bryan Newbold | 2018-12-31 | 1 | -2/+1 |
| | | | | The editor_id can be infered from auth metadata. | ||||
* | allow multiple 'alt' keys to be specified in env | Bryan Newbold | 2018-12-31 | 1 | -1/+18 |
| | |||||
* | rustfmt; implement role-based auth checks | Bryan Newbold | 2018-12-31 | 1 | -5/+15 |
| | |||||
* | wire-up auth config via ENV | Bryan Newbold | 2018-12-31 | 1 | -8/+18 |
| | |||||
* | more auth refactoring | Bryan Newbold | 2018-12-28 | 1 | -1/+1 |
| | |||||
* | start refactor of auth code | Bryan Newbold | 2018-12-28 | 1 | -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 auth | Bryan Newbold | 2018-12-27 | 1 | -1/+2 |
| | |||||
* | start skeleton of auth internal bits | Bryan Newbold | 2018-12-26 | 1 | -1/+3 |
| | |||||
* | verify checksum against regexes | Bryan Newbold | 2018-12-21 | 1 | -1/+5 |
| | |||||
* | many redirect implementations | Bryan Newbold | 2018-12-14 | 1 | -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 conditions | Bryan Newbold | 2018-12-14 | 1 | -1/+6 |
| | |||||
* | skeleton out new schema features | Bryan Newbold | 2018-12-13 | 1 | -0/+4 |
| | |||||
* | enforce some controlled vocabularies in API | Bryan Newbold | 2018-11-14 | 1 | -0/+4 |
| | |||||
* | squelch diesel macro warnings | Bryan Newbold | 2018-09-18 | 1 | -0/+2 |
| | |||||
* | first pass fast export | Bryan Newbold | 2018-09-11 | 1 | -1/+1 |
| | |||||
* | finish fatcat-api => fatcat-api-spec refactor | Bryan Newbold | 2018-09-11 | 1 | -1/+1 |
| | |||||
* | many small API cleanups | Bryan Newbold | 2018-09-10 | 1 | -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_crud | Bryan Newbold | 2018-09-10 | 1 | -1/+1 |
| | |||||
* | fmt | Bryan Newbold | 2018-09-07 | 1 | -1/+1 |
| | |||||
* | major CRUD refactor | Bryan Newbold | 2018-09-07 | 1 | -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 response | Bryan Newbold | 2018-08-31 | 1 | -0/+4 |
| | |||||
* | pull in sha1 library (for abstracts) | Bryan Newbold | 2018-07-25 | 1 | -0/+1 |
| | |||||
* | more external ident handling | Bryan Newbold | 2018-07-25 | 1 | -0/+7 |
| | |||||
* | whole bunch of clippy fixes | Bryan Newbold | 2018-07-24 | 1 | -1/+2 |
| | |||||
* | rust: base32 encoded idents | Bryan Newbold | 2018-07-20 | 1 | -20/+6 |
| | |||||
* | entity ident (fcid) UUID helpers | Bryan Newbold | 2018-07-20 | 1 | -0/+21 |
| | | | | | Could perhaps implement these as impl methods on the uuid::Uuid struct instead? | ||||
* | refactor massive rust api_server into api_wrappers | Bryan Newbold | 2018-06-30 | 1 | -0/+1 |
| | | | | | The wrappers file contains the "glue" code to map to fatcat-api (openapi2 codegen) function signatures. | ||||
* | actually log errors | Bryan Newbold | 2018-06-21 | 1 | -0/+2 |
| | |||||
* | implement (most) of stats endpoint | Bryan Newbold | 2018-06-19 | 1 | -0/+2 |
| | |||||
* | batch POST methods | Bryan Newbold | 2018-05-27 | 1 | -0/+1 |
| | |||||
* | WIP on API spec improvements | Bryan Newbold | 2018-05-24 | 1 | -3/+2 |
| | | | | Fixes a bunch of i64/i32/isize stuff | ||||
* | basic test for editgroup accept | Bryan Newbold | 2018-05-24 | 1 | -13/+18 |
| | |||||
* | get_or_create_editgroup() helper for POSTs | Bryan Newbold | 2018-05-24 | 1 | -0/+1 |
| | |||||
* | clean up unused macro etc warnings | Bryan Newbold | 2018-05-24 | 1 | -2/+0 |
| | |||||
* | run diesel migrations in tests | Bryan Newbold | 2018-05-24 | 1 | -2/+18 |
| | |||||
* | use diesel::r2d2 instead of r2d2 directly | Bryan Newbold | 2018-05-24 | 1 | -3/+2 |
| | |||||
* | refactor error handling | Bryan Newbold | 2018-05-15 | 1 | -1/+11 |
| | |||||
* | fmt | Bryan Newbold | 2018-05-15 | 1 | -2/+2 |
| | |||||
* | hack around JSON serialization for now | Bryan Newbold | 2018-05-15 | 1 | -0/+1 |
| | |||||
* | progress on database lookup | Bryan Newbold | 2018-05-15 | 1 | -1/+5 |
| | |||||
* | more cleanups | Bryan Newbold | 2018-05-15 | 1 | -1/+1 |
| | |||||
* | start ripping out cruft | Bryan Newbold | 2018-05-15 | 1 | -4/+2 |
| | |||||
* | fmt | Bryan Newbold | 2018-05-15 | 1 | -12/+16 |
| | |||||
* | working db_pool and response | Bryan Newbold | 2018-05-15 | 1 | -3/+14 |
| | |||||
* | fix build (non-functional though) | Bryan Newbold | 2018-05-15 | 1 | -1/+0 |
| |