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: Appsmith AI as datasource plugin #29794

Merged
merged 68 commits into from
Jan 16, 2024
Merged

Conversation

vivonk
Copy link
Contributor

@vivonk vivonk commented Dec 21, 2023

Summary by CodeRabbit

  • New Features

    • Introduced Appsmith AI capabilities for enhanced data query functionalities.
    • Added a new "Appsmith AI Query" creation operation with a dedicated icon and description.
    • Implemented a new component for AI plugin datasource management.
    • Launched default configurations for the Appsmith AI feature integration.
  • Enhancements

    • Updated the query editor to conditionally render datasource selectors based on plugin type.
  • Bug Fixes

    • Removed the redundant NO_DATASOURCE_FOR_QUERY constant to streamline the user interface.
  • Documentation

    • Added detailed constants and service implementations for Appsmith AI plugin development.
  • Refactor

    • Improved code structure to accommodate AI features and data source checks across components.
  • Style

    • Integrated new styles for AI-related components and controls within the application.

Copy link
Contributor

coderabbitai bot commented Dec 21, 2023

Walkthrough

Walkthrough

The recent changes involve the introduction of an Appsmith AI plugin, which includes the ability to execute AI queries and manage AI data sources. New functionalities have been added across both client and server components, such as AI-specific selectors, components, utilities, constants, and services. Enhancements include the ability to determine AI plugins, execute AI actions, and manage AI data sources. Additionally, feature flags and tests have been implemented to ensure the correct functioning of the new AI capabilities.

Changes

File Path Change Summary
.../selectors/entitiesSelector.ts
.../components/editorComponents/GlobalSearch/utils.tsx
.../utils/editorContextUtils.ts
.../entities/Action/index.ts
.../entities/Datasource/index.ts
.../entities/FeatureFlag.ts
.../components/editorComponents/GlobalSearch/GlobalSearchHooks.tsx
Added utilities and checks for AI plugin identification, AI action creation, and feature flag handling.
.../pages/Editor/QueryEditor/EditorJSONtoForm.tsx
.../pages/Editor/IntegrationEditor/AIDataSources.tsx
Updated Query Editor and Integration Editor components to support AI data sources and conditional rendering based on plugin type.
.../components/formControls/FormTemplateControl.tsx Introduced a new component for form template selection.
.../constants/ApiEditorConstants/AppsmithAIEditorConstants.ts Added default configurations for the Appsmith AI plugin.
.../sagas/PluginSagas.ts Refactored plugin saga to fetch form configs for the Appsmith AI plugin and handle related logic.
.../server/.../ActionExecutionSolutionImpl.java
.../server/.../ActionExecutionSolutionCEImpl.java
Server-side enhancements to action execution logic to support AI features, including adjustments to constructors and methods.
.../appsmith-plugins/appsmithAiPlugin/... Introduced AI plugin with services, utilities, constants, and DTOs for AI features like image and text processing.
.../server/appsmith-interfaces/... Added hooks and checks related to AI datasource storage and plugin execution.
.../server/.../DatasourceStorageServiceCEImpl.java Implemented a method for pre-save actions and updated datasource storage validation logic.
.../appsmith-plugins/appsmithAiPlugin/src/test/... Added a suite of test cases for AI services, ensuring the functionality of the AI plugin is verified.

These changes indicate a significant effort towards integrating AI capabilities into the Appsmith platform, enhancing the tool's ability to work with AI-driven data and actions.

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-tests for this file.
  • 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 tests 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 from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

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

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@vivonk
Copy link
Contributor Author

vivonk commented Dec 21, 2023

/build-deploy-preview --skip-tests=true

@github-actions github-actions bot added the Enhancement New feature or request label Dec 21, 2023
Copy link

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

@vivonk vivonk marked this pull request as draft December 21, 2023 13:37
Copy link

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

@vivonk
Copy link
Contributor Author

vivonk commented Dec 22, 2023

/build-deploy-preview --skip-tests=true

Copy link

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

Copy link

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

@arunvjn
Copy link
Contributor

arunvjn commented Dec 26, 2023

/build-deploy-preview

@arunvjn
Copy link
Contributor

arunvjn commented Dec 26, 2023

/build-deploy-preview skip-tests=true

Copy link

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

Copy link

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

@arunvjn
Copy link
Contributor

arunvjn commented Dec 26, 2023

/build-deploy-preview skip-tests=true

Copy link

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

Copy link

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

1 similar comment
Copy link

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

@arunvjn
Copy link
Contributor

arunvjn commented Dec 26, 2023

/build-deploy-preview skip-tests=true

Copy link

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

Copy link

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

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7543278479.
Commit: ``.
Cypress dashboard url: Click here!
It seems like there are some failures 😔. We are not able to recognize it, please check this manually here.

@dvj1988 dvj1988 merged commit 811a342 into release Jan 16, 2024
14 checks passed
@dvj1988 dvj1988 deleted the feat/appsmith-managed-ai branch January 16, 2024 14:49
@coderabbitai coderabbitai bot mentioned this pull request Apr 27, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants