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

Update deprecated code #45

Draft
wants to merge 14 commits into
base: gisce
Choose a base branch
from
Draft

Update deprecated code #45

wants to merge 14 commits into from

Conversation

polsala
Copy link
Member

@polsala polsala commented Oct 2, 2024

  • Usable with new server versions (6, 7, 8)
  • Full py 3 compat
  • Replace pymongo deprecated calls

Need: https://github.com/gisce/erp/pull/21911

Old coverage

Name                                                     Stmts   Miss  Cover
----------------------------------------------------------------------------
/home/psala/Projects/mongodb_backend/fields.py              53     53     0%
/home/psala/Projects/mongodb_backend/mongodb2.py           115     65    43%
/home/psala/Projects/mongodb_backend/orm_mongodb.py        366    228    38%
/home/psala/Projects/mongodb_backend/osv_mongodb.py         43     25    42%
----------------------------------------------------------------------------
TOTAL                                                      706    391    45%

New coverage

Name                                                     Stmts   Miss  Cover
----------------------------------------------------------------------------
/home/psala/Projects/mongodb_backend/fields.py              53      8    85%
/home/psala/Projects/mongodb_backend/mongodb2.py           115     65    43%
/home/psala/Projects/mongodb_backend/orm_mongodb.py        375    117    69%
/home/psala/Projects/mongodb_backend/osv_mongodb.py         43     25    42%
----------------------------------------------------------------------------
TOTAL                                                      855    235    73%

@polsala polsala self-assigned this Oct 3, 2024
@polsala polsala added the compat label Oct 3, 2024
Copy link

github-actions bot commented Oct 3, 2024

Python Mongo 5 3.11 Tests for mongodb_backend

84 tests   81 ✅  0s ⏱️
 2 suites   2 💤
 2 files     1 ❌

For more details on these failures, see this check.

Results for commit 4963fdc.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 3, 2024

Python Mongo 3 2.7 Tests for mongodb_backend

84 tests   82 ✅  0s ⏱️
 2 suites   2 💤
 2 files     0 ❌

Results for commit 4963fdc.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 3, 2024

Python Mongo 3 3.11 Tests for mongodb_backend

84 tests   81 ✅  0s ⏱️
 2 suites   2 💤
 2 files     1 ❌

For more details on these failures, see this check.

Results for commit 4963fdc.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 3, 2024

Python Mongo 5 2.7 Tests for mongodb_backend

84 tests   82 ✅  0s ⏱️
 2 suites   2 💤
 2 files     0 ❌

Results for commit 4963fdc.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 3, 2024

Python Mongo 8 3.11 Tests for mongodb_backend

84 tests   81 ✅  0s ⏱️
 2 suites   2 💤
 2 files     1 ❌

For more details on these failures, see this check.

Results for commit 4963fdc.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 3, 2024

Python Mongo 8 2.7 Tests for mongodb_backend

84 tests   82 ✅  0s ⏱️
 2 suites   2 💤
 2 files     0 ❌

Results for commit 4963fdc.

♻️ This comment has been updated with latest results.

@polsala polsala marked this pull request as draft October 8, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant