summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-10-09 06:51:44 +0300
committerFrederick Muriuki Muriithi2023-10-09 06:51:44 +0300
commit89afa440856c92e3bb0b57936a40e50da65df5f1 (patch)
treefb37a3b779f5e809532cadedaa876c58cbe7c936
parentf98faea7da44b3dfa0d651255dd6b36a6f076d29 (diff)
downloadgn-gemtext-89afa440856c92e3bb0b57936a40e50da65df5f1.tar.gz
issue: Update issue with troubleshooting notes.
-rw-r--r--issues/add-to-collection-error.gmi18
1 files changed, 18 insertions, 0 deletions
diff --git a/issues/add-to-collection-error.gmi b/issues/add-to-collection-error.gmi
index e131eb2..09de0ae 100644
--- a/issues/add-to-collection-error.gmi
+++ b/issues/add-to-collection-error.gmi
@@ -37,3 +37,21 @@ There is a chance the link above might eventually expire. If that happens, you c
* Set "Location Type" = "Gene"
* Click "Compute"
* Continue with the steps in the section above
+
+
+## Troubleshooting Notes
+
+The request uses the "GET" method: see
+=> https://github.com/genenetwork/genenetwork2/blob/3ebf796f82797139b68f29e1e6a2323d60886539/wqflask/wqflask/collect.py#L118-L119
+
+Some files that are concerned with the issue:
+
+=> https://github.com/genenetwork/genenetwork2/blob/3ebf796f82797139b68f29e1e6a2323d60886539/wqflask/wqflask/collect.py#L101-L108
+
+=> https://github.com/genenetwork/genenetwork2/blob/3ebf796f82797139b68f29e1e6a2323d60886539/wqflask/wqflask/templates/collections/add.html#L8
+
+=> https://github.com/genenetwork/genenetwork2/blob/3ebf796f82797139b68f29e1e6a2323d60886539/wqflask/wqflask/static/new/javascript/search_results.js#L192-L198
+
+Probable solution: add `method="POST"` to the "<form ...>" line in the "add.html" file, but there is a chance that might break other features that depend on the same form. This will need to be done carefully.
+
+In retrospect, this feature should not use "GET" at all, since it is not indempotent. Every run has the potential to change the state of the underlying collection(s). All features depending on the "add.html" template should use the "POST" method, never "GET".