hydraplatform / hydra-base

GNU Lesser General Public License v3.0
8 stars 7 forks source link

Make static method for mongo client, use this in storage utils #172

Open pmslavin opened 1 year ago

pmslavin commented 1 year ago

https://github.com/hydraplatform/hydra-base/blob/42e71478d1c5e55e1ec55bd35dcc0aacfac4f847/hydra_base/util/storage.py#L250

This func in the utils duplicates some functionality from the adapter class and isn't aware of replica sets. This issue is to move all Mongo config related features into the adapter and have that return a configured client from a static method.

pmslavin commented 1 year ago

This has been resolved as part of #166; will close when that is merged.