olehborysevych commented on code in PR #24751:
URL: https://github.com/apache/beam/pull/24751#discussion_r1056337627
##########
playground/backend/cmd/server/controller.go:
##########
@@ -97,8 +99,30 @@ func (controller *playgroundController) RunCode(ctx
context.Context, info *pb.Ru
kafkaMockCluster = kafkaMockClusters[0]
prepareParams = prepareParamsVal
}
+ sources := make([]entity.FileEntity, 0)
+ if len(info.Files) > 0 {
+ for _, file := range info.Files {
+ sources = append(sources, entity.FileEntity{
+ Name: file.Name,
+ Content: file.Content,
+ IsMain: file.IsMain,
+ CntxLine: 1,
Review Comment:
@eantyshev Am I right that we are setting CntxLine to 1 because it is not
used in runners and we do not care about it?
--
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]