Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • N noc
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 452
    • Issues 452
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 23
    • Merge requests 23
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • noc
  • noc
  • Merge requests
  • !2187

mongoengine 0.18

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Dmitry Volodin requested to merge noc-mongoengine-0.18 into master Jun 13, 2019
  • Overview 0
  • Commits 3
  • Pipelines 4
  • Changes 4

Changes in 0.18.0

  • Drop support for EOL'd MongoDB v2.6, v3.0, and v3.2.
  • MongoEngine now requires PyMongo >= v3.4. Travis CI now tests against MongoDB v3.4 – v3.6 and PyMongo v3.4 – v3.6 (#2017 #2066).
  • Improve performance by avoiding a call to to_mongo in Document.save() #2049
  • Connection/disconnection improvements:
    • Expose mongoengine.connection.disconnect and mongoengine.connection.disconnect_all
    • Fix disconnecting #566 (closed) #1599 (closed) #605 (closed) #607 (closed) #1213 #565 (closed)
    • Improve documentation of connect/disconnect
    • Fix issue when using multiple connections to the same mongo with different credentials #2047
    • connect fails immediately when db name contains invalid characters #2031 #1718 (closed)
  • Fix the default write concern of Document.save that was overwriting the connection write concern #568 (closed)
  • Fix querying on List(EmbeddedDocument) subclasses fields #1961 #1492
  • Fix querying on (Generic)EmbeddedDocument subclasses fields #475
  • Fix QuerySet.aggregate so that it takes limit and skip value into account #2029
  • Generate unique indices for SortedListField and EmbeddedDocumentListFields #2020
  • BREAKING CHANGE: Changed the behavior of a custom field validator (i.e validation parameter of a Field). It is now expected to raise a ValidationError instead of returning True/False #2050
  • BREAKING CHANGES (associated with connect/disconnect fixes):
  • Calling connect 2 times with the same alias and different parameter will raise an error (should call disconnect first).
  • disconnect now clears mongoengine.connection._connection_settings.
  • disconnect now clears the cached attribute Document._collection.
  • BREAKING CHANGE: EmbeddedDocument.save & .reload is no longier exist #1552 (closed)

Из интересного: Improve performance by avoiding a call to to_mongo in Document.save() #2049

Edited Jun 13, 2019 by Dmitry Volodin
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: noc-mongoengine-0.18