chore: replace gson usage with jackson#35680
Conversation
WalkthroughThe recent changes to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ActionExecutionSolutionCEImpl
participant ObjectMapper
User->>ActionExecutionSolutionCEImpl: Request action configuration deep copy
ActionExecutionSolutionCEImpl->>ObjectMapper: Serialize ActionConfiguration to JSON
ObjectMapper-->>ActionExecutionSolutionCEImpl: Return JSON string
ActionExecutionSolutionCEImpl->>ObjectMapper: Deserialize JSON back to ActionConfiguration
ObjectMapper-->>ActionExecutionSolutionCEImpl: Return new ActionConfiguration
ActionExecutionSolutionCEImpl-->>User: Return deep copied ActionConfiguration
Assessment against linked issues
Poem
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 Configuration File (
|
Failed server tests
|
There was a problem hiding this comment.
Actionable comments posted: 1
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java (3 hunks)
Additional comments not posted (1)
app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java (1)
820-820: Verify handling ofdeepCopyActionConfigurationreturn value.Ensure that the return value of
deepCopyActionConfigurationis handled properly, especially since it may returnnull. Consider adding null checks or handling potential exceptions if you refactor the method to throw exceptions.
...ith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java
Show resolved
Hide resolved
Failed server tests
|
Description
This PR replaces the
gsonusage for deepcopyingactionConfigurationobject withJacksonFixes #35696
Automation
/ok-to-test tags="@tag.Sanity"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10393746954
Commit: 599506d
Cypress dashboard.
Tags:
@tag.SanitySpec:
Wed, 14 Aug 2024 19:45:36 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
ActionConfigurationobjects, enhancing action execution reliability.Gsondependency and utilizing Jackson'sObjectMapperfor better code clarity and maintainability.