Skip to content

Refactor MongoConnection class functions #31

@naorlivne

Description

@naorlivne

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions