- 11 Oct, 2018 14 commits
-
-
Jérome Perrin authored
Publishing was too open, sharing is a better state. Setting the document as followup of the ticket and the support request project and the support request organisation seems a good default to set security so that project members or users working on the ticket can see documents. Also ingest document in two steps: * first step is to create the document and activate DMS metadata discovery * second step is to share the document, once the necessary roles have been given to the user What's still not good with this approach is that DMS ingestion might merge this new document with an already existing document. This case is not supported and needs an extension to ingestion API
-
Jérome Perrin authored
This prevents html injection for Mr. <script>
-
Jérome Perrin authored
Some users might be able to post messages without being able to modify the support request
-
Jérome Perrin authored
This is better than getting it in another HTTP request.
-
Jérome Perrin authored
no need to to request server for this
-
Jérome Perrin authored
* format code as jslint expects it * use RSVP.Queue instead of Promise
-
Jérome Perrin authored
When this is called in the test suite, the current user is already logged in as manager.
-
Jérome Perrin authored
-
Jérome Perrin authored
So that we can see if a post was ingested or not.
-
Jérome Perrin authored
-
Jérome Perrin authored
This is more understandable
-
Jérome Perrin authored
and add a few assertion on the posted messages content
-
Jérome Perrin authored
-
Jérome Perrin authored
using momentjs that's already bundled in jiodev.js
-
- 10 Oct, 2018 2 commits
-
-
Jérome Perrin authored
https://www.erp5.com/documentation/developer/guideline/module/erp5-Guideline.Module.Creation#set-form-encytype-to-multipart/form-data-when-using-file-upload as a result, attaching files when submitting support request was not working
-
Jérome Perrin authored
Also: * post are now HTML and not plain text * all event types are returned by SupportRequest_getCommentPostListAsJson (so that the app can also display support request used in "traditional" erp5 interface) * instead of immediate reindex, we store the "just posted" data in portal_session. * events are created using resource defined as a web site "layout" property (that's not yet editable) * posts do not receive a message-id yet (because ui part is not yet updated for that), so generate a message-id server side (by just using id)
-
- 09 Oct, 2018 13 commits
-
-
Jérome Perrin authored
* add a `source_reference` field to store message-id * store the raw content "as is" - there is not preview for this reason ( because it might be unsafe html or whatever) * remove proxy roles on scripts. User must have permission. * minor simplifications
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
/reviewed-on nexedi/erp5!763
-
Jérome Perrin authored
This snapshot were made on Chrome 70 (ChromeOS) with a 1001x932 window (innerHeight x innerWidth)
-
Jérome Perrin authored
To Compare a "screenshot" of a DOM element with a reference snapshot. This check supports the following parameters: * locator - an element locator * misMatchTolerance - the percentage of mismatch allowed. If this is 0, the images must be exactly same. If more than 0, image will also be resized.
-
Jérome Perrin authored
https://github.com/niklasvh/html2canvas Copyright (c) 2012 Niklas von Hertzen
-
Jérome Perrin authored
from https://github.com/HuddleEng/Resemble.js/blob/v2.10.2/resemble.js
© 2013 Huddle -
Jérome Perrin authored
-
Jérome Perrin authored
to get stable sort and prevent "random" test failures.
-
Jérome Perrin authored
"Restore" sounds a bit strange to me in this context.
-
Jérome Perrin authored
So that we can wait for this in the tests
-
Ayush Tiwari authored
[erp5_officejs] Use upload_dict instead of file_extension to check for correct file-type during notebook upload Also, exlicitly specify the txt extension during download
-
- 08 Oct, 2018 5 commits
-
-
Jérome Perrin authored
/reviewed-on nexedi/erp5!760
-
Jérome Perrin authored
/reviewed-on nexedi/erp5!762
-
Ayush Tiwari authored
Also, update tests for notebook to check for Upload page
-
Ayush Tiwari authored
/reviewed-on !764
-
Ayush Tiwari authored
-
- 05 Oct, 2018 2 commits
-
-
Xiaowu Zhang authored
-
Tristan Cavelier authored
Fixes rendering when using Chameleon: ValueError: only strings can be translated, not: <ERP5Type.Message.Message for ...
-
- 04 Oct, 2018 4 commits
-
-
Ayush Tiwari authored
/reviewed-on nexedi/erp5!747
-
Xiaowu Zhang authored
/reviewed-on nexedi/erp5!765
-
Xiaowu Zhang authored
adjust font url
-
Xiaowu Zhang authored
-