Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove mongoengine context managers #287

Open
MrCreosote opened this issue Jan 21, 2021 · 0 comments
Open

Remove mongoengine context managers #287

MrCreosote opened this issue Jan 21, 2021 · 0 comments
Labels
code cleanup swiffer that crap right up

Comments

@MrCreosote
Copy link
Member

They're unnecessary. For example:

        with self.sdkmr.get_mongo_util().mongo_engine_connection():
            self.logger.debug(job.to_mongo().to_dict())
            job.save()
@MrCreosote MrCreosote added the code cleanup swiffer that crap right up label Jan 21, 2021
MrCreosote added a commit that referenced this issue Apr 6, 2021
Not needed as per #287

Removing in a commit prior to integrating the new job requirements
resolution code to make that change easier to read
MrCreosote added a commit that referenced this issue Apr 6, 2021
* Remove mongo engine context from to be altered files

Not needed as per #287

Removing in a commit prior to integrating the new job requirements
resolution code to make that change easier to read

* run black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup swiffer that crap right up
Projects
None yet
Development

No branches or pull requests

1 participant