Skip to content

feat: clean up datasource review page#34348

Merged
jacquesikot merged 7 commits intoreleasefrom
feat/clean-datasource-review-page
Jul 2, 2024
Merged

feat: clean up datasource review page#34348
jacquesikot merged 7 commits intoreleasefrom
feat/clean-datasource-review-page

Conversation

@jacquesikot
Copy link
Contributor

@jacquesikot jacquesikot commented Jun 19, 2024

Description

Remove the "Generate new page" button from the datasource review page and make the "New Query" button a primary button. Tests related to the removed generate CRUD page feature have been removed.

Fixes #31801

Automation

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

🔍 Cypress test results

Tip

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

Communication

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

  • Yes
  • No

Summary by CodeRabbit

  • Bug Fixes

    • Removed outdated test cases that were no longer relevant or causing issues in MongoDB and S3 CRUD operations.
  • New Tests

    • Added HideGeneratePageButton.test.tsx to verify the visibility of buttons based on feature flags and user permissions.
  • Refactor

    • Improved code structure by reordering imports and simplifying logic in various datasource-related components.
    • Removed deprecated methods and functions related to page generation from datasource components.

@jacquesikot jacquesikot requested a review from rahulbarwal June 19, 2024 13:45
@jacquesikot jacquesikot self-assigned this Jun 19, 2024
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 19, 2024

Walkthrough

The updates primarily involve the removal of the functionality for generating CRUD pages from various components related to data source management in the app, including changes in test cases, hooks, and UI elements. This simplifies the data source review processes by eliminating the "Generate Page/CRUD" feature.

Changes

Files/Components Change Summaries
.../QueryPane/Mongo1_spec.ts Removed test case for generating CRUD for a new collection and deploying "AuthorNAwards".
.../QueryPane/S3_2_spec.ts Deleted the test case related to several S3 CRUD issues including file upload flows.
.../support/Pages/DataSources.ts Eliminated the GeneratePageForDS method used to generate template or page for a datasource.
.../src/ce/hooks/datasourceEditorHooks.tsx Restructured imports, added feature flag imports, and adjusted logic for header actions related to datasource creation.
.../src/pages/Editor/DataSourceEditor/DSFormHeader.tsx Removed the generatePageButton from header actions rendering logic.
.../src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx Removed unused imports, variables, and simplified the logic around generate page action.
.../src/pages/Editor/DatasourceInfo/GoogleSheetSchema.tsx Reordered imports, adjusted component structure, removed functions for generating pages, and added feature flag constant.
.../DatasourceInfo/HideGeneratePageButton.test.tsx Introduced new tests to ensure buttons are displayed/hidden based on feature flags and user permissions.

Assessment against linked issues

