Commit Graph

16927 Commits

Author SHA1 Message Date
Valera Melnikov
9cf8d3e6b9
fix: add changes to codeowners file (#32251)
## Description
Fix codeowners file

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


- **Chores**
- Updated the `CODEOWNERS` file to reassign directory ownership for
improved management.
	- Reassigned ownership to `wds-team` and `anvil-team`.
- Updated file paths and corresponding owners for better ownership
management.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ashok Kumar M <35134347+marks0351@users.noreply.github.com>
2024-04-01 11:49:01 +03:00
Rajat Agrawal
8eb4b2d618
chore: Add telemetry for monitoring evaluations processing (#32222)
This PR adds more monitoring to evaluations.

> [!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
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8503175561>
> Commit: `7bc70d14f103f671e0c60f5bcc5756be7c9bf8c7`
> Cypress dashboard: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8503175561&attempt=2&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/ClientSide/Widgets/Form/FormWidget_With_RichTextEditor_spec.js
</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  -->













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


- **New Features**
- Enhanced tracing capabilities for performance analysis, providing
detailed telemetry for different sections in the app.
- Improved tracing functionality in tree evaluation processes with
additional telemetry parameters and profiling.

- **Refactor**
- Updated the `startNestedSpan` function to accept an optional
`parentSpan` for more flexible tracing setups.
- Integrated telemetry enhancements in data tree generation and
evaluation processes for better performance insights.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-01 11:58:07 +05:30
balajisoundar
e2b08140f4
chore: fix text editor widget cypress spec (#32271)
## Automation

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

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8504305878>
> Commit: `277169acb8b7b5b9ef9903159fe7ac40bd04e64a`
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8504305878&attempt=1"
target="_blank">Click here!</a>
> All cypress tests have passed 🎉🎉🎉

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





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


- **Tests**
- Updated test descriptions and added a delay for improved reliability
in the RichTextEditor widget within the Form Widget.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-01 11:25:21 +05:30
Shrikant Sharat Kandula
6bbf33bf9f
chore: Simpler sequence implementation (#32264)
Don't use MongoDB API to decide the key name to use for the sequence
name. This API is currently used only for datasources, so this
implementation will be compatible with both MongoDB and Postgres.

The actual sequence number generation, in the `getNext` method, will
basically need to be rewritten in the Postgres branch.
2024-04-01 10:17:23 +05:30
Shrikant Sharat Kandula
c6a3afdeac
test: Remove MongoDB API injections in tests (#32245) 2024-04-01 09:39:04 +05:30
Shrikant Sharat Kandula
efc0428682
ci: Checkout repo so package.json is available 2024-03-31 08:21:39 +05:30
Shrikant Sharat Kandula
970ac5d912
chore: Remove unused getIdCriteria 2024-03-30 20:46:50 +05:30
Shrikant Sharat Kandula
f9651fba37
test: Fix button label to create new JS Object (#32262)
Reverting label change from
https://github.com/appsmithorg/appsmith/pull/32226.
2024-03-30 12:07:40 +05:30
Shrikant Sharat Kandula
7e18b9e9c2
chore: Remove BaseController on ThemeControllerCE (#32243)
Continuation of https://github.com/appsmithorg/appsmith/pull/32216, for
`ThemeControllerCE`.

Server and Cypress Sanity passed on EE.
No conflicts or extra changes needed on EE for build to pass.
2024-03-29 17:05:59 +05:30
Pawan Kumar
2dbe72068a
fix: separator styles missing from action group menu (#32213)
This PR adds styles for separator in the action group menu

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

- **New Features**
- Enhanced menu items in the design system to support separators and
icons, improving visual organization and interaction.
- **Style**
- Updated styling for menu items with separators to improve visual
clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Pawan Kumar <pawankumar@Pawans-MacBook-Pro-2.local>
2024-03-29 14:29:11 +03:00
Somangshu Goswami
d7e6584d47
fix: refactored currency code data to remove duplication problem (#32242)
## Description
we are refactoring the data used for currency input widget such that
there are no duplicate entries and also add missing general entries.
[Internal conversation
ref](https://theappsmith.slack.com/archives/C025SE88KNE/p1711612283549969)

Fixes #31806
2024-03-29 16:12:23 +05:30
Sumit Kumar
c92dc4775e
chore: migrate CacheableRepositoryHelperCEImpl to use BridgeQuery (#32207) 2024-03-29 15:43:31 +05:30
dependabot[bot]
af71de91fe
chore(deps): bump express from 4.18.2 to 4.19.2 in /app/client (#32070)
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to
4.19.2.


Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 14:34:03 +05:30
balajisoundar
18882e7559
chore: Update @tinymce/tinymce-react (#32120)
## Automation

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

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

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







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

- **New Features**
- Enhanced Rich Text Editor with improved styling, additional toolbar
options, and updated functionality.
- **Style**
- Updated styles for the Rich Text Editor, including toolbar, editor
header, and various elements within the editor.
- **Chores**
	- Removed unused plugins from the Rich Text Editor.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-29 12:07:35 +05:30
Parthvi
714d8e3539
test: Update common methods and locators (#32226)
## Description
This PR updates common method and locator which is being used in EE PR
here: https://github.com/appsmithorg/appsmith-ee/pull/3247

Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!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=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

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

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


- **Refactor**
- Improved visibility of certain methods and properties in the
`DataSources` and `JSEditor` classes for testing purposes.
- Updated a selector in the `JSEditor` to accurately target "New JS
Object."

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-29 12:04:40 +05:30
Hetu Nandu
7dac89098c
chore: Add Editor Pane segments context switch tests (#32224)
## Description

Adds tests for Editor Pane Segment's Context Switch where

- If no item was selected before, an item is always selected by default
- If an item was previously selected, it is selected again when switched
to the segment
- Add pane state is not stored and switching to the segment will not
show that state


Fixes #31873

## Automation

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

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8477425225>
> Commit: `af8469b31f3e0ab26c9f80fcd0bf9745b16a9ce5`
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8477425225&attempt=2"
target="_blank">Click here!</a>
> All cypress tests have passed 🎉🎉🎉

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






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


- **Tests**
- Introduced tests for editor segment context switching in an IDE,
including item selection retention and behavior of the "add" state
between segment switches.
- **Refactor**
- Modified the `ImportApp` function call to enhance context maintenance
and focus during app import.
- **New Features**
- Enhanced IDE navigation by adding CSS selectors for active items and
implementing a method to retrieve the selected item in the editor's left
pane.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-29 11:48:59 +05:30
Shrikant Sharat Kandula
af69c69f5c
chore: Don't use .subList like it's a List (#32238)
Instead or getting the sub-list and returning that, which would be an
instance of `ArrayList$SubList`, we instead remove the extra items in
the original `ArrayList` and return that itself.

This is because the `SubList` objects are just _views_ on the underlying
`ArrayList` object, and cannot be serialized by Hibernate directly.
2024-03-29 11:34:01 +05:30
Shrikant Sharat Kandula
77e7ebcd3d
chore: Remove BaseController on ApplicationControllerCE (#32236)
Continuation of https://github.com/appsmithorg/appsmith/pull/32216, for
`ApplicationController`.

Server and Cypress (Sanity and Git tags) tests verified to pass on EE.
No conflicts going to EE and no extra changes needed for build to pass.
2024-03-29 10:49:39 +05:30
Shrikant Sharat Kandula
adc999f542
chore: Remove varargs and List signatures for .criteria() (#32208)
These signatures don't translate very to the Postgres branch.

Server and Cypress tests verified on EE.
2024-03-29 09:20:47 +05:30
Shrikant Sharat Kandula
4d2594b894
chore: Remove BaseController on UserControllerCE (#32216)
The `BaseController` is used by only five controller classes. Regarding
the `GET /` route in the base controller,

- two override and block it (`Application` and `User`).
- two override with a custom implementation and logic, completely
ignoring the `params` object (`Theme` and `Workspace`).
- one appears to be using it (`Plugin`).

This makes it confusing and hard-to-maintain. This common route is
overridden more times than it's reused.

This PR removes the `BaseController` on `UserController` as step 1. We
intend to remove it from the remaining 3 in subsequent PRs.

Server and Cypress tests verified on EE.
2024-03-29 08:08:48 +05:30
Nidhi
a763a226a3
fix: Make sure order of vertices does not make opl calculations flaky (#32227) 2024-03-29 07:40:28 +05:30
Aman Agarwal
af184f3cb0
feat: add edit option in suggested queries in hint commands (#32076)
## Description
This PR introduces a new way to edit the queries directly from slash
hint commands that edit button appears on hover of the hint. This also
introduces an event `EDIT_ACTION_CLICK` as emitted from different other
places of our application with all the similar properties except the
`from` : `SlashCommandHint`

<img width="566" alt="Screenshot 2024-03-27 at 12 45 09 AM"
src="https://github.com/appsmithorg/appsmith/assets/7565635/34f0e226-d45a-482b-8484-7e1fdc672a04">


Fixes #32075
_or_  
Fixes `Issue URL`
> [!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
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8465758601>
> Commit: `cff14b0006441274e182d17ff66603219971ddbd`
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8465758601&attempt=2"
target="_blank">Click here!</a>
> All cypress tests have passed 🎉🎉🎉

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







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


- **New Features**
- Enhanced the code editor with improved command suggestions and quick
command generation, including URL and event parameter handling.
	- Introduced new styling for command suggestions in the code editor.
- **Refactor**
- Updated functions and components for better handling and mapping of
plugins within the code editor.
- **Chores**
- Added necessary imports and updated the usage of various components
and utilities to support new features and improvements.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: “sneha122” <“sneha@appsmith.com”>
2024-03-28 19:24:33 +05:30
Ankita Kinger
47e3aebb8b
chore: Update the getNextEntityName selector to re-use it in copy/move module instances feature on EE (#32223)
## Description

Update the `getNextEntityName` selector to re-use it in copy/move module
instances feature on EE.

Fixes [#31969](https://github.com/appsmithorg/appsmith/issues/31969)

## Automation

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

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8466748833>
> Commit: `703764c3d460530372121e58445990e1d40bc7f8`
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8466748833&attempt=1"
target="_blank">Click here!</a>
> All cypress tests have passed 🎉🎉🎉

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



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

## Summary by CodeRabbit


- **Refactor**
- Enhanced the entity naming functionality to support more flexible
naming conventions.


<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-28 18:20:25 +05:30
Vemparala Surya Vamsi
6c58b40d0e
chore: Capture telemetry around diff and serialise operation (#32124)
## Description
Capture telemetry around compute diff between old and new states, also
capture the serialise cost of the updates.

Fixes #32123

## Automation

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

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8456623922>
> Commit: `9c1be427190586b155ff5daecfe190f743bacc63`
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8456623922&attempt=3"
target="_blank">Click here!</a>
> All cypress tests have passed 🎉🎉🎉

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






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

- **Refactor**
- Improved and optimized update generation logic in the evaluation
process.
- Enhanced handling of undefined values, function properties, and
serialization errors, including `BigInt` and `moment` objects.
	- Ensured more consistent handling of `moment` objects during updates.
- **Tests**
- Added and modified tests to cover new scenarios in update generation
and data manipulation, including handling of `EvaluationError`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-28 15:57:50 +05:30
Nikhil Nandagopal
783a9e2fa9 Updated Label Config 2024-03-28 14:35:16 +05:30
Nikhil Nandagopal
caab336853 Updated Label Config 2024-03-28 14:34:07 +05:30
Nikhil Nandagopal
625af1c826 Updated Label Config 2024-03-28 14:33:46 +05:30
Nikhil Nandagopal
5c68027743 Updated Label Config 2024-03-28 14:33:07 +05:30
Nikhil Nandagopal
7315bcaabb Updated Label Config 2024-03-28 14:31:00 +05:30
Nikhil Nandagopal
be1c2a75c3 Updated Label Config 2024-03-28 14:30:28 +05:30
Nikhil Nandagopal
7af547c8c6 Updated Label Config 2024-03-28 14:27:33 +05:30
Nikhil Nandagopal
2e495a6deb Updated Label Config 2024-03-28 14:26:10 +05:30
Nikhil Nandagopal
d4cafb15bd Updated Label Config 2024-03-28 14:25:54 +05:30
Nikhil Nandagopal
c8a9c4f790 Updated Label Config 2024-03-28 14:25:44 +05:30
Shrikant Sharat Kandula
773d0e718d
fix: Limit email length as per RFC 5321 (#32155)
Adds a length check on validating email addresses, as per [RFC
5321](https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1),
quoting here:

>
[4.5.3.1.1](https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1.1).
Local-part
> 
>    The maximum total length of a user name or other local-part is 64
>    octets.
> 
>
[4.5.3.1.2](https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1.2).
Domain
> 
>    The maximum total length of a domain name or number is 255 octets.
2024-03-28 13:35:25 +05:30
Shrikant Sharat Kandula
38cefce9af
ci: Add dashboard link in PR comment (#32205)
[Slack
conversation](https://theappsmith.slack.com/archives/C0134BAVDB4/p1711545944961399).
2024-03-28 13:27:30 +05:30
Rudraprasad Das
30a995844e
fix: reinstating multienv switcher for view mode (#31699)
## Description
Adds multiple env switcher to the bottom bar

Fixes #31266 

## Automation
/ok-to-test tags="@tag.MultiEnv"

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

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


















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

- **New Features**
- Introduced a `BottomBar` component in the `AppViewer` for enhanced
navigation and quick actions, conditionally displayed based on multiple
environments and specific feature flags.
- Added a custom React hook `useShowEnvSwitcher` to determine the
visibility of the environment switcher based on various conditions.
- **Refactor**
- Improved visibility of the `SwitchEnvironment` component and
`QuickGitActions` by adjusting their rendering logic, ensuring they are
always visible when `viewMode` is false.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-28 12:09:13 +05:30
Nikhil Nandagopal
da3e85aca2 Updated Label Config 2024-03-28 11:43:40 +05:30
Nikhil Nandagopal
60a04ab071 Updated Label Config 2024-03-28 11:42:59 +05:30
Hetu Nandu
7c945b35ee
fix: URL tests using wrong urlBuilder import (#32132)
## Description

Fix urlBuilder wrong import causing test failure in EE


## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

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

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

## Summary by CodeRabbit

- **Refactor**
- Updated URL building functionality in the editor for improved
consistency and maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-28 10:58:50 +05:30
Shrikant Sharat Kandula
eba60585ab
chore: Move StringUtils to interfaces module (#32129)
This is a utility class with static methods, and we need them in domain
classes in the `interfaces` module as well.
2024-03-28 10:53:41 +05:30
Shrikant Sharat Kandula
062b67642b
chore: No X-Request-Id handling (#32128)
1. Don't copy request's `X-Request-Id` value in the response.
2. If missing in request, don't add a generated values either, but do
retain in internal request context.
2024-03-28 10:51:07 +05:30
Ankita Kinger
cc57e4cf1b
fix: Updating the height of inputs form on the right pane of modules editor (#32127)
## Description

Updating the height of inputs form on the right pane of modules editor.

Fixes [#31955](https://github.com/appsmithorg/appsmith/issues/31955) 

## Automation

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

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8459420351>
> Commit: `86cf19080a9460b5464cacb319a7b33ef255ef12`
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8459420351&attempt=2"
target="_blank">Click here!</a>
> All cypress tests have passed 🎉🎉🎉

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




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

## Summary by CodeRabbit

- **Style**
- Updated the `ActionSidebar` component to have a full height, enhancing
its appearance and usability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-28 10:39:23 +05:30
Nikhil Nandagopal
46ce46455f Updated Label Config 2024-03-28 10:33:43 +05:30
Nikhil Nandagopal
9fec07a2bc Updated Label Config 2024-03-28 10:33:14 +05:30
Nikhil Nandagopal
6ded9350cc Updated Label Config 2024-03-28 10:32:22 +05:30
Nikhil Nandagopal
b6786026b5 Updated Label Config 2024-03-28 10:31:55 +05:30
Nikhil Nandagopal
826a99e717 Updated Label Config 2024-03-28 10:31:37 +05:30
Nikhil Nandagopal
b92d44ce40 Updated Label Config 2024-03-28 10:31:13 +05:30
Manish Kumar
8d45847b11
chore: git remote autocommit (#32111)
## Description
 - This Pr adds a remote comparison check in `autocommit` flow.
- When the remote is ahead of the local repository, the application
should not be commited to remote, local should pull the changes first
and then the respective commit & push should happen. Likewise in
autocommit the remote check has been placed.
- The check is meant to silently abort the autocommit if the remote is
found to be ahead of the local.

Fixes https://github.com/appsmithorg/appsmith/issues/32110

## Automation

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

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8451614719>
> Commit: `4f696b752a8f3f847f2e6f8ff5acf9ef0e67a276`
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8451614719&attempt=2"
target="_blank">Click here!</a>
> All cypress tests have passed 🎉🎉🎉

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



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

## Summary by CodeRabbit

- **New Features**
- Enhanced auto-commit functionality for Git integration, including
better handling based on branch and application states, and improved
remote changes fetching.
- **Refactor**
- Refactored Git-related services to support new auto-commit logic and
remote changes fetching.
- **Tests**
- Added new tests for the updated auto-commit functionality, ensuring it
behaves as expected under various scenarios.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-28 10:30:13 +05:30