PromucFlow_constructor/app/server/appsmith-plugins
sneha122 d664a81b6a
fix: graphQL bindings issue resolved (#32760)
## Description
This PR resolved issue with graphQL, where if we create a graphQL with a
binding and run such query, it returns with error response saying the
query execution has timed out. A user had raised this issue
[here](https://discord.com/channels/725602949748752515/1230134890704539709).

### Root cause:
The issue was not at all reproducible on local, but It was continuously
erroring out on production, release and even DPs. From the logs, we can
see that issue was with `GraphQLDataTypeUtils.java` class. This class
was somehow not getting initialised. This was due to recent changes made
in [PR](https://github.com/appsmithorg/appsmith/pull/32595), where the
version for package was updated to v2.17.0, on local it was compiling
properly but on release, production and other builds, it still seems to
be referencing to the older version of it, we do not know the reason of
it right now, we should further investigate this. But since this was a
critical issue and we need to get user unblocked, we are going ahead
with an alternate fix where we have moved the initialisation of
objectMapper to serialisationUtils.java file.

![Screenshot 2024-04-18 at 11 22 55
AM](https://github.com/appsmithorg/appsmith/assets/30018882/9735aaed-07c2-402b-a798-d7a4c1b67a19)

### Steps to reproduce the issue:
1. Drag and drop a text widget on canvas, change text value to `US`
2. Create a new graphQL query with url as
`https://countries.trevorblades.com/`
3. Add following in the query body and execute the API

```
{
  country(code: {{Text1.text}}) {
    name
	}
}
```


Fixes #32748
_or_  
Fixes [`Issue
URL`](https://github.com/appsmithorg/appsmith/issues/32748)
> [!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  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8735651316>
> Commit: a03f29f8078398a4c317e852667270c0810bddea
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8735651316&attempt=2"
target="_blank">Click here!</a>

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





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

- **Refactor**
- Updated serialization configuration across various data types and
plugins to enhance functionality and compatibility using a centralized
utility method.
- **New Features**
- Introduced a new method to standardize object mapper configurations,
improving serialization processes across the application.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: “sneha122” <“sneha@appsmith.com”>
2024-04-18 17:36:54 +05:30
..
amazons3Plugin fix: commands title changed to command for each datasource query editor forms (#32526) 2024-04-10 17:05:01 +05:30
anthropicPlugin feat: Vision models support in Anthropic (#32103) 2024-04-16 13:41:28 +00:00
appsmithAiPlugin chore: Add after delete hook for Appsmith AI datasource (#31466) 2024-03-19 12:52:32 +05:30
arangoDBPlugin fix: reverting the default port numbers for the datasources (#32726) 2024-04-17 13:44:18 +05:30
awsLambdaPlugin fix: commands title changed to command for each datasource query editor forms (#32526) 2024-04-10 17:05:01 +05:30
databricksPlugin fix: Making userTag a hidden field to not expose it as a user configurable option with Appsmith being the default value (#31792) 2024-03-14 16:18:44 +05:30
dynamoPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
elasticSearchPlugin fix: reverting the default port numbers for the datasources (#32726) 2024-04-17 13:44:18 +05:30
firestorePlugin fix: graphQL bindings issue resolved (#32760) 2024-04-18 17:36:54 +05:30
googleAiPlugin fix: commands title changed to command for each datasource query editor forms (#32526) 2024-04-10 17:05:01 +05:30
googleSheetsPlugin fix: graphQL bindings issue resolved (#32760) 2024-04-18 17:36:54 +05:30
graphqlPlugin fix: graphQL bindings issue resolved (#32760) 2024-04-18 17:36:54 +05:30
jsPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
mongoPlugin fix: graphQL bindings issue resolved (#32760) 2024-04-18 17:36:54 +05:30
mssqlPlugin fix: reverting the default port numbers for the datasources (#32726) 2024-04-17 13:44:18 +05:30
mysqlPlugin fix: graphQL bindings issue resolved (#32760) 2024-04-18 17:36:54 +05:30
openAiPlugin chore: Fix warnings on @EqualsAndHashCode (#32667) 2024-04-15 13:46:37 +05:30
oraclePlugin fix: reverting the default port numbers for the datasources (#32726) 2024-04-17 13:44:18 +05:30
postgresPlugin fix: reverting the default port numbers for the datasources (#32726) 2024-04-17 13:44:18 +05:30
redisPlugin fix: reverting the default port numbers for the datasources (#32726) 2024-04-17 13:44:18 +05:30
redshiftPlugin fix: reverting the default port numbers for the datasources (#32726) 2024-04-17 13:44:18 +05:30
restApiPlugin test: Add AssertJ for plugins, for better assertions (#31380) 2024-03-04 07:33:45 +05:30
saasPlugin fix: graphQL bindings issue resolved (#32760) 2024-04-18 17:36:54 +05:30
smtpPlugin fix: reverting the default port numbers for the datasources (#32726) 2024-04-17 13:44:18 +05:30
snowflakePlugin feat: Add isSuggested value to templates for all plugins (#26623) 2023-08-30 11:49:25 +01:00
pom.xml test: Add AssertJ for plugins, for better assertions (#31380) 2024-03-04 07:33:45 +05:30