Skip to content

Implement Schema Designer module - visualization only for now#538

Merged
mmihir merged 17 commits intomainfrom
user/mm/schema_viz
Apr 16, 2025
Merged

Implement Schema Designer module - visualization only for now#538
mmihir merged 17 commits intomainfrom
user/mm/schema_viz

Conversation

@mmihir
Copy link
Copy Markdown
Contributor

@mmihir mmihir commented Apr 9, 2025

Add the following endpoints:

  • schemaDesigner/createSession
  • schemaDesigner/closeSession
  • schemaDesigner/getSchemaModel

Implements a session based interface to retrieve the full schema of a database, and in the future, support modifications as well.

@mmihir mmihir requested review from a team as code owners April 9, 2025 19:10
@mmihir mmihir self-assigned this Apr 9, 2025
Copy link
Copy Markdown
Contributor

@lossyrob lossyrob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review comments on service-level and connection management items.

I'll review the SchemaEditorSession logic next.

Another general ask - we should have some unit tests around this to test and avoid regressions in the future. I recommend using tests_v2 to model sending messages directly via the server client wrapper; there are examples in the other service test code e.g. objectexplorer.

Comment thread ossdbtoolsservice/schema/contracts/get_schema_model.py Outdated
Comment thread ossdbtoolsservice/schema/schema_editor_service.py Outdated
Comment thread ossdbtoolsservice/schema/schema_editor_service.py Outdated
Comment thread ossdbtoolsservice/schema/schema_editor_service.py Outdated
Comment thread ossdbtoolsservice/schema/schema_editor_service.py Outdated
Comment thread ossdbtoolsservice/schema/schema_editor_service.py
Comment thread ossdbtoolsservice/schema/schema_editor_service.py
Copy link
Copy Markdown
Contributor

@lossyrob lossyrob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! More review comments, discussion around how to approach responses vs notifications in session management.

Comment thread ossdbtoolsservice/schema/schema_editor_service.py Outdated
Comment thread ossdbtoolsservice/schema/schema_editor_service.py Outdated
Comment thread ossdbtoolsservice/schema/session.py
Comment thread ossdbtoolsservice/schema/schema_editor_service.py Outdated
Comment thread ossdbtoolsservice/schema/session.py Outdated
Comment thread ossdbtoolsservice/schema/session.py
Mihir Mallya added 4 commits April 14, 2025 23:06
- Move connection management and handling to extension
- Use REQ/RSP/NOTIF model for communication
- General cleanup from review comments
- TODO: fix DB schema retrieval, still some issues
@lossyrob
Copy link
Copy Markdown
Contributor

@mmihir can you give the PR a descriptive title, this will be the commit message once it's squash merged in.

Copy link
Copy Markdown
Contributor

@lossyrob lossyrob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few things, and a question about what we want to support now vs later.

Comment thread ossdbtoolsservice/schema/utils.py Outdated
Comment thread ossdbtoolsservice/schema/session.py
Comment thread ossdbtoolsservice/schema/schema_editor_service.py
Comment thread ossdbtoolsservice/schema/schema_editor_service.py
@mmihir mmihir changed the title User/mm/schema viz Implement Schema Designer module - visualization only for now Apr 15, 2025
Copy link
Copy Markdown
Member

@mmcfarland mmcfarland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@mmihir mmihir merged commit d2ecee5 into main Apr 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants