Skip to content

refactor: create instance with asynchronous - #20954

Draft
ecmadao wants to merge 4 commits into
bytebase:mainfrom
ecmadao:refactor/BYT-9902
Draft

refactor: create instance with asynchronous#20954
ecmadao wants to merge 4 commits into
bytebase:mainfrom
ecmadao:refactor/BYT-9902

Conversation

@ecmadao

@ecmadao ecmadao commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

The SyncInstanceWithOptions will list all databases in the instance and loop to create new database in the store

for _, databaseMetadata := range instanceMeta.Databases {

So if a instance include many databases, the frontend creation will be blocked in the UX:

CleanShot 2026-07-22 at 10 27 08

Make SyncInstanceWithOptions asynchronous and only sync necessary (engine, version, etc)

CleanShot 2026-07-22 at 10 15 29

Mock a 5s delay for SyncInstanceWithOptions

CleanShot 2026-07-22 at 10 41 06

I'm not sure if we need this change, PTAL @RainbowDashy @d-bytebase

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue

See analysis details on SonarQube Cloud

💡 Need a hand with PR review? Try Gitar by Sonar!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant