community.mongodb icon indicating copy to clipboard operation
community.mongodb copied to clipboard

MongoDB community pinboard

Open dagwieers opened this issue 6 years ago • 10 comments

Github mongodb issues Github mongodb PRs MongoDB pinboard

We could collectively benefit from forming a Working Group related to MongoDB integration. We have quite some contributors and users that are interested in improving this integration.

So this issue is a call to potential interested parties (earlier and existing contributors to Ansible). The benefits of having a Working Group is that members of the Working Group can:

  • test, review and add shipits to existing MongoDB PRs
  • work collectively on a MongoDB roadmap
  • provide a single-point-of-contact for interested MongoDB contributors
  • collaborate on a MongoDB-specific Wiki
  • have a $team_mongodb in BOTMETA.yml for auto-notifying team members
  • implement auto-labeling MongoDB issues and PRs

dagwieers avatar Feb 12 '19 00:02 dagwieers

cc @elliotttf @gw0 @adq @podollb @laggyluke @cove @jirutka @prakritish @marcosdiez @Lujeni @jonathanbeber @mrgnr @robinro @petrovicboban @rhysmeister @gyurco @falexandrou @jkramarz @jorijinnall @mdiez-modus @overhacked @incognito1990 @carlochess cc @sivel @resmo

dagwieers avatar Feb 12 '19 00:02 dagwieers

Interested. I'd appreciate if anyone could help out on getting this PR merged...

https://github.com/ansible/ansible/pull/49690

A mongodb_shard module has been accepted and is a bit lonely! ;-)

I've also got some integration tests for these modules which I'd be happy to collaborate with others on.

Cheers,

Rhys

rhysmeister avatar Feb 12 '19 21:02 rhysmeister

So the most important action for the MongoDB Working Group is adding integration tests for the existing and new modules. Integration tests are just playbooks that test a module in every aspect and context. You can find these integration tests in https://github.com/ansible/ansible/tree/devel/test/integration/targets

Look at how this is done for mysql and postgresql to see how a MongoDB database should be installed/configured before testing the modules.

I wrote down some thoughts on integration tests in the Wiki

dagwieers avatar Feb 13 '19 09:02 dagwieers

Soliciting feedback, I have a MongoDB module which inserts or queries a document from a MongoDB. It has some functionality overlap with mongodb lookup, not certain if that would be an issue if I contributed it to the Ansible project. See: https://gist.github.com/joelwking/a4cf2621d17cefeb6e74a2d5eca4ddda

joelwking avatar Feb 19 '19 14:02 joelwking

If you want to actively lead or are interested to be part of this Working Group, add your name to the Wiki page ! If we have a large enough group, we can start our own MongoDB Working Group.

I started labeling all the MongoDB related issues and PRs so we can more easily track them:

  • https://github.com/ansible/ansible/pulls?q=is:pr+is:open+label:mongodb (10 open PRs)
  • https://github.com/ansible/ansible/issues?q=is:issue+is:open+label:mongodb (8 open issues)

PS If you no longer want to receive any messages from this pinboard, feel free to unsubscribe from this issue ticket.

dagwieers avatar Feb 21 '19 01:02 dagwieers

@joelwking A handy additional to your module would be the ability to specify a document as yaml and have that converted into a json document. What do you think?

rhysmeister avatar Mar 02 '19 17:03 rhysmeister

I'm going to try to migrate this pinboard to https://github.com/ansible-collections/community.mongodb but there may be a slight disruption as it requires multiple moves. I will follow up when the migration has been completed.

dericcrago avatar Dec 04 '20 19:12 dericcrago

migrated and pinned!

dericcrago avatar Dec 04 '20 20:12 dericcrago

Reminder - AnsibleFest and Ansible Contributor Summit are 1 week away!

In case you missed it, we will also be having a Hackathon throughout the entire Ansible Contributor Summit and AnsibleFest. This is a great opportunity to collaborate in real time with other members of the Ansible Community!

For more info and the latest updates, please see the Ansible Contributor Summit 2021.09 HackMD.

dericcrago avatar Sep 21 '21 05:09 dericcrago

So the most important action for the MongoDB Working Group is adding integration tests for the existing and new modules.

I had started (few years ago ;o) writing tests that covered a large part of the users/databases module. I'll see if it can be useful

Lujeni avatar Sep 26 '21 20:09 Lujeni