[PATCH v3 0/1] rest: add rest.js to handle PATCH requests & respective responses
Raxel Gutierrez
raxel at google.com
Thu Aug 19 14:20:22 AEST 2021
This series is a revision to the previous version of the patch series
[1]. Following comments, made style changes to the rest.js module and
also made some fixes to the return value of the fetch request and fixed
bug where if no number is parsed from a successful update message,
then an index error would populate in the DOM. Also, added docs notes
for the rest.js module.
Since v2, the following changes:
- Patch 1: merged :)
- Patch 2: merged :)
- Patch 3:
- addressed general style changes
- added docs notes that were strangely dropped at some point
- added Google JS style guide reference link to commit message
- added missing return when error is caught for fetch request
- fixed bug where messages without numbers would populate index 0 error
[1] https://lists.ozlabs.org/pipermail/patchwork/2021-August/007102.html
Raxel Gutierrez (1):
static: add rest.js to handle PATCH requests & respective responses
htdocs/README.rst | 5 ++
htdocs/js/rest.js | 118 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 123 insertions(+)
create mode 100644 htdocs/js/rest.js
Range-diff against v2:
1: 9087ddbe < -: -------- messages: clean up messages and errors containers
2: c92b0dcd < -: -------- static: add JS Cookie library to get csrftoken for client-side requests
3: 44998f0d < -: -------- static: add rest.js to handle PATCH requests & respective responses
-: -------- > 1: 261ce7b0 static: add rest.js to handle PATCH requests & respective responses
--
2.33.0.rc1.237.g0d66db33f3-goog
More information about the Patchwork
mailing list