Commit graph

1122 commits

Author SHA1 Message Date
Isaac_Chen
4dccc3eee0 Rename column account id in table category as category_account_id 2020-05-07 23:55:05 +08:00
Isaac_Chen
c6fedb1c5c Change Id of table category to category_id and titole to category_title 2020-05-07 23:31:26 +08:00
Isaac_Chen
9aba743b3c Remove empty categories 2020-05-07 22:53:26 +08:00
Isaac_Chen
46fa52a9a7 1) Use subquery in searchNotes(long, CharSequence, String, Boolean); 2) Remove comments with old codes; 3) Merge getCategories(long) and searchCategories(long, String); 4) Abandon recursion in getCategoryIdByTitle(long, String, boolean) 2020-05-07 22:14:04 +08:00
Isaac_Chen
313b13d5c4 Add some comments for previous pr 2020-05-07 01:31:08 +08:00
Isaac_Chen
e02bd35309 Final check about normalization 2020-05-07 01:27:03 +08:00
Isaac_Chen
4f01955c60 Bug fixed: Wrong result in sub-category 2020-05-06 20:10:37 +08:00
Isaac_Chen
6889989c3e Merge branch 'master' of https://github.com/Isaac-Graham/nextcloud-notes 2020-05-06 14:44:37 +08:00
Peter S
98d7187d55 Remove invalid tests 2020-05-06 14:38:42 +08:00
Isaac_Chen
d036e1d548 Add some JavaDoc for modified methods 2020-05-06 01:58:26 +08:00
Isaac_Chen
027fbd5236 Add more tests for NotesDatabase 2020-05-06 01:18:50 +08:00
Isaac_Chen
d7b0352fb5 Bug fixed: search Category fails 2020-05-06 00:26:44 +08:00
Isaac_Chen
4a23044253 Use ? instead of concat in NotesDatabase 2020-05-06 00:15:59 +08:00
Hui-Ouyang16
b0849a5274 finished test case and find getCategoryIdsByTitle not fuzzy 2020-05-05 22:44:31 +08:00
Hui-Ouyang16
e800b60340 finised countOccurrences test case 2020-05-05 22:11:30 +08:00
Peter S
0cb5398b68 add test for countOccurrences 2020-05-05 21:35:34 +08:00
Hui-Ouyang16
27cec02c19 find a bug in getCategories 2020-05-05 21:23:55 +08:00
Peter S
f3b55e1d9c Finish all the tests for Issue - 814, but need more validations 2020-05-05 20:47:17 +08:00
Hui-Ouyang16
baaceeb02d fixed the reflection problems 2020-05-05 19:52:53 +08:00
Isaac_Chen
ab0820db6d Use function instead of sqlite statement to move database 2020-05-05 19:50:32 +08:00
Isaac_Chen
a1c22a262f Bug fixed: not including accountId in search category 2020-05-05 18:52:07 +08:00
Isaac_Chen
39c43f74fd Finish onUpgrade() 2020-05-05 18:38:57 +08:00
Hui-Ouyang16
4d1ed6bbde find some bugs in NotesDatabase and add some test template 2020-05-05 04:52:48 +08:00
Hui-Ouyang16
cc2aaed5eb finished chinese character test case 2020-05-05 03:25:20 +08:00
Isc
789b2e20d1 Bug fixed: move where before group by 2020-05-05 02:51:01 +08:00
Isc
76204e39db Bug fixed: Missing account id in geCategories 2020-05-05 02:37:10 +08:00
Hui-Ouyang16
c52be90511 finish multiple test case and find a bug in getCategories 2020-05-05 02:26:43 +08:00
Hui-Ouyang16
57f88551e1 upload some multiple test case 2020-05-05 01:57:19 +08:00
Hui-Ouyang16
06a4a6fa01 finish all signle test case 2020-05-05 01:23:39 +08:00
Peter S
13c20ae4ac provide a demo of searchCategories 2020-05-05 01:05:56 +08:00
Isc
1ef76f8237 Bug fixed: No matched category will runtime error in searchNotes(long, CharSequeence, String, Boolean) 2020-05-05 00:07:55 +08:00
Hui-Ouyang16
89f98a7678 refactor some test case and find a bug in searchNotes 2020-05-04 23:52:11 +08:00
Peter S
1be99b1349 create more test methods 2020-05-04 22:52:58 +08:00
Hui-Ouyang16
94e23a8f5b fixed the timezone problem 2020-05-04 22:01:18 +08:00
Peter S
261c7cd7a0 add a first test method: testAddDeleteNote 2020-05-04 21:45:57 +08:00
Peter S
e1e37740e1 add an instrumented test to test NotesDatabase.java 2020-05-04 19:46:39 +08:00
Isaac_Chen
ecde100310 Add somt test TODO 2020-05-04 13:26:54 +08:00
Isaac_Chen
e0467e8916 Normalize database. Extract Category from Notes. Need to be tested 2020-05-04 04:02:41 +08:00
Isc
e413287dc0 Add some todo to modify database 2020-04-28 22:37:42 +08:00
Stefan Niedermann
2f52c20921 version bump to 2.11.13 2020-04-24 14:59:19 +02:00
Nextcloud bot
c480086f89 [tx-robot] updated from transifex 2020-04-24 14:57:02 +02:00
Mike Chester Wang
e0c292bafd
Update SearchableBaseNoteFragment.java 2020-04-23 23:58:03 +08:00
Mike Chester Wang
5bfb3ee70a
804: Fixed prev and submit button in search
While doing searching, if the content is changed, the search result will NOT change. So if prev and submit are clicked, it may not give the correct respond.
2020-04-23 23:56:35 +08:00
Stefan Niedermann
ee680f37d9 version bump to 2.11.12 2020-04-22 13:07:46 +02:00
Nextcloud bot
2ead387350 [tx-robot] updated from transifex 2020-04-22 12:26:56 +02:00
Isaac_Chen
d3cfecebe8 Two main midifications: 1) Move delay to the top of class SearchableBaseNoteFragment; 2) If there is only one char in the search pattern, search it immediately without delay 2020-04-22 12:23:29 +02:00
Isaac_Chen
c975c07b97 Enhancement for 769: Currently, If the search string changes too frequently, there will be many search tasks running. We add a delay in this commit to prevent this. If the search string does not change in $delay ms, then the search task will start. 2020-04-22 12:23:29 +02:00
Isaac_Chen
3b5124e0b2 Make up for the missing condition judgment in last commit 2020-04-22 12:23:29 +02:00
Isaac_Chen
20388c2e7b Bug fix: 769. The main reason is that the complexity of countOccurrences is O(mn^2), which is too large. So that the main thread may be frozen for a long time. We use a O(m+n) implementation 2020-04-22 12:23:29 +02:00
Stefan Niedermann
f07605d3a6 Initial support for instrumented tests 2020-04-18 23:23:38 +02:00