You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/web/app/components
QuantumGhost 2c1ab4879f
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025)
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025)

This PR addresses serialization issues in the VariablePool model by separating the `value_type` tags for `IntegerSegment`/`FloatSegment` and `IntegerVariable`/`FloatVariable`. Previously, both Integer and Float types shared the same `SegmentType.NUMBER` tag, causing conflicts during serialization.

Key changes:
- Introduce distinct `value_type` tags for Integer and Float segments/variables
- Add `VariableUnion` and `SegmentUnion` types for proper type discrimination
- Leverage Pydantic's discriminated union feature for seamless serialization/deserialization
- Enable accurate serialization of data structures containing these types

Closes #22024.
8 months ago
..
app Improve Tooltip UX by enabling delay by default (#21383) 8 months ago
app-sidebar fix(web): Optimize AppInfo Component Layout (#22212) (#22218) 9 months ago
base refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025) 8 months ago
billing E-300 (#19726) 10 months ago
custom fix: show 'reset brand' button after set branding image (#20420) 10 months ago
datasets Improve Tooltip UX by enabling delay by default (#21383) 8 months ago
develop fix: wrong translation (#21311) 9 months ago
explore E-300 (#19726) 10 months ago
header Improve Tooltip UX by enabling delay by default (#21383) 8 months ago
plugins Improve Tooltip UX by enabling delay by default (#21383) 8 months ago
share fix: keep search params in web app url when needs authorize (#21717) 9 months ago
signin Chore: frontend infrastructure upgrade (#16420) 1 year ago
tools feat(tool): add support for API key authentication via query parameter (#21656) 9 months ago
workflow refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025) 8 months ago
workflow-app chore:extract last run common logic (#22214) 9 months ago
browser-initor.tsx Chore/cleanup warnings (#17974) 12 months ago
i18n-server.tsx Chore: frontend infrastructure upgrade (#16420) 1 year ago
i18n.tsx Introduce Plugins (#13836) 1 year ago
sentry-initor.tsx Chore: frontend infrastructure upgrade (#16420) 1 year ago
swr-initor.tsx Chore/cleanup warnings (#17974) 12 months ago
with-i18n.tsx