Add 'type' property to Database resource and update Appwrite source - #103
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughA new Changes
Sequence Diagram(s)sequenceDiagram
participant Source as Appwrite Source
participant Database as Database Resource
participant Destination as Appwrite Destination
Source->>Database: Instantiate with type (from $database['type'])
Database->>Source: Database object with type
Source->>Destination: Pass Database object
Destination->>Destination: Create document with type field
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
✨ Finishing Touches
🧪 Generate unit tests
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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| '$createdAt' => $resource->getCreatedAt(), | ||
| '$updatedAt' => $resource->getUpdatedAt(), | ||
| 'originalId' => empty($resource->getOriginalId()) ? null : $resource->getOriginalId(), | ||
| 'type' => empty($resource->getType()) ? null : $resource->getType(), |
There was a problem hiding this comment.
Let's fallback tosql instead of null here
| updatedAt: $array['updatedAt'] ?? '', | ||
| enabled: $array['enabled'] ?? true, | ||
| originalId: $array['originalId'] ?? '', | ||
| type: $array['type'] ?? '', |
| $database['name'], | ||
| $database['$createdAt'], | ||
| $database['$updatedAt'], | ||
| type:$database['type'] |
Summary by CodeRabbit