-
Notifications
You must be signed in to change notification settings - Fork 18
feat: add GCP Pub/Sub destination support with configuration and credentials schemas #518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for Google Cloud Platform (GCP) Pub/Sub as a destination type, including comprehensive configuration and credentials schemas for the OpenAPI specification.
- Defines GCP Pub/Sub configuration schema with project ID, topic name, and optional endpoint
- Adds service account JSON credentials schema for authentication
- Integrates GCP Pub/Sub into polymorphic destination schemas for create, read, and update operations
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
DestinationGCPPubSub: | ||
type: object | ||
# Properties duplicated from DestinationBase | ||
required: [id, type, topics, config, credentials, created_at, disabled_at] |
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'disabled_at' field should not be required since it can be null when the destination is enabled. Consider removing it from the required array or making it optional.
required: [id, type, topics, config, credentials, created_at, disabled_at] | |
required: [id, type, topics, config, credentials, created_at] |
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is consistent with other destination types
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…tract This is a WIP and only tests a subset of the functionality.
…e Bus, Hookdeck, RabbitMQ, and Webhook - Implemented contract tests for Azure Service Bus destinations, covering creation, retrieval, listing, updating, and deletion. - Added contract tests for Hookdeck destinations with similar coverage. - Created contract tests for RabbitMQ destinations, ensuring validation of required fields and error handling. - Developed contract tests for Webhook destinations, including validation for required configuration fields. - Each test suite includes setup and teardown logic to manage test tenant and destination cleanup.
…Kinesis due to backend limitations
… OpenAPI validation test suite - Create contributing documentation outlining test suite architecture, guidelines for adding tests, and best practices. - Establish implementation order and roadmap for enhancing the test suite with CI/CD integration, coverage reporting, and documentation. - Update README with current state of the test suite and next phases for development.
feat: sdk api spec tests
Add missing 'status' field to Event schema in OpenAPI specification and generate updated TypeScript SDK with proper type definitions. Changes: - Updated Event schema in OpenAPI spec to include 'status' field (enum: success | failed) - Regenerated TypeScript SDK with new EventStatus type - Added comprehensive test suite for event status field validation - Updated all destination tests to use proper SDK types - Added SDK regeneration script for consistent build process The API was already returning the status field in event responses, but it was not documented in the OpenAPI spec, causing SDK clients to not have access to this field. This change aligns the spec with the actual API behavior. Tests verify: - Status field is present in events from listByDestination - Status field is present in single event retrieval - Status field is present in tenant-wide event lists - Status values are valid (success or failed) Fixes #490 Related to PR #491
@claude - can you review the PR? |
Claude finished @leggetter's task —— View job Code Review Complete ✓Reviewing PR #518: GCP Pub/Sub destination support Review Checklist:
SummaryThis PR adds comprehensive GCP Pub/Sub destination support to Outpost, including OpenAPI schema definitions, SDK generation, test coverage, and backend implementation. The implementation is well-structured and follows the existing patterns for other destination types. Positive Aspects ✅
Issues and Recommendations 🔍1. Critical: Inconsistent
|
No description provided.