API 2.1.0 release #30
inex
commented 2022-12-30 20:13:01 +02:00
Owner
- Added initial support for Redis storage
- Jobs are now stored in Redis
- Refactored auth
- Added redis auth backend, unused yet
- API is now aware of providers
- Added initial support for Redis storage
- Jobs are now stored in Redis
- Refactored auth
- Added redis auth backend, unused yet
- API is now aware of providers
inex
added 135 commits 2022-12-30 20:13:02 +02:00
8cdacb73dd
refactor: Use singleton metaclass for all singleton classes
19a4ec5377
feat: Add redis pool singleton
83736e1e8f
docs: add a pull request section to contributing.md
27255cb533
docs: add note about tracking time to CONTRIBUTING
b0c26b876a
add providers migration
decb98afe2
add providers.py to the list of migrations
7d58eb3d92
fix wrong cloudflare field key
9540e26ce1
add digitalocean and backblaze options
dd15e0ab65
reroute dns provider query
2ec0548c09
add provider fields to the test jsons under system
f4a7986cfa
Remove old cloudflare apiKey field from system test jsons
5efa85f877
add provider fields to the rest of test jsons
2d7bc0f154
remove cloudflare tokens from the rest of the test jsons. nobody seems to care
6c6f45781c
add new fields to the rest of the test jsons. Missed some
589093b853
delete old cloudflare field
a723311b36
reroute system provider query
07af2e59be
tests: fix backblaze bucket
41e5f89b7b
migrate backblaze settings to new json format
9ee0240bbd
Merge pull request 'houkime-providers-api' (#19) from houkime/selfprivacy-rest-api:houkime-providers-api into redis/connection-pool
f7b7e5a0be
migrate Jobs to redis
5afa2338ca
Migrate Jobs to redis
244851c7cc
jobs: remove 'jobs' list, and use 'jobs:' prefix
d6ef01c0c7
Add TTL to storage of finished or failed jobs
3ce71b0993
Merge pull request 'migrate Jobs to redis' (#20) from redis/jobs into redis/connection-pool
2e9cdf15ab
Autostart a redis instance in nix shell.
57794c9535
style(graphql): Add missing comma
60919b88b9
Merge pull request 'Autostart a redis instance in nix shell.' (#22) from redis/nixshell-redis-autostart into redis/connection-pool
144f95fb34
bind nix-shell's redis to localhost
c21b6cb071
jobs: dedicated reset test
b6eeec23cc
jobs: singlejob fixture
106a083ca2
jobs: simplify reset
7acbba9960
jobs: minimal update test
f51e378ff0
jobs: test updating more fields
870d2c408d
jobs: test nofail at nonexistent update
f0132266e9
Merge pull request 'bind nix-shell's redis to localhost' (#23) from redis/nixshell-redis-bindlocal into redis/connection-pool
14c4ae26ab
explicitly mark helper functions private
5c86706f4b
Jobs: fix value access in is_busy()
063dfafc19
Jobs: fix return value of remove_by_uid
d47368cbe9
Jobs: test get_job() return values
9cf4d46c50
redis/jobs-coverage (#24)
16e0bd56ce
refactor(repository): Tokens repository JSON backend (#18)
4cfe0515ea
test(tokens-repo): split between abstract api and backend-specific tests
8a05a55b80
test(tokens-repo): parameterized fixture
55ad2484b8
test(tokens-repo): agnostic test for getting by name
2e2d344f43
test(tokens-repo): get_tokens metaproperties test
3921d9fe4c
test(tokens-repo): agnostic token creation test
db55685488
test(tokens-repo): use 'repo' for consistency
b43c4014e2
test(tokens-repo): agnostic delete not found
fa54220327
test(tokens-repo): agnostic refresh token
c86eb8b786
test(tokens-repo): agnostic refresh token nonexistent
6f400911fc
test(tokens-repo): agnostic recovery keys testing
732e72d414
test(tokens-repo): mnemonic non-null invalid
b9c570720b
test(tokens-repo): move null recovery token test to json tests
dd525fe723
test(tokens-repo): agnostic use recovery token
f96d8b7d7c
test(tokens-repo): make another mock token generator agnostic
dc778b545e
test(tokens-repo): get new device key
73584872f0
test(tokens-repo): agnosticise simple new device key tests
3feebd5290
test(tokens-repo): invalid mnemonic new device key
cf7b7eb8a7
test(tokens-repo): notfound mnemonic new device key
ce411e9291
test(tokens-repo): using a mnemonic device key
be13d6163e
test(tokens-repo): use a mnemonic device key on an empty repo
84bfa333fa
test(tokens-repo): move new device key null test to json tests
4492bbe995
test(tokens-repo): move null keys and tokens fixtures to json tests
c12dca9d9b
refactor(tokens-repo): delete unused timezone import
0d748d7ab1
test(tokens-repo): move original token content to json tests
b856a2aad3
test(tokens-repo): re-add delete token test
ff264ec808
refactor(tokens-repo): simplify getting tokens
4e60d1d37a
refactor(tokens-repo): move token getters to abstract class
27a7c24bc3
refactor(tokens-repo): separate token storing
572ec75c39
refactor(tokens-repo): rewrite token refresh
682cd4ae87
refactor(tokens-repo): move create_token to abstract class
9a49067e53
refactor(tokens-repo): move token refreshing to parent class
671203e990
refactor(tokens-repository): dissect use_mnemonic_recovery_key()
772c0dfc64
refactor(tokens-repository): move use_mnemonic_recovery_key() to abstract class
4498003aca
refactor(tokens-repository): dissect use_mnemonic_new_device_key()
2797c6f88f
fix(tokens-repository): use_mnemonic_new_device_key() now stores a token
ca822cdf6f
refactor(tokens-repository): move use_mnemonic_new_device_key() to abstract class
f2fa47466b
feat(tokens-repo):empty implementation of redis token repo
256c16fa9f
feat(tokens-repo): redis get tokens
d8e3cd67e0
feat(tokens-repo): redis store token
ba6a5261fa
refactor(tokens-repo): redis token key func
647e02f25b
feat(tokens-repo): redis delete token
e504585437
test(tokens-repo): do not require order
3cb7f29593
refactor(tokens-repo): detach preparing a dict before a model cast
b98ccb88d1
refactor(tokens-repo): separate getting model dict
9ffd67fa19
feat(tokens-repo): get new device key
95e200bfc5
feat(tokens-repo): reset function
bf6c230ae0
fix(tokens-repo): raise token not found when deleting nonexistent token
257096084f
refactor(tokens-repo): split out date field detection
4579fec569
feat(tokens-repo): get recovery key
8dfb3eb936
feat(tokens-repo): fuller reset
eba1d01b3d
feat(tokens-repo): recovery key creation
13e84e2697
feat(tokens-repo): recovery key uses decrement
fda5d315a9
fix(tokens-repo): return device key instead of NewDeviceKey class
6f6a9f5ef0
test(tokens-repo): do not require order in test_delete_not_found_token
0ae7c43ebf
refactor(tokens-repo): break out generic hash_as_model casting
5a25e2a270
feat(tokens-repo): getting stored device key
ab70687c61
fix(tokens-repository) :make NONE-uses-left eternally valid and test for it
a97705ef25
fix(tokens-repository): fix getting and setting recovery token expiration date
009a89fa02
refactor(tokens-repo): use token repo for graphql use_recovery_api_key
d3bf867bb5
fix(tokens-repo): do not change the date on token refresh
39277419ac
refactor(tokens-repo): use tokens-repo to refresh tokens
16f71b0b09
refactor(tokens-repo): use tokens-repo to create recovery token
3021584adc
refactor(tokens-repo): delete refresh_token() from auth
20410ec790
fix(tokens-repo): fix name pair validation being able to raise a notfound error
2a239e35ad
refactor(tokens-repo): delete is_token_name_pair_valid from auth
22a309466e
fix(tokens-repo): fix is_name_exists() being fallible
5a1f64b1e7
refactor(tokens-repo): delete is_name_exists() from auth utils
66480c9904
Merge pull request 'Implement redis token repository' (#26) from redis/token-repo into redis/connection-pool
a2ac47b0f5
refactor(tokens-repo): delete delete_token from auth utils
f928ca160a
refactor(tokens-repo): use token repo in get_api_recovery_token_status action
e817de6228
refactor(tokens-repo): use token repo in get_api_tokens_with_caller_flag
5dedbda41f
refactor(tokens-repo): delete get_tokens_info() from auth utils
3f6aa9bd06
refactor(tokens-repo): delete delete_new_device_auth_token from auth utils
cb1906144c
refactor(tokens-repo): delete get_new_device_auth_token from auth utils
29723b9f3a
refactor(tokens-repo): delete use_mnemonic_recoverery_token from auth utils
c037a12f4d
refactor(tokens-repo): break out _store_new_device_key()
5d4ed73435
fix(tokens-repo): properly expire new device keys
f33d5155b0
refactor(tokens-repo): delete use_new_device_auth_token from auth utils
7cf295450b
refactor(tokens-repo): do not use tokens repo directly from graphql
69577c2854
refactor(tokens-repo): delete get_recovery_key_status from auth utils
b11e5a5f77
refactor(tokens-repo): delete recovery key quieries from auth utils
b3d6251d11
refactor(tokens-repo): delete generare recovery key from auth utils
25326b75ca
refactor(tokens-repo): delete create token from auth utils
87ea88c50a
refactor(tokens-repo): delete get token name from auth utils
7d9bccf4ec
fix(tokens-repo): make is_token_valid infallible
8235c3595c
refactor(tokens-repo): delete is_token_valid from auth utils
450ff41ebd
feat(tokens-repo): make device names unique before storage
3ecfb2eacb
refactor(tokens-repo): delete auth utils
67872d7c55
test(tokens-repo): use mnemonic_from_hex consistently
999dd95cab
ci: Add redis to CI pipeline
7b526b7bd9
Merge branch 'redis/connection-pool' into redis/token-repo
cb403a94bd
fix: typing
45c6133881
Merge pull request 'Migrate to AbstractTokenRepository API' (#28) from redis/token-repo into redis/connection-pool
24353ca56a
chore: bump API version
inex
added 2 commits 2022-12-30 20:21:52 +02:00
bcfb8e62e9
refactor(repository): Tokens repository JSON backend (#18)
2fc635da71
docs: add CONTRIBUTING.md
inex
added 1 commit 2022-12-30 20:25:35 +02:00
2db40650ad
Merge remote-tracking branch 'origin/master' into redis/connection-pool
inex
merged commit b5ee542693 into master 2022-12-30 20:25:59 +02:00
inex
referenced this issue from a commit 2022-12-30 20:25:59 +02:00
Merge pull request 'API 2.1.0 release' (#30) from redis/connection-pool into master
No reviewers
Labels
No Label
Bug
Contributions welcome
Did not do
Duplicate
Feature
Module
Backups
Module
GraphQL
Priority
High
Priority
Low
Priority
Medium
Refactor
Severity
High
Severity
Low
Severity
Medium
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SelfPrivacy/selfprivacy-rest-api#30
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "redis/connection-pool"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?