Comments (9)
maybe somehow DOKUWIKI_DONE event could help:
like collect the events to an array, and when DOKUWIKI_DONE is invoked empty that array in memory.
but from my testing, DOKUWIKI_DONE and COMMON_WIKIPAGE_SAVE are fired in different processes, so memory caching will not work. would need to store to filesystem.
from dokuwiki-plugin-move.
One idea could be to use an event that has the before handler called before the move happens and the after handler after the move completed. Your event handler could then ignore or summarize the events (I mean the deletion of the old and creation of the new page) that happen in between the before and after event handler. I'm not sure if such an event already exists, but if not, it could be added.
from dokuwiki-plugin-move.
this is dump of events fired during rename of one page
- events.txt 31K
from dokuwiki-plugin-move.
Are you sure that's from the move plugin and you aren't using another plugin for renaming the page? I'm asking because the move plugin fires an event before and after the move (which you could also use to combine the events as I wrote before): https://github.com/michitux/dokuwiki-plugin-move/blob/master/helper/op.php#L158 - and I cannot see that event in the log.
from dokuwiki-plugin-move.
I renamed via simple rename:
from dokuwiki-plugin-move.
The native page notification suffers the same problem, sends out two emails:
- page added: organisations: ↷ Page moved from support:organisations to organisations
- page changed: support:organisations ↷ Page moved from support:organisations to organisations
from dokuwiki-plugin-move.
🚧 Never link to branches, share a permalink 🚧
- see https://news.ycombinator.com/item?id=8046710
and https://help.github.com/articles/getting-permanent-links-to-files/
and https://docs.gitlab.com/ee/user/shortcuts.html#project-files - hit
y
NOTE: edit your post and fix it with a permalink!
from dokuwiki-plugin-move.
Found that PLUGIN_MOVE_PAGE_RENAME::BEFORE is called, but if an error occurs, there's no knowledge of that to the event listener. so could lose messages.
EDIT: irrelevant: no move actually happens on error.
for I'm running on arm64 with rosetta2 so the indexes is super slow, and rename page gets index locked errors: "Error while updating the search index locked"
from dokuwiki-plugin-move.
Have look:
what you think?
from dokuwiki-plugin-move.
Related Issues (20)
- Missing $INFO['userinfo']['name'] on move handler HOT 2
- when i read dokuwiki media (*.jpg) on the smartphone, There is a log message as below. HOT 2
- Show page title in tree view (Feature Request)
- Deprecated log errors + No exit
- $mobileMenuOption.form is not a function HOT 1
- Undefined array key "move_renameokay" HOT 2
- Interaction with discordnotifier HOT 1
- Warning: Trying to access array offset on value of type null in /home/.../wiki/lib/plugins/move/action/rename.php on line 42 HOT 4
- access array offset on value of type null HOT 2
- deprecated logs HOT 1
- Failed to handle action: plugin_move HOT 2
- Replacing links in pages from the server command line
- Make fresh release after 2022-01-23 HOT 2
- "Simple Page Rename" doesn't move media files HOT 1
- pending French translations from translate.dokuwiki.org HOT 1
- Conflict between the move plugin and the wiki style template plugin (wst)
- Move single Page does not move media images.... HOT 1
- Meaning of "Set Namespace" and "Parent Namespace to export"? HOT 1
- outdated release tags HOT 2
- RFE: Pipe multiorphan plugin "Media" Orphans list | move to "opencpn:unused_media_files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokuwiki-plugin-move.