SimplyStaking / panic

PANIC Monitoring and Alerting For Blockchains
Apache License 2.0
85 stars 31 forks source link

Update Configurations Migration Script for new Mongo containers #362

Closed itsciccio closed 2 years ago

itsciccio commented 2 years ago

Description

We need to connect to a different Mongo instance and update accordingly.

The following snippet provided by @simplyrider may be of aid:

self._mongo = MongoApi(
            logger.getChild(MongoApi.__name__),
            host=REPLICA_SET_HOSTS, db_name=env.DB_NAME,
            replicaSet=REPLICA_SET_NAME
        )

Requirements

Acceptance criteria

Scenario: Running scripts/config_to_database_migration.py Given: That we want to migrate .ini files to Mongo Then: Mongo is populated with the appropiate files