Skip to content

feat: field sidebar COMPASS-9659 #7218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

feat: field sidebar COMPASS-9659 #7218

wants to merge 6 commits into from

Conversation

paula-stacho
Copy link
Contributor

@paula-stacho paula-stacho commented Aug 21, 2025

Description

This is getting big, so let's do it in steps:

  1. Read only field drawer <--- WE ARE HERE
  2. Field rename, change type and delete
  3. E2E tests
  4. Move the schema methods

This part includes:

  • Field drawer with name + type as readonly inputs
  • Relationship section (this one is mostly reused code from the collection relationship section)
  • 2 methods for schema traversal
    • traverseSchema with a visitor is extracted from the existing code
    • getFieldFromSchema follows a given path to get a field

We will need at least one similar method for making updates. I plan to move the methods to @mongodb-js/mongodb-schema, but to speed things up and have easier time testing, I want to finish the functionality first.

TODO:

  • add unit tests
  • add tickets to todos
  • find out where to get a list of bson types
  • find out why the type combobox height is glitching
  • "missing target" default (check with Ben)

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@github-actions github-actions bot added the feat label Aug 21, 2025
@paula-stacho paula-stacho added the feature flagged PRs labeled with this label will not be included in the release notes of the next release label Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat feature flagged PRs labeled with this label will not be included in the release notes of the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant