WrenAI icon indicating copy to clipboard operation
WrenAI copied to clipboard

The Sync Status on the modeling page is `unsync` after onboarding process finished.

Open onlyjackfrost opened this issue 4 months ago • 5 comments

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:

  1. Start a new data source / Reset your Project
  2. Finish the onboarding process
  3. Go to the modeling page
  4. 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.

onlyjackfrost avatar Oct 03 '24 06:10 onlyjackfrost