Code Monkey home page Code Monkey logo

Comments (9)

glensc avatar glensc commented on September 3, 2024

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.

michitux avatar michitux commented on September 3, 2024

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.

glensc avatar glensc commented on September 3, 2024

this is dump of events fired during rename of one page

from dokuwiki-plugin-move.

michitux avatar michitux commented on September 3, 2024

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.

glensc avatar glensc commented on September 3, 2024

I renamed via simple rename:

from dokuwiki-plugin-move.

glensc avatar glensc commented on September 3, 2024

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.

glensc avatar glensc commented on September 3, 2024

🚧 Never link to branches, share a permalink 🚧

NOTE: edit your post and fix it with a permalink!

from dokuwiki-plugin-move.

glensc avatar glensc commented on September 3, 2024

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.

glensc avatar glensc commented on September 3, 2024

Have look:

what you think?

from dokuwiki-plugin-move.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.