Commit Graph

11 Commits (333329c631f91c9a22c91a6fea905c12f2b9ec0a)

Author SHA1 Message Date
Joey Hines 333329c631
Added local api server + geoffrey_cli
ci/woodpecker/push/woodpecker Pipeline failed Details
+ Local api server is designed to allow local access to Geoffrey without a token
+ Uses a unix domain socket, allowing permissions to be handled by the OS
+ Started work on a tool to exploit this, geoffrey-cli
2022-02-06 15:32:33 -07:00
Joey Hines a8f5f5d87b
Added global settings
ci/woodpecker/push/woodpecker Pipeline was successful Details
+ Usedful for the impls to retrieve settings without having to redefine them in each project
+ Start of models api
+ Bunch of small tweaks
+ clippy + fmt
2022-01-08 12:35:55 -07:00
Joey Hines 99cb470e6e
Added forced migration option
ci/woodpecker/push/woodpecker Pipeline was successful Details
+ Useful when u h*ck up like me
2022-01-06 19:26:14 -07:00
Joey Hines 29a4cd3eb6
Fixed selling test
continuous-integration/woodpecker the build was successful Details
2021-12-25 21:04:12 -06:00
Joey Hines 551a0a7618
Fixed broken test after refactor
continuous-integration/woodpecker the build was successful Details
2021-12-18 09:10:51 -07:00
Joey Hines 3711e7011c
Refactored parameter handling + added delete command
+ CommandRequest is now a struct that contains a generic parameter for the type
+ This streamlines adding new command parameters and reduces duplicate code
+ Added delete commands
2021-12-17 20:03:15 -07:00
Joey Hines 199516f3cc
Added set_portal to the API
+ Bumped DB version to 3
+ Renamed "tunnel" to "portal" on the location models
+ Added a new migration
+ Cargo + Clippy
2021-12-07 20:33:25 -07:00
Joey Hines 04d9c29458
Improved tests and added CI config
+ Fixed long-standing issues with database tests. The DB is now guarded by a mutex to prevent tests running in parallel
+ Added .drone.yml to run tests on a PR and on a push
2021-11-14 17:04:03 -07:00
Joey Hines e1b362aa1c
Implemented sorting an ordering for selling
+ Added parameter validation as well
+ Currently, Restock and Price are the two sorting methods available
2021-11-14 16:28:55 -07:00
Joey Hines ebaf28e39e
Added a stress test for selling queries
+ Queries are pretty much linear with the number of shops/items added
+ Tested with 1000 shows with 10 items each, query took 100ms
2021-11-14 15:38:32 -07:00
Joey Hines 8e8798f509
First pass on shop/item handling
+ The `add_item` command adds items to a location of type `Shop`
+ `selling` allows items to be queried
  + Items are not sorted yet
  + The user will be able to apply optional sorting params
+ Allowed the `insert` function of the DB to be used to update a model already in the DB
+ Clippy + Fmt
2021-11-07 14:23:18 -07:00