nebula-orchestrator/manager

Refactor MongoConnection class functions

naorlivne opened this issue · 0 comments

Expected/Wanted Behavior

There should be the following generic functions:

  • mongo_get
  • mongo_check_exists
  • mongo_list
  • mongo_delete (combined with mongo_remove)
  • mongo_update

Which are used rather then the current state of having a lot of functions that are similar but don't share any code.

Actual Behavior

A lot of functions in the MongoConnection class are just copy paste with very small alterations.

Specifications

It should be noted that not all can be generalized as some functions as a unique use case so functions should be generalized on a case by case basis.