feat(datasource mongoose): handle nested enums#1765
Merged
Conversation
5 new issues
|
|
Coverage Impact ⬆️ Merging this pull request will increase total coverage on Modified Files with Diff Coverage (7) 🛟 Help
|
christophebrun-forest
left a comment
Member
There was a problem hiding this comment.
One suggestion regarding the sorting of Enum values. It's done elsewhere (See line 71)
forest-bot
added a commit
that referenced
this pull request
Jul 22, 2026
# @forestadmin/datasource-toolkit [1.54.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-toolkit@1.53.1...@forestadmin/datasource-toolkit@1.54.0) (2026-07-22) ### Features * **datasource mongoose:** handle nested enums ([#1765](#1765)) ([7114afd](7114afd))
forest-bot
added a commit
that referenced
this pull request
Jul 22, 2026
# @forestadmin/datasource-customizer [1.70.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-customizer@1.69.3...@forestadmin/datasource-customizer@1.70.0) (2026-07-22) ### Features * **datasource mongoose:** handle nested enums ([#1765](#1765)) ([7114afd](7114afd)) ### Dependencies * **@forestadmin/datasource-toolkit:** upgraded to 1.54.0
forest-bot
added a commit
that referenced
this pull request
Jul 22, 2026
# @forestadmin/datasource-mongoose [1.14.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-mongoose@1.13.4...@forestadmin/datasource-mongoose@1.14.0) (2026-07-22) ### Features * **datasource mongoose:** handle nested enums ([#1765](#1765)) ([7114afd](7114afd)) ### Dependencies * **@forestadmin/datasource-toolkit:** upgraded to 1.54.0
forest-bot
added a commit
that referenced
this pull request
Jul 22, 2026
# @forestadmin/forestadmin-client [1.41.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/forestadmin-client@1.40.5...@forestadmin/forestadmin-client@1.41.0) (2026-07-22) ### Features * **datasource mongoose:** handle nested enums ([#1765](#1765)) ([7114afd](7114afd)) ### Dependencies * **@forestadmin/ai-proxy:** upgraded to 1.12.1 * **@forestadmin/datasource-toolkit:** upgraded to 1.54.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Definition of Done
General
Security
Note
Add nested enum support to the Mongoose datasource and related utilities
NestedEnumColumnType({ type: 'Enum', enumValues: string[] }) in schema.ts and aTypeGetter.isEnumFieldhelper to detect inline enum sub-fields within composite column types.NestedEnumColumnTypefor string-enum sub-documents instead of treating them as plain strings.Enumtype with anenumValueslist in the Forest schema and generated TypeScript typings.Changes since #1765 opened
SchemaGeneratorFields.convertColumnTypemethod to sort enum values for nested enum sub-fields within composite column types [5ef4283]Macroscope summarized 4732be8.