Objective Addressed Explanation
Remove Generate CRUD page button (#31801)

Poem

In code, we often change the tides,
We clean the streams where functions hide.
No CRUD to deploy and no pages to spawn,
Our datasource now greets the dawn.
With flags and mocks, our tests delight,
Simplified views in morning's light. 🌄

Warning

Review ran into problems

Problems (1)
  • Git: Failed to clone repository. Please contact CodeRabbit support.

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.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • 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/schema.v2.json

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 Activation for Activation group Activation Pod for Activation group Ballpark: S ~2xDev in 1xSprint Task A simple Todo Templates Templates Product Issues related to Templates labels Jun 19, 2024
@jacquesikot jacquesikot marked this pull request as ready for review June 19, 2024 13:46
@jacquesikot jacquesikot added the ok-to-test Required label for CI label Jun 19, 2024
@github-actions github-actions bot added the Enhancement New feature or request label Jun 19, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Outside diff range and nitpick comments (6)
app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx (1)

Line range hint 76-76: Consider using optional chaining here to make the code more robust and prevent potential runtime errors.

- datasourceStructure && datasourceStructure.tables && datasourceStructure.tables.length > 0
+ datasourceStructure?.tables?.length > 0
app/client/src/pages/Editor/DataSourceEditor/DSFormHeader.tsx (1)

Line range hint 74-74: The PluginImage component is missing an alt attribute. Adding an alt attribute improves accessibility by providing a text alternative for screen readers.

- <img {...props} />
+ <img alt="Plugin" {...props} />
Tools
Biome

[error] 225-225: Change to an optional chain. (lint/complexity/useOptionalChain)

Unsafe fix: Change to an optional chain.

app/client/cypress/e2e/Regression/ServerSide/QueryPane/S3_2_spec.ts (1)

Line range hint 49-59: Convert these traditional function expressions to arrow functions to improve consistency and leverage lexical scoping where this is not required.

- function () {
+ () => {

Also applies to: 61-178, 249-304, 25-385

app/client/cypress/e2e/Regression/ServerSide/QueryPane/Mongo1_spec.ts (1)

Line range hint 30-35: Consider refactoring this function expression to use an arrow function for better readability and to align with ES6+ standards.

- beforeEach(function () {
+ beforeEach(() => {
app/client/cypress/support/Pages/DataSources.ts (2)

Line range hint 1197-1197: Avoid redundant double-negation in boolean expressions.

- if (!!preDSConfigAction) {
+ if (preDSConfigAction) {

The double negation (!!) is unnecessary here as the value is already being coerced into a boolean by the if statement's condition.


Line range hint 1197-1197: The use of double negation (!!) is unnecessary.

- if (!!preDSConfigAction) {
+ if (preDSConfigAction) {

This change simplifies the condition by removing the redundant double negation, making the code cleaner and easier to understand.

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3637246 and 31a45f6.

Files selected for processing (7)
  • app/client/cypress/e2e/Regression/ServerSide/QueryPane/Mongo1_spec.ts (1 hunks)
  • app/client/cypress/e2e/Regression/ServerSide/QueryPane/S3_2_spec.ts (1 hunks)
  • app/client/cypress/support/Pages/DataSources.ts (2 hunks)
  • app/client/src/ce/hooks/datasourceEditorHooks.tsx (3 hunks)
  • app/client/src/pages/Editor/DataSourceEditor/DSFormHeader.tsx (1 hunks)
  • app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx (4 hunks)
  • app/client/src/pages/Editor/DatasourceInfo/GoogleSheetSchema.tsx (7 hunks)
Files skipped from review due to trivial changes (1)
  • app/client/src/pages/Editor/DatasourceInfo/GoogleSheetSchema.tsx
Additional context used
Biome
app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx

[error] 76-76: Change to an optional chain. (lint/complexity/useOptionalChain)

Unsafe fix: Change to an optional chain.

app/client/src/pages/Editor/DataSourceEditor/DSFormHeader.tsx

[error] 74-74: Provide a text alternative through the alt, aria-label or aria-labelledby attribute (lint/a11y/useAltText)

Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page.


[error] 225-225: Change to an optional chain. (lint/complexity/useOptionalChain)

Unsafe fix: Change to an optional chain.

app/client/cypress/e2e/Regression/ServerSide/QueryPane/S3_2_spec.ts

[error] 49-59: This function expression can be turned into an arrow function. (lint/complexity/useArrowFunction)

Function expressions that don't use this can be turned into arrow functions.
Safe fix: Use an arrow function instead.


[error] 61-178: This function expression can be turned into an arrow function. (lint/complexity/useArrowFunction)

Function expressions that don't use this can be turned into arrow functions.
Safe fix: Use an arrow function instead.


[error] 249-304: This function expression can be turned into an arrow function. (lint/complexity/useArrowFunction)

Function expressions that don't use this can be turned into arrow functions.
Safe fix: Use an arrow function instead.


[error] 25-385: This function expression can be turned into an arrow function. (lint/complexity/useArrowFunction)

Function expressions that don't use this can be turned into arrow functions.
Safe fix: Use an arrow function instead.

app/client/cypress/e2e/Regression/ServerSide/QueryPane/Mongo1_spec.ts

[error] 30-35: This function expression can be turned into an arrow function. (lint/complexity/useArrowFunction)

Function expressions that don't use this can be turned into arrow functions.
Safe fix: Use an arrow function instead.


[error] 741-760: This function expression can be turned into an arrow function. (lint/complexity/useArrowFunction)

Function expressions that don't use this can be turned into arrow functions.
Safe fix: Use an arrow function instead.

app/client/cypress/support/Pages/DataSources.ts

[error] 1197-1197: Avoid redundant double-negation. (lint/complexity/noExtraBooleanCast)

It is not necessary to use double-negation when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant double-negation

Additional comments not posted (11)
app/client/src/ce/hooks/datasourceEditorHooks.tsx (6)

6-8: Reordered and added imports related to feature flags and permissions.


11-13: Added new utility imports for permissions. Ensure that these utilities are used appropriately in the hook logic.


29-29: Introduced a new interface HeaderActionProps to define the properties expected by the useHeaderActions hook.


Line range hint 44-44: The use of the useFeatureFlag hook to determine feature availability is a good practice. It helps in making the feature management more dynamic and manageable.


Line range hint 78-78: The routeToGeneratePage function encapsulates navigation logic, which is a good separation of concerns. It uses history.push which is a standard approach for programmatic navigation in React applications.


59-59: The conditional rendering logic inside the useHeaderActions hook appears sound. However, ensure that the showGenerateButton condition aligns with the business requirements, as the button's visibility is contingent upon this flag.

Verification successful

To verify the alignment of the showGenerateButton condition with business requirements, we need to search for its usage within the TypeScript/JavaScript codebase. The previous attempt incorrectly specified the file type as Python. We'll correct this and run the script again to gather the necessary information.


The search results show that showGenerateButton is used within the datasourceEditorHooks.tsx file. To ensure that the showGenerateButton condition aligns with business requirements, we need to understand how useShowPageGenerationOnHeader is defined and used.

Let's proceed by examining the implementation and usage of useShowPageGenerationOnHeader.


The useShowPageGenerationOnHeader hook is defined in app/client/src/pages/Editor/DataSourceEditor/hooks.ts and is imported and used in app/client/src/ce/hooks/datasourceEditorHooks.tsx. To verify the business logic alignment, we need to examine the implementation of useShowPageGenerationOnHeader.

Let's inspect the content of useShowPageGenerationOnHeader in hooks.ts.


The previous attempt to retrieve the implementation of useShowPageGenerationOnHeader did not produce any output. This might be due to an overly restrictive regex pattern. Let's simplify the pattern to ensure we capture the implementation correctly.


The attempts to retrieve the implementation of useShowPageGenerationOnHeader have not yielded any results. This might be due to the regex pattern not matching the actual code structure or the function being defined in a different manner.

To proceed, let's simplify our approach by directly searching for the function name and extracting its surrounding context to ensure we capture its implementation.


The retrieved context of the useShowPageGenerationOnHeader function shows its implementation. The function checks various conditions such as plugin type, user permissions, and feature flags to determine whether the page generation button should be shown.

Based on this, it appears that the showGenerateButton condition is indeed aligned with several business logic checks, including user permissions and feature flags.

Key points from the implementation:

  • Checks the plugin type.
  • Verifies user permissions.
  • Considers feature flags like isGACEnabled.
  • Specifically checks for Google Sheets plugin and other plugins allowed for preview mode.

Given these checks, the condition seems to be robust and aligned with business requirements.

  • app/client/src/pages/Editor/DataSourceEditor/hooks.ts: Implementation of useShowPageGenerationOnHeader.
  • app/client/src/ce/hooks/datasourceEditorHooks.tsx: Usage of useShowPageGenerationOnHeader.
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the business logic alignment for `showGenerateButton`.

# Test: Search for the function usage. Expect: Only occurances of the new signature.
rg --type python $'showGenerateButton'

Length of output: 68



Script:

#!/bin/bash
# Description: Verify the business logic alignment for `showGenerateButton`.

# Test: Search for the function usage. Expect: Occurrences of `showGenerateButton` in TypeScript/JavaScript files.
rg --type js --type ts 'showGenerateButton'

Length of output: 339



Script:

#!/bin/bash
# Description: Locate the implementation of `useShowPageGenerationOnHeader` and its usage.

# Search for the definition of `useShowPageGenerationOnHeader`.
rg 'function useShowPageGenerationOnHeader' --type js --type ts

# Search for the usage of `useShowPageGenerationOnHeader` across the codebase.
rg 'useShowPageGenerationOnHeader' --type js --type ts

Length of output: 466



Script:

#!/bin/bash
# Description: Retrieve the implementation of `useShowPageGenerationOnHeader`.

# Extract the implementation of `useShowPageGenerationOnHeader` from the hooks.ts file.
rg --multiline --multiline-dotall --type ts --type js 'export const useShowPageGenerationOnHeader = \(\$$_\) => \{[\s\S]*?\}' app/client/src/pages/Editor/DataSourceEditor/hooks.ts

Length of output: 181



Script:

#!/bin/bash
# Description: Retrieve the implementation of `useShowPageGenerationOnHeader`.

# Extract the implementation of `useShowPageGenerationOnHeader` from the hooks.ts file.
rg --multiline --multiline-dotall --type ts --type js 'export const useShowPageGenerationOnHeader = \(\$$_\) => \{[\s\S]*\}' app/client/src/pages/Editor/DataSourceEditor/hooks.ts

Length of output: 180



Script:

#!/bin/bash
# Description: Retrieve the implementation of `useShowPageGenerationOnHeader`.

# Search for the definition of `useShowPageGenerationOnHeader` and extract the surrounding context.
rg --context 20 'useShowPageGenerationOnHeader' app/client/src/pages/Editor/DataSourceEditor/hooks.ts

Length of output: 1297

app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx (3)

1-1: Import statements have been reordered and cleaned up for clarity and maintainability.

Also applies to: 7-7, 8-8


16-16: Use of React hooks (useState, useEffect) is appropriate for managing component state and side effects based on the props and external changes.

Also applies to: 17-17


18-18: The custom hook useDatasourceQuery is used here, ensuring that data fetching logic is encapsulated and reusable, which is a good practice.

app/client/src/pages/Editor/DataSourceEditor/DSFormHeader.tsx (1)

Line range hint 1-1: The file comment stresses the importance of not introducing page and application dependencies in this component, which is a good practice to maintain modularity and reusability.

Tools
Biome

[error] 225-225: Change to an optional chain. (lint/complexity/useOptionalChain)

Unsafe fix: Change to an optional chain.

app/client/cypress/e2e/Regression/ServerSide/QueryPane/Mongo1_spec.ts (1)

Line range hint 741-760: This function appears to be related to the CRUD page generation feature which is being removed. Please verify if this function is still needed or if it should also be removed.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 31a45f6 and 96318c7.

Files selected for processing (3)
  • app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.test.tsx (1 hunks)
  • app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx (2 hunks)
  • app/client/src/pages/Editor/DatasourceInfo/GoogleSheetSchema.tsx (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx
  • app/client/src/pages/Editor/DatasourceInfo/GoogleSheetSchema.tsx
Additional comments not posted (1)
app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.test.tsx (1)

84-102: Test Coverage Verification Recommended

The test ensures that the "generate page" button is not rendered when the feature flag release_drag_drop_building_blocks_enabled is true, which aligns with the PR's objectives. However, consider adding tests to verify behavior when the feature flag is disabled to ensure comprehensive coverage.

#!/bin/bash
# Verify that tests cover scenarios where the feature flag is disabled.
rg --type typescript "release_drag_drop_building_blocks_enabled" "app/client/src/pages/Editor/DatasourceInfo"

@jacquesikot jacquesikot added ok-to-test Required label for CI and removed ok-to-test Required label for CI labels Jun 24, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 96318c7 and b167102.

Files selected for processing (2)
  • app/client/src/ce/hooks/datasourceEditorHooks.tsx (4 hunks)
  • app/client/src/pages/Editor/DatasourceInfo/HideGeneratePageButton.test.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • app/client/src/ce/hooks/datasourceEditorHooks.tsx
Additional context used
Learnings (1)
app/client/src/pages/Editor/DatasourceInfo/HideGeneratePageButton.test.tsx (1)
User: sneha122
PR: appsmithorg/appsmith#29377
File: app/client/src/pages/Editor/IntegrationEditor/CreateNewDatasourceTab.tsx:316-329
Timestamp: 2023-12-07T09:53:32.153Z
Learning: The user clarified that the feature being introduced is experimental and that automated tests will be added once the decision to keep the feature is made. This context is important for future reviews as it explains the absence of tests for certain features under development.
Additional comments not posted (3)
app/client/src/pages/Editor/DatasourceInfo/HideGeneratePageButton.test.tsx (3)

92-111: Confirm feature flag and rendering behavior in test cases.

The test case verifies that the 'generate page' button is not rendered when the feature flag is enabled. This is crucial for ensuring that UI changes are feature-gated properly. However, ensure that there is a counterpart test that checks the behavior when the feature flag is disabled to cover both scenarios.

#!/bin/bash
# Description: Verify the presence of the counterpart test for when the feature flag is disabled.

# Test: Search for tests that check the disabled state of the feature flag.
rg --type tsx --glob '*test.tsx' 'feature flag disabled'

113-138: Ensure comprehensive testing of button attributes.

The test verifies that the 'New Query' button is rendered as primary when the feature flag is enabled. It's important to also verify other attributes such as the button's enabled/disabled state and visibility to ensure comprehensive coverage of the UI behavior.

#!/bin/bash
# Description: Verify the comprehensive testing of all button attributes.

# Test: Search for tests that check other attributes of the 'New Query' button.
rg --type tsx --glob '*test.tsx' 'New Query button attributes'

141-160: Validate non-rendering of the 'generate page' button for GoogleSheetSchema.

The test case correctly checks that the 'generate page' button is not rendered for the GoogleSheetSchema when the feature flag is enabled. Consider adding a test for when the feature flag is disabled to ensure that the button behaves as expected in all configurations.

#!/bin/bash
# Description: Verify the presence of tests for the disabled state of the feature flag for GoogleSheetSchema.

# Test: Search for tests related to GoogleSheetSchema when the feature flag is disabled.
rg --type tsx --glob '*test.tsx' 'GoogleSheetSchema feature flag disabled'

@rahulbarwal
Copy link
Contributor

/build-deploy-preview skip-tests=true

@github-actions
Copy link

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

@github-actions
Copy link

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

@jacquesikot jacquesikot merged commit ec5244c into release Jul 2, 2024
@jacquesikot jacquesikot deleted the feat/clean-datasource-review-page branch July 2, 2024 07:43
@jacquesikot jacquesikot restored the feat/clean-datasource-review-page branch July 2, 2024 11:08
jacquesikot added a commit that referenced this pull request Jul 2, 2024
sharat87 pushed a commit that referenced this pull request Jul 2, 2024
Reverts #34348

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced button display conditions based on plugin permissions in the
Data Source Editor.

- **Bug Fixes**
- Corrected logic for feature flags in Data Source Editor to ensure
consistent button behavior.

- **Refactor**
- Improved import structure and code readability in Data Source Editor
components.

- **Chores**
- Removed outdated feature flag checks for
`releaseDragDropBuildingBlocks` across multiple files.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Shivam-z pushed a commit to Shivam-z/appsmith that referenced this pull request Jul 10, 2024
## Description
Remove the "Generate new page" button from the datasource review page
and make the "New Query" button a primary button. Tests related to the
removed generate CRUD page feature have been removed.


Fixes appsmithorg#31801

## Automation

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

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9644141773>
> Commit: b167102
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9644141773&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Datasource`

<!-- end of auto-generated comment: Cypress test results  -->




## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Removed outdated test cases that were no longer relevant or causing
issues in MongoDB and S3 CRUD operations.

- **New Tests**
- Added `HideGeneratePageButton.test.tsx` to verify the visibility of
buttons based on feature flags and user permissions.

- **Refactor**
- Improved code structure by reordering imports and simplifying logic in
various datasource-related components.
- Removed deprecated methods and functions related to page generation
from datasource components.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Shivam-z pushed a commit to Shivam-z/appsmith that referenced this pull request Jul 10, 2024
Reverts appsmithorg#34348

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced button display conditions based on plugin permissions in the
Data Source Editor.

- **Bug Fixes**
- Corrected logic for feature flags in Data Source Editor to ensure
consistent button behavior.

- **Refactor**
- Improved import structure and code readability in Data Source Editor
components.

- **Chores**
- Removed outdated feature flag checks for
`releaseDragDropBuildingBlocks` across multiple files.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Activation Pod for Activation group Activation for Activation group Ballpark: S ~2xDev in 1xSprint Enhancement New feature or request ok-to-test Required label for CI Task A simple Todo Templates Product Issues related to Templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task: Clean datasource review page

2 participants