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 #35956

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 14:25:38 UTC

Communication

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

  • Yes
  • No

Summary by CodeRabbit

  • New Features

    • Enhanced data structure for results, allowing for a more organized representation of data with labels and values.
    • Introduced sorting functionality to ensure results are ordered case-insensitively by label.
  • Tests

    • Added a new test to verify that collections returned by the datasource trigger are in the correct order.

@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 11 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 09f608d and 308b493.

Walkthrough

The changes involve modifications to the trigger method in the DatasourceTriggerSolutionCEImpl class, specifically transitioning the result from a list of objects to a list of maps for improved data representation. Additionally, a new test method has been introduced to ensure that the trigger method returns collections in the expected order, validating its functionality against specific parameters.

Changes

Files Change Summary
app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/DatasourceTriggerSolutionCEImpl.java Updated trigger method to change result from List<Object> to List<Map<String, String>> and added sorting logic for improved output.
app/server/appsmith-server/src/test/java/com/appsmith/server/solutions/DatasourceTriggerSolutionTest.java Introduced datasourceTriggerTest_should_return_collections_inorder to verify the order of collections returned by the trigger method.

Assessment against linked issues

Objective Addressed Explanation
Improve filtering in MongoDB collections dropdown (#[28190])
Ensure collections are sorted (#[35842])

In code we trust, to sort and refine,
With maps and lists, our data aligns.
A test to ensure that all's in its place,
In the world of collections, we quicken the pace.
So here's to the changes, fresh and bright,
In the realm of code, everything feels right!


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 14:25
@github-actions github-actions bot added Enhancement New feature or request and removed Enhancement New feature or request labels Aug 28, 2024
@AmanAgarwal041 AmanAgarwal041 restored the chore/external-contribution-35413 branch August 28, 2024 14:49
@AmanAgarwal041 AmanAgarwal041 deleted the chore/external-contribution-35413 branch August 28, 2024 14:50
@AmanAgarwal041 AmanAgarwal041 restored the chore/external-contribution-35413 branch August 28, 2024 14:51
@AmanAgarwal041 AmanAgarwal041 deleted the chore/external-contribution-35413 branch August 28, 2024 14:52
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