WrenAI
WrenAI copied to clipboard
The Sync Status on the modeling page is `unsync` after onboarding process finished.
Describe the bug
The Sync Status on the modeling page has a probability of being Undeployed changes
after the onboarding process is finished.
To Reproduce Steps to reproduce the behavior:
- Start a new data source / Reset your Project
- Finish the onboarding process
- Go to the modeling page
- See the sync status in the header bar, seeing "Undeployed changes"
Expected behavior The sync status should be "synced" with a green check icon
Desktop (please complete the following information):
- OS: mac
- Browser chrome
Wren AI Information
- Version: 0.10.0
- LLM_PROVIDER= openai_llm
- using Postgres as the wren UI storage
Solutions The cause of this bug is the order of mdl columns & models were not consistent In the src/apollo/server/mdl/mdlBuilder.ts file, modify the MDLBuilder constructor to sort the input columns, models, and relations by their keys.