Repository navigation
feat: add timestamp list field for airship - #1962
Conversation
WalkthroughThis pull request updates configuration files for the Airship destination. The database configuration now includes an additional Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 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 (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1962 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 53 53
Branches 7 7
=========================================
Hits 53 53 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/configurations/destinations/airship/ui-config.json (1)
26-40: Dynamic Custom Form for Timestamp Attributes is Configured Correctly.The new dynamic custom form section for timestamp attributes is structured consistently with existing form components. The
regexallows flexibility (supporting template strings, environment variables, or up to 100 characters), which meets the PR requirements. As a minor nitpick, consider revising thefooterNotefor clarity (e.g., "Enter the timestamp attributes" instead of "Enter the attributes that are timestamp value") to improve user readability.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/configurations/destinations/airship/db-config.json(1 hunks)src/configurations/destinations/airship/ui-config.json(1 hunks)
🔇 Additional comments (1)
src/configurations/destinations/airship/db-config.json (1)
38-39: Addition of "timestampAttributes" in defaultConfig is well-aligned.By including
"timestampAttributes"in thedefaultConfigarray, the configuration now supports timestamp handling as intended by the PR objectives. Please ensure that any processing logic downstream correctly handles this new field.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
test/data/validation/destinations/airship.json (1)
4-14: Validating New Fields in First Configuration Object
The new fields—apiKey,appKey,dataCenter, andtimestampAttributes—are introduced as intended. ThetimestampAttributesfield is correctly set up as an array of objects, each containing atimestampAttributeproperty.Consider adding tests for edge cases (e.g., an empty
timestampAttributesarray) to further validate the configuration’s behavior.src/configurations/destinations/airship/schema.json (1)
5-30: Introducing New Schema Properties for Airship Integration
The schema now includes four new properties:
apiKey(required): Enforced as a string with the provided regex pattern.appKey: Defined similarly as a string with an appropriate pattern.timestampAttributes: Expected to be an array of objects; however, note that each item only specifies apropertiesblock without a"required"list. If every item must contain thetimestampAttributefield, consider adding arequiredfield within the item definition.dataCenter: Defined as a boolean with a default value offalse.Overall, these additions properly extend the configuration, and allowing
additionalPropertiesremains acceptable for flexibility.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/configurations/destinations/airship/schema.json(2 hunks)test/data/validation/destinations/airship.json(3 hunks)
🔇 Additional comments (3)
test/data/validation/destinations/airship.json (2)
142-143: Ensuring Proper Type Enforcement in Second Configuration Object
In this configuration,timestampAttributesis provided as a string rather than an array. This change is intentional to exercise the negative validation path, as evidenced by the error message"timestampAttributes must be array". Similarly, the error messages foroneTrustCookieCategoriesandketchConsentPurposescorrectly indicate type mismatches.Please double-check that these negative test cases cover all expected improper configurations based on the new schema.
Also applies to: 162-166
170-170: Consistent Credential Field Addition in Third Configuration Object
The inclusion of theapiKeyfield in the third configuration object ensures consistency with the schema requirements.src/configurations/destinations/airship/schema.json (1)
816-818: Schema Flexibility withadditionalProperties
The setting"additionalProperties": trueretains flexibility by allowing unspecified keys in the configuration objects. Ensure that this behavior is well documented and aligns with the integration’s design requirements.
What are the changes introduced in this PR?
Add a list field to take attributes that are marked as a timestamp for airship
What is the related Linear task?
Resolves INT-3423
Screenshot
N/A
Any new dependencies introduced with this change?
N/A
Any new checks got introduced or modified in test suites. Please explain the changes.
N/A
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
I have executed schemaGenerator tests and updated schema if needed
Are sensitive fields marked as secret in definition config?
My test cases and placeholders use only masked/sample values for sensitive fields
Is the PR limited to 10 file changes & one task?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.
Summary by CodeRabbit
New Features
Bug Fixes
timestampAttributesis correctly recognized as an array in relevant configurations.