Skip to content
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

Add Manage Index Section #532

Conversation

EhsanRezaei1981
Copy link

This pull request introduces the implementation of the "Manage Index" section in mongo-modeler. The feature allows users to create, view, and manage indexes for collections, improving database performance and usability.

Changes Made

Added functionality to create new indexes with options such as unique, sparse, and partialFilterExpression.
Implemented a feature to list existing indexes for a collection.

How to Test
Navigate to the "Manage Index" section.
Test creating a new index with the following configurations: Name, Unique, Sparse, Partial filter expressions
Verify the list of existing indexes is displayed correctly.

Notes
The duplicate names check will be checking in the entire schema.
Save schema functionality will save the new indexes defined.
Export to mongo script will generate the index creation script.

image

image

Please review and share feedback!

@brauliodiez
Copy link
Member

Hello @EhsanRezaei1981 we have updated vnext branch and update the branch in your fork, we are reviewing the code.

We are as well checking how to add a multiple tree field selection on the field area.

We will go through your code and provide feedback.

Thanks a lot for your contribution, and sorry for the slow process, we will add this feature to our main branch once we have it reviewed it's quite useful

@EhsanRezaei1981
Copy link
Author

Hi Brauliodiez,

Thank you for the update! I appreciate you taking the time to review the code and for keeping me informed about the progress.

It’s great to hear that you’re exploring how to add multiple tree field selection in the field area—that sounds like a valuable enhancement. I look forward to your feedback on my contribution and am happy to assist if there’s anything you need from my side during the review process.

No worries about the slow process; I understand these things take time to get right. I’m glad to hear the feature will be part of the main branch once finalized—it’s exciting to contribute to something that will add value.

Thanks again for the support and communication!

Best regards,
Ehsan

@brauliodiez brauliodiez changed the base branch from vnext to feature/#529-index-section-is-missing January 19, 2025 17:22
@brauliodiez
Copy link
Member

Hello @EhsanRezaei1981 we are goin go to merge this forked branch into a branch inside our repo, so we can work on that to include the choose fields tree control, the branch is: https://github.com/Lemoncode/mongo-modeler/tree/feature/%23529-index-section-is-missing

@brauliodiez
Copy link
Member

We got some errores when running the tests we will go through them

@brauliodiez brauliodiez merged commit 81f5fe1 into Lemoncode:feature/#529-index-section-is-missing Jan 19, 2025
1 of 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.

2 participants