Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | broken diesel+iron integration | Bryan Newbold | 2018-05-15 | 1 | -0/+2 |
| | |||||
* | implement HTTP header middleware | Bryan Newbold | 2018-05-15 | 1 | -3/+18 |
| | | | | getting more familar with iron | ||||
* | revert to v2.3.1 codegen | Bryan Newbold | 2018-05-15 | 1 | -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-integrated | Bryan Newbold | 2018-05-14 | 1 | -6/+34 |
| | |||||
* | add scratch rust stuff | Bryan Newbold | 2018-05-13 | 1 | -0/+18 |