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

feat: update autocomplete sorting #38690

Merged
merged 14 commits into from
Jan 17, 2025

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 16, 2025

What does this PR do?

  1. Updates the dataTypeSortRules.ts configuration file to add more entries into the data types arrays for improved autocomplete suggestions.

Changes

Added new entries to the following data type arrays:

  • STRING: Added "selectedOptionValue", "value"
  • NUMBER: Added "pageOffset", "pageSize"
  • OBJECT: Added "formData"
  • ARRAY: Added "selectedOptionValues", "selectedValues"
  • BOOLEAN: Added "isValid", "isChecked", "isSwitchedOn"
  1. Updates the scoring of certain rules in AutocompleteSortRules.ts to get better results in best match

Changes

  • DataTreeEntityNameRule: Reduce score instead of increasing it. Reduce rule weight
  • TypeMatchRule: Do not consider types of completions that are of "EntityName".
  • RecentEntityRule: Do not increase scores of the same entity based on recency

fixes #38721

Link to Devin run: https://app.devin.ai/sessions/2e8beba69a26426cbfcb277fa260afe6

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

Tip

🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/12824699796
Commit: 2132483
Cypress dashboard.
Tags: @tag.All
Spec:


Fri, 17 Jan 2025 10:18:37 UTC

Co-Authored-By: rahul.kochar@appsmith.com <rahul.kochar@appsmith.com>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Contributor

coderabbitai bot commented Jan 16, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 using 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 generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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 the Enhancement New feature or request label Jan 16, 2025
@kocharrahul7
Copy link
Contributor

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/12804851139.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 38690.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-38690.dp.appsmith.com

@kocharrahul7
Copy link
Contributor

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/12806167413.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 38690.
recreate: .

Copy link
Contributor Author

Note: Used --no-verify flag for this commit as this is a draft PR. Will address any lint/formatting issues during review.

Copy link

Deploy-Preview-URL: https://ce-38690.dp.appsmith.com

@devin-ai-integration devin-ai-integration bot force-pushed the devin/1737014532-update-autocomplete-datatypes branch from 4c79250 to 511c96f Compare January 16, 2025 10:52
Co-Authored-By: rahul.kochar@appsmith.com <rahul.kochar@appsmith.com>
@kocharrahul7
Copy link
Contributor

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/12807710201.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 38690.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-38690.dp.appsmith.com

devin-ai-integration bot and others added 2 commits January 16, 2025 12:04
…taTypeSortRules

Co-Authored-By: rahul.kochar@appsmith.com <rahul.kochar@appsmith.com>
Co-Authored-By: rahul.kochar@appsmith.com <rahul.kochar@appsmith.com>
@kocharrahul7
Copy link
Contributor

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/12808805799.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 38690.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-38690.dp.appsmith.com

devin-ai-integration bot and others added 2 commits January 16, 2025 13:51
Co-Authored-By: rahul.kochar@appsmith.com <rahul.kochar@appsmith.com>
Co-Authored-By: rahul.kochar@appsmith.com <rahul.kochar@appsmith.com>
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@hetunandu
Copy link
Member

/build-deploy-preview

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/12811127962.
Workflow: On demand build Docker image and deploy preview.
skip-tests: . env: .
PR: 38690.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-38690.dp.appsmith.com

@hetunandu
Copy link
Member

/build-deploy-preview

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/12812115361.
Workflow: On demand build Docker image and deploy preview.
skip-tests: . env: .
PR: 38690.
recreate: .

@github-actions github-actions bot added IDE Product Issues related to the IDE Product Javascript Product Issues related to users writing javascript in appsmith Query & JS Pod Issues related to the query & JS Pod Task A simple Todo labels Jan 17, 2025
@hetunandu hetunandu added the ok-to-test Required label for CI label Jan 17, 2025
@hetunandu hetunandu requested a review from sneha122 January 17, 2025 05:10
@hetunandu hetunandu marked this pull request as ready for review January 17, 2025 05:14
@hetunandu hetunandu changed the title feat: update autocomplete dataTypeSortRules with new entries feat: update autocomplete sorting Jan 17, 2025
sneha122
sneha122 previously approved these changes Jan 17, 2025
@hetunandu hetunandu added ok-to-test Required label for CI and removed ok-to-test Required label for CI labels Jan 17, 2025
@hetunandu
Copy link
Member

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/12824717245.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 38690.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-38690.dp.appsmith.com

@hetunandu hetunandu requested a review from sneha122 January 17, 2025 10:28
@hetunandu hetunandu enabled auto-merge (squash) January 17, 2025 10:36
@hetunandu hetunandu requested a review from sneha122 January 17, 2025 10:51
@hetunandu hetunandu merged commit 24a7fa5 into release Jan 17, 2025
83 checks passed
@hetunandu hetunandu deleted the devin/1737014532-update-autocomplete-datatypes branch January 17, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Autocomplete Issues related to the autocomplete Enhancement New feature or request IDE Navigation Issues/feature requests related to IDE navigation, and context switching IDE Pod Issues that new developers face while exploring the IDE IDE Product Issues related to the IDE Product Javascript Product Issues related to users writing javascript in appsmith ok-to-test Required label for CI Query & JS Pod Issues related to the query & JS Pod Task A simple Todo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Update autocomplete rules for better Best Match
3 participants