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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Use FromRequest for datasource APIs #33039
Conversation
WalkthroughWalkthroughThe recent updates primarily focus on enhancing the JSON serialization control across various authentication and configuration classes within the AppSmith server interfaces. These changes involve the widespread application of Changes
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (11)
Files not reviewed due to errors (8)
Additional comments not posted (22)
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Additionally, you can add CodeRabbit Configration File (
|
## Description With the introduction of FromRequest for the create datasource API in [this](#33039) PR, we have restricted the fields that will be accepted from the client in the request body. Due to this the `authenticationType` field was not getting accepted from the client in the create datasource API, which lead to the failure of airtable queries. This PR allows the acceptance of `authenticationType` field from the client. Discussions [here](https://theappsmith.slack.com/archives/CTHN8GX5Y/p1714974437746959). Fixes #33184 ## Automation /ok-to-test tags="@tag.Datasource" ### 馃攳 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!CAUTION] > 馃敶 馃敶 馃敶 Some tests have failed. > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/8966382606> > Commit: a292aa0 > Cypress dashboard: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8966382606&attempt=3&selectiontype=test&testsstatus=failed&specsstatus=fail" target="_blank"> Click here!</a> > The following are new failures, please fix them before merging the PR: <ol> > <li>cypress/e2e/Regression/ServerSide/QueryPane/DSDocs_Spec.ts </ol> > To know the list of identified flaky tests - <a href="https://internal.appsmith.com/app/cypress-dashboard/identified-flaky-tests-65890b3c81d7400d08fa9ee3?branch=master" target="_blank">Refer here</a> <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No
## Description With the introduction of FromRequest for the create datasource API in [this](#33039) PR, we have restricted the fields that will be accepted from the client in the request body. Due to this the `authenticationType` field was not getting accepted from the client in the create datasource API, which lead to the failure of airtable queries. This PR allows the acceptance of `authenticationType` field from the client. Discussions [here](https://theappsmith.slack.com/archives/CTHN8GX5Y/p1714974437746959). Fixes #33184 ## Automation /ok-to-test tags="@tag.Datasource" ### 馃攳 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!CAUTION] > 馃敶 馃敶 馃敶 Some tests have failed. > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/8966382606> > Commit: a292aa0 > Cypress dashboard: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8966382606&attempt=3&selectiontype=test&testsstatus=failed&specsstatus=fail" target="_blank"> Click here!</a> > The following are new failures, please fix them before merging the PR: <ol> > <li>cypress/e2e/Regression/ServerSide/QueryPane/DSDocs_Spec.ts </ol> > To know the list of identified flaky tests - <a href="https://internal.appsmith.com/app/cypress-dashboard/identified-flaky-tests-65890b3c81d7400d08fa9ee3?branch=master" target="_blank">Refer here</a> <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No (cherry picked from commit a5edfb0)
This PR removes use of
@JsonProperty
in Datasource entity so that it encrypted fields can be stored to the database in Postgres version.EE Unit and Cypress
All
pass./ok-to-test tags="@tag.All"
Tip
馃煝 馃煝 馃煝 All cypress tests have passed! 馃帀 馃帀 馃帀
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8904366086
Commit: 1546722
Cypress dashboard url: Click here!