ibzib commented on pull request #15082: URL: https://github.com/apache/beam/pull/15082#issuecomment-872516504
> > Why would annotations be safer? > > That might be only opinion-based. But creating new `ExternalServiceOptions` means you have two places to add an option when you want it to be respected by both runners and external services - you will not add an option to ExternalServiceOptions _only_. That is only a projection, not a complete domain. That is why I think, that selection is better done with annotations. Creating ExternalServiceOptions doesn't mean we need to define new options. For example, we could refactor environment-related options into a new PortableEnvironmentOptions class, and then make both PortablePipelineOptions and ExternalServiceOptions extend PortableEnvironmentOptions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
