Skip to content

Conversation

@beautifulentropy
Copy link
Member

@beautifulentropy beautifulentropy commented Dec 12, 2025

  • Rename email to salesforce
  • Rename pardot-test-srv to salesforce-test-srv
  • Continue building pardot-test-srv by copying salesforce-test-srv
  • Rename email.Exporter gRPC service to salesforce.Exporter
  • Register and listen for both salesforce.Exporter and legacy email.Exporter services
  • Allow salesforce.Exporter impl to answer email.Exporter service via an interface adapter/shim

Part of #8410

Note

Configuration changes are being tracked in IN-12078 and IN-12087.

@beautifulentropy beautifulentropy marked this pull request as ready for review December 15, 2025 15:56
@beautifulentropy beautifulentropy requested a review from a team as a code owner December 15, 2025 15:56
@github-actions
Copy link
Contributor

@beautifulentropy, this PR appears to contain configuration and/or SQL schema changes. Please ensure that a corresponding deployment ticket has been filed with the new values.

@beautifulentropy beautifulentropy marked this pull request as draft December 15, 2025 15:56
@beautifulentropy beautifulentropy marked this pull request as ready for review December 15, 2025 15:57
@beautifulentropy beautifulentropy marked this pull request as draft December 15, 2025 16:53
@beautifulentropy
Copy link
Member Author

Converting to draft to tackle one more thing and file an SRE configuration issue.

@jsha jsha changed the title salesforce: Rename email package and pardort-test-srv salesforce: Rename email package and pardot-test-srv Dec 17, 2025
@beautifulentropy beautifulentropy force-pushed the pardot-to-salesforce branch 6 times, most recently from f085fda to 7d5df3c Compare December 18, 2025 17:04
@beautifulentropy beautifulentropy marked this pull request as ready for review December 18, 2025 19:06
@jprenken jprenken requested a review from aarongable December 20, 2025 02:10
@beautifulentropy beautifulentropy requested a review from jsha January 7, 2026 16:31
// provided details. Any retries are handled internally by the SalesforceClient.
// The following fields are required: Origin, Subject, ContactEmail.
func (impl *ExporterImpl) SendCase(ctx context.Context, req *emailpb.SendCaseRequest) (*emptypb.Empty, error) {
// The following fields are required: Origin, Subject, Contactsalesforce.
Copy link
Contributor

Choose a reason for hiding this comment

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

Accidental find-replace:

Suggested change
// The following fields are required: Origin, Subject, Contactsalesforce.
// The following fields are required: Origin, Subject, ContactEmail.

Comment on lines +154 to +159
srv := bgrpc.NewServer(c.EmailExporter.GRPC, logger)
srv = srv.Add(&salesforcepb.Exporter_ServiceDesc, server)
// TODO(#8410): Remove emailpb.Exporter once fully migrated to
// salesforcepb.Exporter.
srv = srv.Add(&emailpb.Exporter_ServiceDesc, legacyEmailExporterServer{inner: server})
start, err := srv.Build(tlsConfig, scope, clk)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I have a slight preference for still doing this all in one go, as we do in the SA, rather than overwriting srv multiple times:

start, err := bgrpc.NewServer(c.SA.GRPC, logger).WithCheckInterval(c.SA.HealthCheckInterval.Duration).Add(
&sapb.StorageAuthorityReadOnly_ServiceDesc, saroi).Add(
&sapb.StorageAuthority_ServiceDesc, sai).Build(
tls, scope, clk)

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.

4 participants