Menu

#271 TDocument post-commit and post-revert events (vnCommitted and vnReverted)

8
pending
1
2026-03-15
2025-10-12
No

While the notification vnCommit is sent before (*) the actual commit operation, it would be useful to have a notification after the commit has taken place, e.g. vnCommitted.

For example, a view monitoring changes to the external document source file may want to know when the document path, file properties and/or contents change (see OWLMaker).

* Actually, in the general case, if the document has children, vnCommit is sent in between commit operations for the children (including related vnCommit notifications to their associated views) and the commit operations for the document itself. See [bugs:#628] and commentary in particular for a suggested refactoring that would clean up the notification order and also enable vnCommitted.

Related

Bugs: #628
Wiki: OWLMaker
Wiki: OWLNext_Roadmap_and_Prereleases

Discussion

  • Vidar Hasfjord

    Vidar Hasfjord - 2025-10-12

    This feature has now been implemented [r8511], refactoring Commit and Revert as proposed, and adding notifications vnCommitted and vnReverted.

    Please review and test.

     

    Related

    Commit: [r8511]

  • Vidar Hasfjord

    Vidar Hasfjord - 2025-10-12
    • summary: TDocument post-commit event (vnCommitted) --> TDocument post-commit and post-revert events (vnCommitted and vnReverted)
    • status: open --> pending
     

    Last edit: Vidar Hasfjord 2025-10-12
  • Vidar Hasfjord

    Vidar Hasfjord - 2026-03-15

    @jogybl updated "examples/tutorial" in [r8658]. Thanks!

     

    Related

    Commit: [r8658]

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB