summaryrefslogtreecommitdiff
path: root/lib/history.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Linter: Fix all lint errorsPhilip Molares2021-02-151-26/+26
| | | | Signed-off-by: Philip Molares <philip.molares@udo.edu>
* Move note actions to their own file.David Mehren2019-10-271-20/+20
| | | | | | Because of circular import problems, this commit also moves the error messages from response.js to errors.js Signed-off-by: David Mehren <dmehren1@gmail.com>
* Rework debug loggingSheogorath2019-06-081-5/+2
| | | | | | | | | | | | | | We have various places with overly simple if statements that could be handled by our logging library. Also a lot of those logs are not marked as debug logs but as info logs, which can cause confusion during debugging. This patch removed unneeded if clauses around debug logging statements, reworks debug log messages towards ECMA templates and add some new logging statements which might be helpful in order to debug things like image uploads. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Further improvement of error handling for LZStringSheogorath2018-07-271-1/+5
| | | | | | | This does some more in depth check on the error message and minimizes the log noise that is caused by LZString. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Minimize number of errors in LZString parsing errors for historySheogorath2018-07-271-0/+9
| | | | | | | | Right now we still see a lot of LZString parsing errors in the logs. They probably come from the user history. We should minimize the number by add the basic length check there as well. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Improve history migration performanceMax Wu2018-03-101-11/+5
| | | | Signed-off-by: Max Wu <jackymaxj@gmail.com>
* Add migration for LZString compressed note id in historyMax Wu2018-02-261-1/+21
| | | | Signed-off-by: Max Wu <jackymaxj@gmail.com>
* refactor: Remove `require` extension filenameBoHong Li2017-05-081-3/+3
|
* Use strict mode in all backend filesBoHong Li2017-03-141-0/+1
| | | | add ‘use strict’ in all backend file
* Use JavaScript Standard StyleBoHong Li2017-03-081-147/+150
| | | | | Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
* Update to remove history cache to lower application couplingWu Cheng-Han2017-02-031-100/+47
|
* Try to fix when server have heavy loading cache might not update to db properlyWu Cheng-Han2016-12-181-1/+1
|
* Revert "Add workers for history to leverage CPU intensive work loading"Wu Cheng-Han2016-11-161-33/+46
| | | | This reverts commit b5920fbbd1ceb595456da18f7d458b63d1a960bf.
* Add workers for history to leverage CPU intensive work loadingWu Cheng-Han2016-11-071-46/+33
|
* Fix history time should save in UNIX timestamp to avoid time offset issueWu Cheng-Han2016-10-111-1/+1
|
* Fix new note with empty content not saving to history and remove debug codeWu Cheng-Han2016-10-111-4/+1
|
* Update to add cache to historyWu Cheng-Han2016-10-101-0/+228