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

[5228] add save and sync db using pouchdb #978

Closed
wants to merge 38 commits into from

Conversation

ilmiawan
Copy link
Contributor

@ilmiawan ilmiawan commented Jan 26, 2023

Monika Pull Request (PR)

What feature/issue does this PR add

Need to add capability of saving request data using pouchdb and sync it to external couchdb

How did you implement / how did you fix it

  1. Add pouchdb to save requests and notifications result
  2. Add synchronize ability between pouchdb and external couchdb

How to test

  1. run monika in symon mode with the flag symonExperimental
  2. add external couchdb url using symonCouchDbURL flag
  3. running monika command example :
npm start -- --symonUrl http://localhost:3000 --symonKey 7e73179e-74f0-4cd2-91ad-85b4f346b221 --verbose --symonCouchDb http://symon:symon@localhost:5984/symon 

@codecov
Copy link

codecov bot commented Jan 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6ddf49e) 63.71% compared to head (55bb6da) 63.71%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #978   +/-   ##
=======================================
  Coverage   63.71%   63.71%           
=======================================
  Files         111      111           
  Lines        3211     3211           
  Branches      544      544           
=======================================
  Hits         2046     2046           
  Misses        988      988           
  Partials      177      177           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/symon/index.ts Outdated Show resolved Hide resolved
outputWorkerMetadata: true,
workerMessageHandler: async ({ message }) => {
console.log(message)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilmiawan please remove debug code

@ilmiawan
Copy link
Contributor Author

done experiment with couchdb.

@ilmiawan ilmiawan closed this Dec 11, 2023
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.

3 participants