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

Merged
merged 15 commits into from
Dec 11, 2024
Merged

Update deprecated code #45

merged 15 commits into from
Dec 11, 2024

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   82 ✅  0s ⏱️
 2 suites   2 💤
 2 files     0 ❌

Results for commit 8d2a9cc.

♻️ 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 8d2a9cc.

♻️ 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   82 ✅  0s ⏱️
 2 suites   2 💤
 2 files     0 ❌

Results for commit 8d2a9cc.

♻️ 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 8d2a9cc.

♻️ 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   82 ✅  0s ⏱️
 2 suites   2 💤
 2 files     0 ❌

Results for commit 8d2a9cc.

♻️ 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 8d2a9cc.

♻️ This comment has been updated with latest results.

@polsala polsala marked this pull request as draft October 8, 2024 12:27
@polsala polsala marked this pull request as ready for review November 18, 2024 10:36
@polsala polsala requested review from ecarreras and a team November 18, 2024 10:36
@polsala polsala enabled auto-merge November 18, 2024 14:31
@polsala polsala merged commit e3f4560 into gisce Dec 11, 2024
12 checks passed
@polsala polsala deleted the update_deprecated_code branch December 11, 2024 16:41
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.

2 participants