Skip to content

Conversation

@asukaminato0721
Copy link
Contributor

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

part of #23579

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

google-labs-jules bot and others added 19 commits October 11, 2025 20:03
Replaced all instances of Base with TypeBase in api/models/ to leverage MappedAsDataclass for stricter type checking. This change required adding explicit type annotations to all fields in the affected models and resolving constructor argument mismatches.

- Replaced Base with TypeBase in:
  - api/models/dataset.py
  - api/models/model.py
  - api/models/workflow.py
  - api/models/provider.py
  - api/models/oauth.py
- Added Mapped type hints to all fields in the affected dataclasses.
- Reordered fields in some dataclasses to satisfy dataclass constraints (fields with default values must come after fields without).
- Updated constructor calls in various files to match the new dataclass `__init__` signatures.
- Fixed a bug in `api/commands.py` where a `None` value could be passed to a function expecting a string.
created_by=account.id,
environment_variables=environment_variables,
conversation_variables=conversation_variables,
rag_pipeline_variables=rag_pipeline_variables_list,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well

@asukaminato0721 asukaminato0721 force-pushed the fix/base-to-typebase-migration branch 2 times, most recently from b92d759 to 9cd31ad Compare December 8, 2025 06:39
@asukaminato0721 asukaminato0721 force-pushed the fix/base-to-typebase-migration branch from 9cd31ad to 6fdcfd1 Compare December 14, 2025 17:55
@asukaminato0721 asukaminato0721 force-pushed the fix/base-to-typebase-migration branch from 6fdcfd1 to f422df4 Compare December 17, 2025 02:33
@asukaminato0721 asukaminato0721 changed the title Fix/base to typebase migration fix: base to typebase migration Jan 5, 2026
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.

1 participant