diff options
author | Frederick Muriuki Muriithi | 2023-10-09 06:51:44 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-10-09 06:51:44 +0300 |
commit | 89afa440856c92e3bb0b57936a40e50da65df5f1 (patch) | |
tree | fb37a3b779f5e809532cadedaa876c58cbe7c936 /issues | |
parent | f98faea7da44b3dfa0d651255dd6b36a6f076d29 (diff) | |
download | gn-gemtext-89afa440856c92e3bb0b57936a40e50da65df5f1.tar.gz |
issue: Update issue with troubleshooting notes.
Diffstat (limited to 'issues')
-rw-r--r-- | issues/add-to-collection-error.gmi | 18 |
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". |