summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-01-05 12:14:59 -0600
committerPjotr Prins2026-01-21 08:14:22 +0100
commit5c878b1c135d3a056ebba6681fa8ea0b0e8ea17c (patch)
treefa123ebcf0170467fcfaecf6fb3db3a55abb4032
parent6b71706c930b9a7f9dc503e633ec333ca800807c (diff)
downloadgn-gemtext-5c878b1c135d3a056ebba6681fa8ea0b0e8ea17c.tar.gz
GN2: Collections - New issue.
-rw-r--r--issues/genenetwork2/error-adding-trait-to-collections-while-logged-out.gmi29
1 files changed, 29 insertions, 0 deletions
diff --git a/issues/genenetwork2/error-adding-trait-to-collections-while-logged-out.gmi b/issues/genenetwork2/error-adding-trait-to-collections-while-logged-out.gmi
new file mode 100644
index 0000000..4048f3e
--- /dev/null
+++ b/issues/genenetwork2/error-adding-trait-to-collections-while-logged-out.gmi
@@ -0,0 +1,29 @@
+# Error Adding Trait(s) to Collection(s) While Logged Out
+
+## Tags
+
+* type: bug
+* status: open
+* priority: high
+* assigned: zachs, fredm
+* keywords: gn2, genenetwork2, genenetwork 2, collections
+
+## Description
+
+### Steps to Reproduce
+* Go to https://genenetwork.org/
+* Ensure you are logged out
+* Now, navigate to https://genenetwork.org/show_trait?trait_id=1435464_at&dataset=HC_M2_0606_P
+* Click green "Add" button
+* Note silent failure, then "MissingTokenError: missing_token: Please log in again to continue." notification
+
+### Expected
+
+On clicking "Add" we should have got a modal dialog with a selection of collections we can add the trait to.
+
+### Notes
+
+#### Cause of Failure
+
+=> https://github.com/genenetwork/genenetwork2/blob/c057054b69e673108410894ce87c5059aebb7b68/gn2/wqflask/collect.py#L81-L84
+The first fetch with ``oauth2_get`` fails in the case where the user is not logged in, raising a "MissingToken" exception. This then is handled by the default handlers and we get presented the prompt to login.