Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | switch entity acceptance for cockroach branch | Bryan Newbold | 2018-09-09 | 1 | -10/+10 |
| | |||||
* | test: contribs should work without wiping database | Bryan Newbold | 2018-09-09 | 1 | -1/+1 |
| | | | | | | This removes an entanglement between tests that was breaking on the cockroachdb branch (where the database isn't reset between each individual test). | ||||
* | changelog ID as a sequence | Bryan Newbold | 2018-09-09 | 2 | -1/+5 |
| | | | | | | | | | | | As noted elsewhere, auto-increment sequences in postgres, mysql, and cockroach can have gaps: when transactions that increment a number are rolled back, a "gap" is left. I didn't realize this, and it's problematic for the external changelog API. I'll need to re-write the changelog inserter to query for the current highest number when inserting, which is unfortunate and might slow down bulk imports. | ||||
* | Merge branch 'http-verbs' into cockroach | Bryan Newbold | 2018-09-09 | 3 | -50/+159 |
|\ | |||||
| * | generic edit accept, and per-row variant | Bryan Newbold | 2018-09-09 | 2 | -44/+158 |
| | | | | | | | | The per-row variant is for use with cockroach. | ||||
| * | api_server: give up and use star schema import | Bryan Newbold | 2018-09-09 | 1 | -6/+1 |
| | | |||||
* | | Merge branch 'http-verbs' into cockroach | Bryan Newbold | 2018-09-09 | 22 | -859/+5239 |
|\| | | | | | | | | | | | | | | | Manually merged conflicts: rust/migrations/2018-05-12-001226_init/up.sql rust/src/api_server.rs rust/src/database_schema.rs | ||||
| * | update TODO | Bryan Newbold | 2018-09-09 | 1 | -9/+11 |
| | | |||||
| * | parallelize abstracts insertion | Bryan Newbold | 2018-09-09 | 1 | -15/+20 |
| | | |||||
| * | TODO and comment | Bryan Newbold | 2018-09-07 | 2 | -1/+2 |
| | | |||||
| * | fixes after autoaccept merge | Bryan Newbold | 2018-09-07 | 4 | -49/+41 |
| | | |||||
| * | re-codegen | Bryan Newbold | 2018-09-07 | 1 | -1/+11 |
| | | |||||
| * | fmt | Bryan Newbold | 2018-09-07 | 5 | -207/+364 |
| | | |||||
| * | Merge branch 'autoaccept' into http-verbs | Bryan Newbold | 2018-09-07 | 11 | -63/+475 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | Started resolving conflicts in: TODO notes/cloud_instances.txt rust/fatcat-api/README.md rust/src/api_server.rs | ||||
| | * | editgroup IDs are fcid, not uuid | Bryan Newbold | 2018-08-30 | 1 | -1/+1 |
| | | | |||||
| | * | minimal autoaccept tests | Bryan Newbold | 2018-08-30 | 1 | -0/+41 |
| | | | |||||
| | * | editgroup parameter for batch inserts | Bryan Newbold | 2018-08-30 | 2 | -6/+21 |
| | | | |||||
| | * | WIP: autoaccept | Bryan Newbold | 2018-08-24 | 8 | -47/+225 |
| | | | |||||
| | * | implement autoaccept | Bryan Newbold | 2018-08-20 | 2 | -20/+46 |
| | | | | | | | | | | | | | | | | | | Need to review: - changelog creation - clobbering of existing editgroup flag | ||||
| | * | codegen | Bryan Newbold | 2018-08-20 | 8 | -51/+223 |
| | | | |||||
| * | | fix/replace a lot of expect() calls | Bryan Newbold | 2018-09-07 | 3 | -47/+48 |
| | | | |||||
| * | | mostly done with CRUD refactor | Bryan Newbold | 2018-09-07 | 3 | -625/+745 |
| | | | | | | | | | | | | One failing test in this commit. | ||||
| * | | batch inserts by default | Bryan Newbold | 2018-09-07 | 3 | -27/+95 |
| | | | |||||
| * | | generic create (multiple inserts) | Bryan Newbold | 2018-09-07 | 1 | -26/+24 |
| | | | | | | | | | | | | | | | | | | | | | This does away entirely with the fancy CTE-based custom SQL inserts. Because performance is currently only important for batch inserts, I think this is acceptable, and will refactor to do batch inserts as actual batch SQL operations next. | ||||
| * | | crud: refactor to split out rev insert | Bryan Newbold | 2018-09-07 | 1 | -43/+51 |
| | | | |||||
| * | | major CRUD refactor | Bryan Newbold | 2018-09-07 | 5 | -85/+336 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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) | ||||
| * | | update TODO | Bryan Newbold | 2018-09-06 | 1 | -0/+7 |
| | | | |||||
| * | | skeleton create/delete endpoints for works | Bryan Newbold | 2018-09-06 | 3 | -2/+293 |
| | | | | | | | | | | | | Other entities just stubs | ||||
| * | | codegen put/delete | Bryan Newbold | 2018-09-06 | 9 | -42/+3101 |
| | | | |||||
| * | | correct EditgroupAlreadyAccepted response | Bryan Newbold | 2018-08-31 | 4 | -5/+14 |
| | | | |||||
| * | | add bad request response type for eg accept | Bryan Newbold | 2018-08-31 | 7 | -10/+14 |
| | | | |||||
| * | | split/move docs around | Bryan Newbold | 2018-08-24 | 3 | -84/+61 |
| | | | |||||
| * | | NOTES => rust_libraries.txt | Bryan Newbold | 2018-08-24 | 1 | -19/+0 |
| |/ | |||||
| * | use index_val, not index, in SQL schema | Bryan Newbold | 2018-08-20 | 4 | -16/+16 |
| | | |||||
| * | add NOT NULL to other lookups | Bryan Newbold | 2018-08-19 | 1 | -0/+6 |
| | | |||||
| * | add hints for postgres query planner | Bryan Newbold | 2018-08-19 | 1 | -0/+6 |
| | | |||||
| * | add index on release_rev_abstract SHA1 column | Bryan Newbold | 2018-08-19 | 1 | -0/+1 |
| | | |||||
| * | add index on file_rev_url file_rev | Bryan Newbold | 2018-08-19 | 1 | -0/+2 |
| | | |||||
| * | create index on release_rev_abstracts | Bryan Newbold | 2018-08-18 | 1 | -0/+2 |
| | | |||||
| * | ORCIDs can end in X character | Bryan Newbold | 2018-08-16 | 4 | -6/+14 |
| | | |||||
* | | cockroach: refactor custom insert queries into diesel | Bryan Newbold | 2018-08-17 | 1 | -100/+95 |
| | | | | | | | | | | | | | | | | | | | | | | Basically reverts some big speedups around "single query inserts" (to ident, rev, and edit tables concurrently), because cockroach doesn't support "multiple uses of CTEs" (table expressions). There's probably a way to rewrite using subqueries instead. Also, would actually want to refactor and use NewRow structs instead of tuples, I think. | ||||
* | | cockroach: catch remaining JSONB stuff | Bryan Newbold | 2018-08-17 | 2 | -14/+14 |
| | | |||||
* | | cockroach: don't auto-wipe tables in tests (for now) | Bryan Newbold | 2018-08-14 | 2 | -8/+8 |
| | | | | | | | | | | This fixes the OID type 114 bug; schema had been updated, but didn't update insert statements/casts. | ||||
* | | cockroach: try JSONB over JSON | Bryan Newbold | 2018-08-14 | 2 | -12/+12 |
| | | |||||
* | | revert role_val change | Bryan Newbold | 2018-08-14 | 4 | -8/+8 |
| | | |||||
* | | index_val and role_val | Bryan Newbold | 2018-08-14 | 3 | -17/+17 |
| | | |||||
* | | cockroach: rename reserved columns | Bryan Newbold | 2018-08-14 | 1 | -5/+5 |
| | | |||||
* | | cockroach: create active_editgroup_id index on editor table | Bryan Newbold | 2018-08-14 | 1 | -0/+2 |
| | | |||||
* | | cockroach: no WHERE on indexes | Bryan Newbold | 2018-08-14 | 1 | -14/+14 |
| | | |||||
* | | cockroach: gen_random_uuid() not uuid_generate_v4() | Bryan Newbold | 2018-08-14 | 1 | -14/+14 |
| | |