Commit Graph

959 Commits

Author SHA1 Message Date
KevinMidboe 1b08c8d3d1 Now when running tests we use a separate config file test.json 2018-03-20 20:14:15 +01:00
KevinMidboe 9e145f7068 When testing we dont have api access so we create cache entries before each request. The cache key changed so this is now updated in the tests and tmdb. 2018-03-20 20:12:49 +01:00
KevinMidboe 7051edb212 Added unit tests for testing config file for correct values and if not check the env variables. 2018-03-20 19:25:35 +01:00
KevinMidboe 0581813ee3 Merge pull request #92 from KevinMidboe/api_filterBug
Fixes api not filtering requests/all query when filtering
v1.0.1
2018-03-20 13:17:17 +01:00
KevinMidboe edf1de223e When filtering the request on status the sql query for the db did not sort DESC. 2018-03-20 13:11:26 +01:00
KevinMidboe 7595b6df25 Update README.md v1.0.0 2018-03-19 17:03:03 +01:00
KevinMidboe 04ec0e0785 Update README.md
Added snyk badge
2018-03-19 17:02:02 +01:00
KevinMidboe b08dc899c3 Update ISSUE_TEMPLATE.md 2018-03-19 16:32:03 +01:00
KevinMidboe aafe524681 Merge pull request #90 from KevinMidboe/testing
Testing
2018-03-19 16:28:44 +01:00
KevinMidboe 40b7ceda5f The name of the teardown.sql file was renamed, reverted to correct name. 2018-03-19 16:23:58 +01:00
KevinMidboe 8850f06e3e Updated travis config. 2018-03-19 16:15:31 +01:00
KevinMidboe 972dcf4aab Merge pull request #84 from KevinMidboe/api_request
Api request
2018-03-19 15:46:18 +01:00
KevinMidboe 8e0eff7120 Merge branch 'master' into api_request 2018-03-19 15:46:07 +01:00
KevinMidboe e092eae60a The retrieveHash and changePassword functions now return promises. 2018-03-19 15:43:48 +01:00
KevinMidboe 424cf0985d Added test for registering when user is already registered. 2018-03-19 15:43:00 +01:00
KevinMidboe ed5d302820 Stricter when running test, now we wait until resetdatabase and createuser are done in in the before function before running the tests. 2018-03-19 15:27:11 +01:00
KevinMidboe 559ef1bc11 Before we create a db instance we check for testing flag is set and then use the :MEMORY: database for a anonymous db instance. 2018-03-19 15:25:53 +01:00
KevinMidboe 9645fba4ef Removed connect, connection is now a new sqlite instance, async run function, check for errors when executing and setup and teardown now return promises. 2018-03-19 15:24:42 +01:00
KevinMidboe e27d5c7084 We use the db instance globally with establisheddatabase. 2018-03-19 15:23:54 +01:00
KevinMidboe 4ab3946181 Added testing variable, this uses :MEMORY: database when running tests. 2018-03-19 15:22:33 +01:00
KevinMidboe 3a508b9843 Because we sort requests by date we want to use a finer measurement of time to sort more correctly. 2018-03-09 13:37:23 +01:00
KevinMidboe d8078570eb Changed the sort order when selecting all from requests. 2018-03-09 13:36:01 +01:00
KevinMidboe 47b499c072 Jackett sometimes returns a link to self that redirects to a magnet. The response is now parsed for if it is a link and gets the url it redirects to. 2018-03-08 16:35:17 +01:00
KevinMidboe a69e2d9bbb Merge pull request #88 from KevinMidboe/submodules
Submodules
2018-03-08 14:31:21 +01:00
KevinMidboe 72a7a7e00d Changed path to new submodule location. 2018-03-08 14:25:28 +01:00
KevinMidboe 50d3135a81 Moved submodule to parent directory. 2018-03-08 14:15:25 +01:00
KevinMidboe 9e557759ce deleted old submodule app. 2018-03-08 14:07:57 +01:00
KevinMidboe 1806f89e2b Imported submodule from scratch again. 2018-03-08 13:59:43 +01:00
KevinMidboe 9140fa37eb Deleted gitmodules and include folder. 2018-03-08 13:57:06 +01:00
KevinMidboe 6c062f5fc1 Changed gitmodules config file and moved the submodule from app to a new directory inculde. Also changed default search site to jackett. 2018-03-08 13:48:52 +01:00
KevinMidboe 3abd7ddc61 Fixed merge conflict to newer SQL statements 2018-03-08 10:38:56 +01:00
KevinMidboe 6a7b427ef3 Changed cache TTL to 3 hours. 2018-03-08 10:36:13 +01:00
KevinMidboe 8fbd0eb9d8 Also unpacks the value of username before passing it to searchHistory. 2018-03-08 10:33:04 +01:00
KevinMidboe 127db8b2fe Errors when we have a user that was not signed in. Fixed to unpack the username value first, then pass it to the function. 2018-03-08 10:32:19 +01:00
KevinMidboe 13401a318a History was not wokring because upgrade to sqlite3. Now we do a stateless call to the database and reolve or reject the response. 2018-03-08 10:30:39 +01:00
KevinMidboe 72847efb93 Update ISSUE_TEMPLATE.md 2018-03-08 02:27:17 +01:00
KevinMidboe 7801ea5d05 Create ISSUE_TEMPLATE.md 2018-03-08 02:26:02 +01:00
KevinMidboe 37474de848 Changed to resolve and reject the result from tmdb. And first get the username before sending user to another functoin. 2018-03-07 18:14:07 +01:00
KevinMidboe 1a4aefda14 Get the user variable from req not req.headers 2018-03-07 18:12:21 +01:00
KevinMidboe 40b539db68 Reversed the sorting direction. 2018-03-07 15:37:39 +01:00
KevinMidboe 453727db1b Fixed issue where the user was not being saved alongside the request. Also fixed what the list of requests are sorted by. 2018-03-07 15:35:55 +01:00
KevinMidboe ab2d3c6756 Renamed function name and now returns 500 error when a problem is found. 2018-03-07 14:57:18 +01:00
KevinMidboe 69e694493c updating submodule to latest 2018-03-07 09:58:54 +01:00
KevinMidboe 27c95375e2 Reverted back to only be authenticated beacuse something wrong with getting the correct user. Will replace with admin check as middleware when fixed. 2018-03-07 01:37:42 +01:00
KevinMidboe ba96e27c43 Alongside the token the value of admin state is also sent. 2018-03-07 01:35:40 +01:00
KevinMidboe 858f3f5d57 Can now get user admin status. 2018-03-07 01:30:28 +01:00
KevinMidboe 59b206bf2d Forgot a leading / 2018-03-06 22:13:53 +01:00
KevinMidboe fac9e0e425 Added a endpoint to fetch a random emoji. 2018-03-06 22:02:32 +01:00
KevinMidboe e65d4125b9 Trying to sort on the wrong column name. 2018-03-06 21:27:31 +01:00
KevinMidboe 354b833375 Removed console log of table data. 2018-03-06 21:24:18 +01:00