Skip to content

Fix imports for backward compactibility#9

Merged
mak626 merged 1 commit into
feat/asyncfrom
fix/import-issues
Jun 26, 2026
Merged

Fix imports for backward compactibility#9
mak626 merged 1 commit into
feat/asyncfrom
fix/import-issues

Conversation

@mak626

@mak626 mak626 commented Jun 25, 2026

Copy link
Copy Markdown
Member

Fix: Broken Imports wrt to origin/mongoengine

Restored Queryset Module Imports

Brought back the following components to fix broken imports:

  • Q
  • queryset_manager
  • QuerySetManager
  • QueryFieldList
  • DO_NOTHING
  • NULLIFY
  • CASCADE
  • DENY
  • PULL

Backward-Compatibility Fixes

Re-added global connection defaults to prevent breaking downstream dependencies:

  • DEFAULT_CONNECTION_NAME
  • DEFAULT_DATABASE_NAME

Removed Unwanted Exports & Classes

Cleaned up the public API by removing internal dependencies:

  • From base.transform: Removed query, update, and STRING_OPERATORS
  • Querysets: Removed AsyncBaseQuerySet and BaseQuerySet

…nused exports

- Restore missing queryset module imports: Q, queryset_manager, QuerySetManager, QueryFieldList, and delete rules (DO_NOTHING, NULLIFY, CASCADE, DENY, PULL) to fix broken imports relative to origin/mongoengine
- Re-add DEFAULT_CONNECTION_NAME and DEFAULT_DATABASE_NAME for backward compatibility
- Remove unwanted exports from base.transform (query, update, STRING_OPERATORS)
- Remove unused AsyncBaseQuerySet and BaseQuerySet
@mak626 mak626 force-pushed the fix/import-issues branch from 384fad7 to 36bc9b1 Compare June 25, 2026 14:07
@mak626 mak626 merged commit b859240 into feat/async Jun 26, 2026
248 checks passed
@mak626 mak626 deleted the fix/import-issues branch June 26, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants