Skip to content

Sync Wiki Changes to Local Files #3

@alirezamshi

Description

@alirezamshi

Description

Wiki files are stored locally in data/wikis/. When running services/wiki_service/start.sh, it brings up WikiMedia and loads all pages from data/wikis/.

Current behavior:

  • start.sh loads pages from data/wikis/ into the wiki
  • User can edit pages in the served wiki UI
  • Changes are NOT reflected back to local files

Desired behavior:

  • Changes made in the wiki UI should sync back to data/wikis/

Goal

Implement a sync operation that watches for wiki page changes and writes them back to the local filesystem.

Deliverable

Update services/wiki_service/ to include:

  1. A sync mechanism that detects wiki page edits
  2. Write changes back to corresponding files in data/wikis/

Test

  1. Run services/wiki_service/start.sh
  2. Edit a wiki page in the local WikiMedia UI
  3. Verify that the corresponding file in data/wikis/ is updated with the changes

References

  • services/wiki_service/start.sh
  • data/wikis/

Dependencies

Metadata

Metadata

Assignees

Labels

P1Medium Priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions