summaryrefslogtreecommitdiff
path: root/issues/authentication_authorisation/migrate-user-collections.gmi
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-05-11 11:08:39 +0300
committerFrederick Muriuki Muriithi2023-05-11 11:08:39 +0300
commitadaa3f59f33476d8718bc24c6b6579c544ef53fd (patch)
tree772737ab4480a8f20428f9cc81a9590926b8b284 /issues/authentication_authorisation/migrate-user-collections.gmi
parent5bf57eafcd8c237ca2a2e747f17f18d66529557d (diff)
downloadgn-gemtext-adaa3f59f33476d8718bc24c6b6579c544ef53fd.tar.gz
issues: Add notes on anonymous collections
Diffstat (limited to 'issues/authentication_authorisation/migrate-user-collections.gmi')
-rw-r--r--issues/authentication_authorisation/migrate-user-collections.gmi9
1 files changed, 9 insertions, 0 deletions
diff --git a/issues/authentication_authorisation/migrate-user-collections.gmi b/issues/authentication_authorisation/migrate-user-collections.gmi
index f0b3609..c3fecbe 100644
--- a/issues/authentication_authorisation/migrate-user-collections.gmi
+++ b/issues/authentication_authorisation/migrate-user-collections.gmi
@@ -37,8 +37,17 @@ The steps would be something like:
* User click the "migrate data" button
* System changes user-id on the identified collections from the old user-id to the new user-id
+#### Anonymous Collections
+
+Users can create and work with collections without being authenticated to the system. Such collections (which I dub "anonymous collections") are ephemeral. They were linked to the session[2] via an anonymous user_id.
+
+In the older system, a user was able to import such anonymous collections by selecting "Import existing collections" when they logged in (see the `import_traits_to_user` function in the sessions[2] module). We need to maintain this feature. This will probably require reworking the code, to get rid of the sessions[2] module while retaining most of what it does.
+
+
+
## Links
=> https://github.com/genenetwork/genenetwork2/blob/5a8432adb56f9fddbc9e42a9eb8de5e4a0879ee6/wqflask/utility/redis_tools.py#L82-L83 0
=> https://issues.genenetwork.org/issues/authentication_authorisation/migrate-user-accounts-from-redis 1
+=> https://github.com/genenetwork/genenetwork2/blob/96fb589371dd1700f0d0f7abc367098d6820c37a/wqflask/wqflask/user_session.py 2