HubSpot (patch) cache properties per HubSpot portal#475
HubSpot (patch) cache properties per HubSpot portal#475jirihofman merged 3 commits intoAppmixer-ai:devfrom
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the """ WalkthroughThis change updates the HubSpot connector bundle version and its changelog to document recent enhancements. The internal caching mechanism for HubSpot object properties now incorporates the user's HubSpot portal ID into cache keys, ensuring cache segregation per portal. Corresponding tests have been updated to simulate and verify this behavior by including the portal ID in the context and asserting the correct cache key format. Changes
Possibly related PRs
Suggested reviewers
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
src/appmixer/hubspot/bundle.json(2 hunks)src/appmixer/hubspot/commons.js(1 hunks)test/hubspot/commons.test.js(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*/bundle.json`: Every pull request should include changes to the related `bundle.json` file. This file contains version information, so all changes must also include a version ...
**/*/bundle.json: Every pull request should include changes to the relatedbundle.jsonfile. This file contains version information, so all changes must also include a version update.
src/appmixer/hubspot/bundle.json
🔇 Additional comments (4)
test/hubspot/commons.test.js (2)
15-15: Appropriate test context setupGood addition of the HubSpot portal ID to the test context, which properly simulates the authentication context with a hub_id value.
62-64: Good test assertion for cache keyThis assertion correctly verifies that the cache key includes the HubSpot portal ID, ensuring proper cache segregation per portal. The test is well-designed to validate the key functionality added in this PR.
src/appmixer/hubspot/bundle.json (2)
3-3: Version increment follows semantic versioningThe version change from 4.1.1 to 4.1.2 correctly follows semantic versioning for a patch release, which is appropriate for the improvements made.
64-68: Comprehensive changelog entryThe changelog entry effectively communicates the improvements made in this version, including the caching enhancement for Contact and Deal properties with configurability in connector settings.
thanks 🐇 Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Followup to #449
hub_id. The same way as we differentiate trigger subscriptions.Summary by CodeRabbit
New Features
Improvements