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

Fix MongoDB deprecation warnings #151

Open
osteele opened this issue Apr 21, 2018 · 0 comments
Open

Fix MongoDB deprecation warnings #151

osteele opened this issue Apr 21, 2018 · 0 comments
Labels
internal Only affects ABE developers

Comments

@osteele
Copy link
Contributor

osteele commented Apr 21, 2018

$ python -m unittest -q
/Users/osteele/code/htl2/ABE/.direnv/python-3.6.5/lib/python3.6/site-packages/mongoengine/document.py:428: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
  object_id = collection.save(doc, **write_concern)
/Users/osteele/code/htl2/ABE/.direnv/python-3.6.5/lib/python3.6/site-packages/mongoengine/queryset/queryset.py:51: DeprecationWarning: generator 'QuerySet._iter_results' raised StopIteration
  list(self._iter_results())
/Users/osteele/code/htl2/ABE/.direnv/python-3.6.5/lib/python3.6/site-packages/mongoengine/queryset/base.py:514: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
  upsert=upsert, **write_concern)
/Users/osteele/code/htl2/ABE/.direnv/python-3.6.5/lib/python3.6/site-packages/mongoengine/dereference.py:32: DeprecationWarning: generator 'QuerySet._iter_results' raised StopIteration
  items = [i for i in items]
/Users/osteele/code/htl2/ABE/abe/resource_models/label_resources.py:50: DeprecationWarning: generator 'QuerySet._iter_results' raised StopIteration
  return [mongo_to_dict(result) for result in results]

These are due to upstream issues in mongoengine:

@osteele osteele added the internal Only affects ABE developers label Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Only affects ABE developers
Projects
None yet
Development

No branches or pull requests

1 participant