cognitom / cognitom/momy

dynamic addition of collections to sync

Open
#26 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
97
Forks
35
PR merge metrics
No merged PRs in 30d

Description

What would be the best way to add a dynamic sync, i.e.

1. automatically detect new, unsynced collections in mongo db
2. add all fields of a collection without having to specify in momyfile.json
3. re-read momyfile.json regularly, possibly from a remote location (http), with auto --import on detecting new collections

With at least 3. implemented 1. & 2. would basically come for free, as one could write some application/mongodb-side script to publish a new momyfile when needed, without having to restart momy.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the current momyfile.json configuration and the --import flow, then map how MongoDB collections and fields are discovered. Done would require an agreed design and implementation for detecting unsynced collections, importing all fields, and regularly re-reading momyfile.json, including from an HTTP location.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.