Skip to content

UserModel related hooks, decorators, and settings #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 65 commits into from
Jan 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
6257c02
first draft of `use_user` and `use_user_data`
Archmonger Sep 18, 2023
2762345
misc
Archmonger Sep 18, 2023
72055e2
remove unneeded imports
Archmonger Sep 18, 2023
cb1c172
auth_required -> user_passes_test
Archmonger Sep 19, 2023
6815927
revert docs mods
Archmonger Sep 19, 2023
a1809d1
remove ComponentWebsocket
Archmonger Sep 19, 2023
81780dc
Merge remote-tracking branch 'upstream/main' into use-user-state-hook
Archmonger Sep 21, 2023
2f0735e
Simplify middleware requirements
Archmonger Sep 24, 2023
9a597a7
Merge remote-tracking branch 'upstream/main' into use-user-state-hook
Archmonger Sep 25, 2023
65119e3
fix changelog merge issue
Archmonger Sep 25, 2023
b32ca1a
fix circular import
Archmonger Sep 25, 2023
4d3b538
_UserDataType
Archmonger Sep 25, 2023
e2ae741
user_passes_test docstring
Archmonger Sep 25, 2023
b312ff6
fix docstrings for mutation and query hooks
Archmonger Sep 25, 2023
70c03b8
remove user_data_model type
Archmonger Sep 25, 2023
510f6a9
fix new mkdocs font color
Archmonger Sep 25, 2023
299f330
add warning to utils page
Archmonger Sep 25, 2023
a5b2a18
functional type hints
Archmonger Sep 26, 2023
b0bdbfc
use_user test
Archmonger Sep 26, 2023
f6abbbe
fix some bugs
Archmonger Sep 26, 2023
99a2a6d
fix broken type hint
Archmonger Sep 26, 2023
adfc583
tests for user_passes_test
Archmonger Sep 26, 2023
09dc565
Type hint for UserData as potentially None type
Archmonger Sep 26, 2023
29cccab
REACTPY_AUTO_LOGIN setting
Archmonger Sep 26, 2023
a516d7e
don't generate an exception for anonymous users
Archmonger Sep 27, 2023
a9d98d5
use orjson instead of dill for use_user_data
Archmonger Sep 27, 2023
41da464
REACTPY_AUTO_RELOGIN
Archmonger Sep 27, 2023
c2cc324
update REACTPY_AUTO_RELOGIN description
Archmonger Sep 27, 2023
bfab781
misc changelog updates
Archmonger Sep 27, 2023
7fc1af9
safer user_passes_test implementation
Archmonger Sep 28, 2023
e7b655f
fix bug where exception stacks would not print
Archmonger Sep 28, 2023
95d4062
user_passes_test docs
Archmonger Sep 28, 2023
b46a173
use_user_data test that passes manual testing
Archmonger Sep 28, 2023
b7481b5
merge migrations
Archmonger Sep 28, 2023
de70662
separate settings files for single/multi DB tests
Archmonger Sep 28, 2023
e62317b
use_user_data tests
Archmonger Sep 28, 2023
e7ef0bd
fix tests
Archmonger Sep 28, 2023
2beda54
DecoratorParamError
Archmonger Sep 28, 2023
dd408ac
change banner color
Archmonger Oct 5, 2023
8089f71
auto_save_defaults
Archmonger Oct 5, 2023
a660fc4
refactor use_user_data test
Archmonger Oct 5, 2023
2bd4ccd
add some more links
Archmonger Oct 5, 2023
17c4a09
auto-generate superuser for tests
Archmonger Oct 8, 2023
4f93fa7
user_pk = models.BinaryField
Archmonger Oct 8, 2023
3d791d9
use_user_data_with_default tests
Archmonger Oct 8, 2023
1429c68
fix user_pk cleanup schema
Archmonger Oct 9, 2023
eb237dd
fix lint errors
Archmonger Oct 9, 2023
728813d
add click delay
Archmonger Oct 9, 2023
aeaecc5
add django.request logging
Archmonger Oct 9, 2023
5b757bf
fix test
Archmonger Oct 9, 2023
357b473
new user data interface
Archmonger Oct 9, 2023
51da91d
Add docstrings
Archmonger Dec 13, 2023
de49947
update docs examples
Archmonger Dec 13, 2023
57d1bbe
finish Use User Data docs
Archmonger Dec 13, 2023
295cfdb
interface and docs changes
Archmonger Dec 13, 2023
3914b92
fix mypy error
Archmonger Dec 13, 2023
05ed7b4
docs tweaks
Archmonger Dec 14, 2023
2daf08f
todo
Archmonger Dec 14, 2023
201da96
new interface
Archmonger Jan 1, 2024
ac960cd
auto load settings files
Archmonger Jan 1, 2024
8030a29
basic docs
Archmonger Jan 6, 2024
f1aa07a
use new mutation interface
Archmonger Jan 6, 2024
d799615
default values docs
Archmonger Jan 7, 2024
fd64b77
fix todos
Archmonger Jan 7, 2024
922a69f
small fixes after self review
Archmonger Jan 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix changelog merge issue
  • Loading branch information
Archmonger committed Sep 25, 2023
commit 65119e311281fc4c134410d5b3dca76aabafb50f
3 changes: 0 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ Using the following categories, list your changes in this order:

- The `compatibility` argument on `reactpy_django.components.view_to_component` is deprecated. Use `reactpy_django.components.view_to_iframe` instead.
- Using `reactpy_django.components.view_to_component` as a decorator is deprecated. Check the docs on the new suggested usage.

### Deprecated

- `reactpy_django.decorators.auth_required` is deprecated. An equivalent to this decorator's default is `@reactpy_django.decorators.user_passes_test(lambda user: user.is_active)`.

## [3.5.1] - 2023-09-07
Expand Down