[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/rt-liberation bd60dc3 20/72: * rt-liberation-rest.el: D
From: |
Stefan Monnier |
Subject: |
[elpa] externals/rt-liberation bd60dc3 20/72: * rt-liberation-rest.el: Document the show query issue. |
Date: |
Wed, 5 Aug 2020 11:57:36 -0400 (EDT) |
branch: externals/rt-liberation
commit bd60dc3ed4a12ee6e98702863040cd2fc2e4d903
Author: Yoni Rabkin <yonirabkin@member.fsf.org>
Commit: Yoni Rabkin <yonirabkin@member.fsf.org>
* rt-liberation-rest.el: Document the show query issue.
All of the relevant information is in a comment in
rt-liberation-rest.el.
---
rt-liberation-rest.el | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/rt-liberation-rest.el b/rt-liberation-rest.el
index 5b3d0cb..2fbe8a6 100644
--- a/rt-liberation-rest.el
+++ b/rt-liberation-rest.el
@@ -63,6 +63,18 @@
"format=i" "&"
"orderby=+Created")))
+(defun rt-liber-rest-show-string (scheme url ticket-id-list username password
query)
+ ""
+ (let ((user (url-encode-url username))
+ (pass (url-encode-url password)))
+ (concat scheme
+ "://"
+ url
+ "/REST/1.0/ticket/" ticket-id-list
+ "/show" "?"
+ "user=" user "&"
+ "pass=" pass "&")))
+
(defun rt-liber-rest-call (url)
""
(let ((url-request-method "POST"))
@@ -88,6 +100,22 @@
rt-liber-rest-username
rt-liber-rest-password
query-string)))
+ ;; The "show" API call doesn't support getting multiple
+ ;; tickets at once. This is a problem. I've emailed the
+ ;; rt-users mailing list asking how to to this.
+ ;;
+ ;; A much more insidious method to figure this out is to
+ ;; wireshark the CLI connection as it asks for multiple
+ ;; tickets and see if we can capture the query the CLI
+ ;; uses. This would necessitate a non-HTTPS connection, such
+ ;; that the one to the demo servers.
+ ((string= op "show")
+ (rt-liber-rest-show-string rt-liber-rest-scheme
+ rt-liber-rest-url
+ query-string
+ rt-liber-rest-username
+ rt-liber-rest-password
+ query-string))
(t (error "unknown op [%s]" op))))
(defun rt-liber-rest-parse-http-header ()
- [elpa] externals/rt-liberation 4dd2f82 11/72: * rt-liberation-gnus.el: Fix single line and leading space bugs., (continued)
- [elpa] externals/rt-liberation 4dd2f82 11/72: * rt-liberation-gnus.el: Fix single line and leading space bugs., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 7bc66d0 12/72: * rt-liberation.el: Add %-sequence support for priority., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 6a51214 13/72: * rt-liberation.el: Add a custom time format string., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 2c9b357 10/72: Fix compilation warnings., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation f0cf810 23/72: * doc/rt-liberation.texinfo: Update manual., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation b506154 14/72: * rt-liberation.el: Update the browser display format., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 757d808 16/72: * rt-liberation.el: Add keybinding., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation aa3aa83 15/72: * rt-liberation.el: Add priority update and display., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 28b08a4 17/72: * doc/rt-liberation.texinfo: Document new features., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 7ee937c 18/72: * doc/rt-liberation.texinfo: Add dependencies to the manual., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation bd60dc3 20/72: * rt-liberation-rest.el: Document the show query issue.,
Stefan Monnier <=
- [elpa] externals/rt-liberation 60ead31 24/72: * rt-liberation-gnus.el: Improve Gnus integration., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation c654b30 26/72: * rt-liberation.el: Mark spam feature as very broken., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation b640bb7 25/72: Merge branch 'master' into rest, Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation e06992e 27/72: Merge branch 'master' into rest, Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 3e4a424 29/72: Merge branch 'master' into rest, Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 6e75dbb 31/72: * rt-liberation-rest.el: Start work on `show' query., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation f67581b 32/72: Implement and start using REST show query., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 1aa3ed0 33/72: * rt-liberation-rest.el: Show feedback when complete., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 92e78fa 35/72: Integrate rt-liber-rest-edit-runner and add fields., Stefan Monnier, 2020/08/05
- [elpa] externals/rt-liberation 5dc7165 36/72: Port status changes to REST interface., Stefan Monnier, 2020/08/05