Skip to content

Conversation

wenxi-zeng
Copy link
Contributor

  • added enableIntegration, disableIntegration, disableCloudIntegrations, enableCloudIntegrations
  • added updateJsonObject to JSON wrapper for easier content manipulation
  • added unit tests
  • fixed a bug in intercom integration
  • manuallyEnableDestination is already implemented in pr Integrations Logic fix + Copy mechanism for payloads #59

@wenxi-zeng wenxi-zeng requested a review from prayansh November 30, 2021 18:01
Copy link
Contributor

@prayansh prayansh left a comment

Choose a reason for hiding this comment

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

looks good

return JsonObject(content)
}

operator fun MutableMap<String, JsonElement>.set(key:String, value: String?) {
Copy link
Contributor

Choose a reason for hiding this comment

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

would adding these APIs on such a widely used type (like MutableMap) have consequences?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah. that's a valid concern. the good thing is that it only overrides set operator for MutableMap<String, JsonElement>, not the other types. I tried MutableMap<String, String>, it's not impacted. so the impact is limited.

@wenxi-zeng wenxi-zeng merged commit d3a1a99 into main Nov 30, 2021
@wenxi-zeng wenxi-zeng deleted the wenxi/convenience-methods-and-misses-for-plugin-authors branch November 30, 2021 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants