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

TESTING EXTERNAL SCRIPT: external merge request from Contributor #35948

Closed
wants to merge 2 commits into from

Conversation

AmanAgarwal041
Copy link
Contributor

@AmanAgarwal041 AmanAgarwal041 commented Aug 28, 2024

Description

Fixes #28190

Warning

If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation

/ok-to-test tags=@tag.All

🔍 Cypress test results

Warning

Invalid tags. Please use /ok-to-test tags="@tag.All" or /test all in the PR body to run all tests.
Tags documentation.
List of valid tags.


Wed, 28 Aug 2024 11:46:20 UTC

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • New Features

    • Enhanced data organization by implementing a structured format for results, improving clarity and type safety.
    • Added a sorting mechanism for results based on labels in a case-insensitive manner.
  • Tests

    • Introduced a new test to validate the correct ordering of collections returned by the datasource trigger functionality, improving test coverage.

@AmanAgarwal041 AmanAgarwal041 added the ok-to-test Required label for CI label Aug 28, 2024
Copy link
Contributor

coderabbitai bot commented Aug 28, 2024

Warning

Rate limit exceeded

@github-actions[bot] has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 22 minutes and 17 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 5ddf6e6 and 7dd5b2c.

Walkthrough

The recent changes enhance the trigger method in the DatasourceTriggerSolutionCEImpl class by restructuring the result list to a more organized format and implementing case-insensitive sorting. Additionally, a new test method has been added to ensure the order of collections returned by the datasource trigger functionality, thereby improving the robustness of the system.

Changes

Files Change Summary
app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/DatasourceTriggerSolutionCEImpl.java Modified trigger method to change result from List<Object> to List<Map<String, String>>, added case-insensitive sorting, and converted the result back to List<Object>.
app/server/appsmith-server/src/test/java/com/appsmith/server/solutions/DatasourceTriggerSolutionTest.java Added datasourceTriggerTest_should_return_collections_inorder to validate the order of collections returned by the datasource trigger functionality.

Assessment against linked issues

Objective Addressed Explanation
Improve collection dropdown filtering and sorting experience (#28190, #35842)

🎉 In code we trust, with structured delight,
A sorted collection, now shining so bright.
With tests that ensure the order is right,
Appsmith's features take flight, what a sight!
Let's celebrate progress, with joy and with cheer,
For clearer data handling, we give a great cheer! 🎊


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added Enhancement New feature or request Integrations Product Issues related to a specific integration Mongo Issues related to Mongo DB plugin Query & JS Pod Issues related to the query & JS Pod and removed Enhancement New feature or request labels Aug 28, 2024
@AmanAgarwal041
Copy link
Contributor Author

Testing pr script

@AmanAgarwal041 AmanAgarwal041 deleted the chore/external-contribution-35413 branch August 28, 2024 11:46
@github-actions github-actions bot added Enhancement New feature or request and removed Enhancement New feature or request labels Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Integrations Product Issues related to a specific integration Mongo Issues related to Mongo DB plugin ok-to-test Required label for CI Query & JS Pod Issues related to the query & JS Pod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Mongo collections dropdown filtering
2 participants