You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rfcs/inactive_users/user_index.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,19 @@ Each item score is equal to the `timestamp` set on user creation.
10
10
11
11
To avoid hardcoded SET name new `USERS_INACTIVATED` constant introduced.
12
12
13
-
## Inactive user tracking utils
14
-
New `deleteFromInactiveUsers(userID)` and `addToInactiveUsers(userID)` methods used to control data stored inside `inactive-users` set.
15
-
16
13
## Registration process
17
14
When the user succeeds registration but activation not requested, the new entry added to `inactive-users`.
18
15
19
16
**NOTE:** Old Redis `expire` setting methods left in their place, to save old service behavior.
20
17
21
18
## Activation process
22
19
When the user succeeds activation the entry deleted from `inactive-users`.
20
+
21
+
## Index cleanup
22
+
Temporarily add `inactive-users` index cleanup. The functionality will move into one LUA script
23
+
with `delete inactive users` logic. This will save us from `dlock` based implementations and all operations will execute in `one-shot` avoiding race conditions.
24
+
On `registration` cleanup method executes before user creation.
25
+
26
+
On `activation` cleanup method executes before any checks performed by `activation` action.
0 commit comments