shinken-monitoring / mod-webui

Shinken Web User Interface
GNU Affero General Public License v3.0
79 stars 71 forks source link

Deprecation warning - pymongo update #665

Closed mohierf closed 5 years ago

mohierf commented 5 years ago

Some deprecation warnings are raised for the pymong library:

/usr/local/lib/python2.7/dist-packages/alignak_webui/submodules/prefs.py:145: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
  self.db.ui_user_preferences.update({"_id": "shinken-test"}, {"$set": {"last_test": time.time()}})
None
/usr/local/lib/python2.7/dist-packages/alignak_webui/submodules/prefs.py:145: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
  self.db.ui_user_preferences.update({"_id": "shinken-test"}, {"$set": {"last_test": time.time()}})
None
/usr/local/lib/python2.7/dist-packages/alignak_webui/submodules/prefs.py:145: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
  self.db.ui_user_preferences.update({"_id": "shinken-test"}, {"$set": {"last_test": time.time()}})
mohierf commented 5 years ago

Version 3.0 of pymongo has been release in 2015 ... it should be a minimum version in the requirements.

Edit: indeed, the WebUI still requires pymongo>=3.0.3 😄