PromucFlow_constructor/app/server/appsmith-plugins
Manish Kumar 1ca691de09
fix: re-fix for issue 23456 (#30347)
## Description
> Now JSON is rendered in ordered format 

- When JSON used to be parsed, the order of the keys were
randomly/alphabetically ordered. some users needed these to be
unmodified for sending checksum as headers, the previous fix for issue
#23456 only dealt with first order trees.
In this Pr we have used the Gson to parse the JSONs. GSON natively used
linkedHashMaps for their JSONObjects, which preserves their keys order.
One downside for this is that GSON is a strict parser which parses json
only according to RFC4627.

- If GSON fails to parse the json (may happen because of invalid json)
we will fallback to older parsing strategy which is lenient in parsing
JSONs.

#### PR fixes following issue(s)
Fixes #23456

#### How Has This Been Tested?
- [x] Manual
- [x] JUnit

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

## Summary by CodeRabbit

- **New Features**
- Enhanced JSON parsing to ensure the order of keys is preserved,
improving data consistency.
	- Introduced support for new data types in the API plugin.

- **Refactor**
	- Updated JSON handling logic for better performance and reliability.

- **Tests**
- Modified tests to align with the updated JSON parsing and header
order.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-01-19 13:37:25 +07:00
..
amazons3Plugin fix: s3 endpoint url field while importing json (#29424) 2023-12-08 11:10:39 +05:30
anthropicPlugin fix: using data key for messages in AI plugins (#29639) 2023-12-15 13:44:43 +05:30
appsmithAiPlugin feat: Appsmith AI as datasource plugin (#29794) 2024-01-16 20:19:08 +05:30
arangoDBPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
awsLambdaPlugin chore: Fixing failing test cases in AWS lambda (#29854) 2023-12-26 12:22:35 +05:30
databricksPlugin fix: Databricks update, insert and delete queries working by handling empty resultset (#30006) 2024-01-03 20:41:26 +05:30
dynamoPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
elasticSearchPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
firestorePlugin chore(deps): Update Guava in Firestore and Google Sheets plugins (#27203) 2023-09-14 15:32:54 +05:30
googleAiPlugin fix: using data key for messages in AI plugins (#29639) 2023-12-15 13:44:43 +05:30
googleSheetsPlugin chore: GSheet Internal error logging updated (#29897) 2023-12-28 12:49:21 +05:30
graphqlPlugin chore(deps): Upgrade graphql-java version to gev fix for CVE-2023-2976 (#27400) 2023-09-19 09:09:29 +05:30
jsPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
mongoPlugin fix: removed ab_mock_mongo_schema_enabled, ab_gsheet_schema_enabled flag code (#30113) 2024-01-16 14:00:51 +05:30
mssqlPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
mysqlPlugin fix: sorting schema options alphabetically (#29460) 2023-12-13 13:21:23 +05:30
openAiPlugin feat: Databricks plugin (#29746) 2023-12-26 10:04:09 +05:30
oraclePlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
postgresPlugin fix: sorting schema options alphabetically (#29460) 2023-12-13 13:21:23 +05:30
redisPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
redshiftPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
restApiPlugin fix: re-fix for issue 23456 (#30347) 2024-01-19 13:37:25 +07:00
saasPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
smtpPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
snowflakePlugin feat: Add isSuggested value to templates for all plugins (#26623) 2023-08-30 11:49:25 +01:00
pom.xml feat: Appsmith AI as datasource plugin (#29794) 2024-01-16 20:19:08 +05:30