Closed prihoda closed 2 years ago
@insspb tagging you for visibility, thanks!
I'll make this a deprecation warning in Flask for now, but note that app.json_encoder
etc. are deprecated and will be removed in Flask 2.3. There is a new "JSON Provider" interface that allows complete customization of the JSON implementation.
It looks like you are ignoring deprecation warnings during tests. This is really unsafe, as you will not be notified early of changes to libraries you depend on. Tests should treat deprecation warnings as errors, so that you can either create compatibility code or explicitly acknowledge that you're ignoring a specific warning.
Hi @prihoda , @davidism
Next week or two I am on my main job, so here will be some delays with Flask-Mongoengine 2.0.0 work. Can you clarify is it report related to current pip version or to current master? (Flask-Mongoengine 2.0.0 preparation)
Ok, now everything is clear for me.
Fixed in #505 :
With #505 and #507 completely supported, and raising on deprecation warnings in future.
Do you have any idea when this change will be available via pip? Can you maybe backport this to flask-mongoengine 1 while version 2 is still in development? This would be super helpful for our Poject
I was wondering the same thing. In the mean time can you please explain how to resolve the warning? I am having the same problem. Also I am not as experienced with flask or mongo. I am using Docker and docker compose with a requirements.txt file to install the dependencies and run the app, so any post installation steps are not viable to me. I you could keep that in mind that would be really helpful.
Initializing
MongoEngine
now raises an exception, becauseapp.json_encoder
is nowNone
:Please see flask changelog:
https://flask.palletsprojects.com/en/2.2.0/changes/#version-2-2-0