Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getBagRecentTiddlers function to Multi Wiki Server SQLite database #8094

Closed
wants to merge 2 commits into from
Closed

Add getBagRecentTiddlers function to Multi Wiki Server SQLite database #8094

wants to merge 2 commits into from

Conversation

PotOfCoffee2Go
Copy link
Contributor

@PotOfCoffee2Go PotOfCoffee2Go commented Mar 20, 2024

Objectives

The Purpose of $tw.mws.store.getBagRecentTiddlers(bag_name, last_known_ _tiddler_id, limit) is to be able to poll (server-side) the MWS tiddler database for new/updated/deleted tiddlers by bag.

Why?

A scenario for use of the function is to allow an independent server-side application to interface to the MWS database. The connection between the two would be established by creating an edition with a plugin profile including both MWS and the independent application.

"plugins": [
    "tiddlywiki/tiddlyweb",
    "tiddlywiki/filesystem",
    "tiddlywiki/multiwikiserver",
    "independent/application"
],

Implementation

The currently in progress MWS synchronization mechanism mwsadaptor will keep the web clients in sync.

The getBagRecentTiddlers function will allow a companion server-side application to stay in sync too - thus can process incoming tiddlers, store results (using other database functions) for MWS to distribute to web users.

MWS already has the functions needed to update the database with tiddlers which MWS would publish to web users - with large attachments! (permissions in the works).

Fundamental Tasks

not in any particular order

  • Create prototype of function
  • Build server-side REPL for interactive testing mws-repl
  • Discuss bug and feature requests
  • [] Example of an independent application using functions (Chat server?)
  • [] Finalize code for initial release
  • [] Create and implement tests into MWS test suite
  • [] Documentation
  • [] Peer review
  • [] Merge to TiddlyWiki5 multiwikiserver branch

Copy link

vercel bot commented Mar 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tiddlywiki5 ✅ Ready (Inspect) Visit Preview Mar 21, 2024 6:51am

@PotOfCoffee2Go PotOfCoffee2Go closed this by deleting the head repository Mar 21, 2024
@PotOfCoffee2Go
Copy link
Contributor Author

PotOfCoffee2Go commented Mar 21, 2024

I did a new fork of TiddlyWiki5 - the one I had got out of sync - probably quite a while ago - and since just starting to contribute figured would start fresh fork to prevent issues in the future.

See #8101

@Jermolene
Copy link
Member

Thanks @PotOfCoffee2Go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants