| ec5280ef | 04-Dec-2021 |
Andreas Gohr <andi@splitbrain.org> |
rearranging the Index class structure
This is a first step at stuff at restructuring the indexing classes a bit more.
Some background:
We have basically two different kind of index files:
a) RowI
rearranging the Index class structure
This is a first step at stuff at restructuring the indexing classes a bit more.
Some background:
We have basically two different kind of index files:
a) RowIndex (like page.idx)
Each line in the index contains a single value. The line number is used as primary ID. These files can be very large. Thus an index like that should never be read into memory completely if it can be avoided.
b) TupleIndex (like i12.idx)
Each line contains a list of tuples. The files tend to be smaller so loading them completely for search and replace is easier.
Since the the access is so completely different, I tried to model that in the two different classes, basically moving the methods from \dokuwiki\Search\AbstractIndex to the new classes.
While doing so, I tried to make the doc blocks, variable names and interface easier to understand. I also added tests for each of the methods.
The old code has not been touched yet. So these classes do not do anything outside of tests currently.
show more ...
|
| 3df1553d | 29-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
use Logger::debug() instead of deprecated dbglog() |
| a02395a1 | 29-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
catch up #3115 Sort with collator |
| fab81cc8 | 29-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
added missing 'notns' related code |
| 05606aeb | 29-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
fix undefined array in FulltextSearch
this was already fixed by 5afd958 on 2021-02-05 |
| 97b27cd4 | 29-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
fix undefined variable |
| 69f9b481 | 28-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
add dbg_deprecated() |
| 7fba736b | 28-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
update metadata of changed page in PageFile class |
| 07869ee7 | 28-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
fix typo |
| 3b813d43 | 27-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
PHP8: check array key existence |
| 36454bb5 | 27-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
remove page key from event data prior to return
$data['page'] is object $this, it is not possible to access the object after destructed. |
| 666bc21d | 27-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
fix Undefined variable $id |
| b24e9c4a | 27-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
implement PageFile class
PageFile class handles wiki text file and its change management for specific page, main part comes from `function saveWikiText()`. This ensures and enables to use one **Pag
implement PageFile class
PageFile class handles wiki text file and its change management for specific page, main part comes from `function saveWikiText()`. This ensures and enables to use one **PageChangeLog** instance during a page save process among class methods and relevant plugins.
show more ...
|
| bbb28b9c | 27-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
remove goto-loop structure
plugin event handler should set correct changeType. |
| 66f4cdd4 | 24-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
set current revision date 1sec before now for external deletion
in preparation for possible new page save |
| 6a410eb3 | 23-Nov-2021 |
Eduardo Mozart de Oliveira <eduardomozart182@gmail.com> |
translation update |
| 9c42b79d | 16-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
update saveWikiText()
allow plugin that provides alternative policy for handling external edits in changelog |
| d5824ab9 | 13-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
rigorous COMMON_WIKIPAGE_SAVE
ignore wrong changes in id and file data caused by event handlers |
| 05282e9f | 13-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
use time() for revision date of externally deleted page
also, code doc updates |
| d154755d | 13-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
rename saveRevisionInfo to cacheRevisionInfo |
| a3a0fc58 | 13-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
move hasRevision() to trait |
| 54611a7a | 11-Nov-2021 |
Andreas Gohr <andi@splitbrain.org> |
fix fallback implementation for resolve_pageid()
When an empty link was given, the old implementation fell back to $ID, this was handled incorrectly in the deprecated method. |
| 01f039b6 | 11-Nov-2021 |
Andreas Gohr <andi@splitbrain.org> |
simplify relative resolver and add tests |
| 1c097872 | 11-Nov-2021 |
Andreas Gohr <andi@splitbrain.org> |
make resolveStartPage easier to understand
This dosn't really change the behaviour but makes the code easier to grasp. A simple unit test has been added. |
| fd260edf | 10-Nov-2021 |
alexdraconian <78018187+alexdraconian@users.noreply.github.com> |
Update Ajax.php |