-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Bug]: Mongodb collections are not in sorted order in schemas. #35842
Comments
Hi @Nikhil-Nandagopal , @rohan-arthur, I would like to work on this Issue. Can i pick this issue? |
sure, @raushan3737 For now, I've added the tag |
Sure @rohan-arthur, Thank you. |
@raushan3737 thanks, will remind the respective teams of these. |
@Naveen-Goud I assume you have already raised a fix for this issue in this PR -#35413 |
@raushan3737 please don't work on this as the fix has already been raised in this PR -#35413 |
Hi @NilanshBansal , I have worked on issue #28190 , it was filtering in dropdown, but the in schemas the collections need to be sorted as the PR #35413 does solve sorting collectiond in schemas , it solves the filtering in drop down only. so I have raised this bug. |
Thanks @Naveen-Goud I have reopened this issue and updated the original filtering issue. @raushan3737 apologies for the confusion, you can go ahead working on this issue. |
### PR Description: - **File changes in the PR**: - Integrated the sorting feature to the mongo collections. - Added the unit test for sorting. Fixes appsmithorg#35842 - **Snapshots**: **Before resolving bug:** ![image](https://github.com/user-attachments/assets/34c04ebc-e81b-480c-9a54-1b643b68ffb2) **After resolving bug:** ![image](https://github.com/user-attachments/assets/fd7155e1-e261-491a-b912-7d482b8a9386) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced the MongoDB plugin to return collection names in a case-insensitive sorted order, improving predictability and user experience. - **Tests** - Added a new test to validate that collections returned by the plugin are sorted correctly, ensuring consistent functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Is there an existing issue for this?
Description
when we connect with mongodb database and execute any query the collections after getting from db are not in sorted order in schemas.
Steps To Reproduce
1.login into the appsmith application.
2.open the data tab in app and add mongodb data source.
3.add some collections in mongodb, ignore if present.
4.try to execute any query .
5.after that when we open the schemas , we observe that the collections are in not sorted manner.
Public Sample App
No response
Environment
Production
Severity
Low (Cosmetic UI issues)
Issue video log
No response
Version
release
The text was updated successfully, but these errors were encountered: