ilya-kozyrev commented on a change in pull request #16502:
URL: https://github.com/apache/beam/pull/16502#discussion_r785906696
##########
File path: playground/infrastructure/helper.py
##########
@@ -240,6 +241,7 @@ def _get_example(
with open(filepath, encoding="utf-8") as parsed_file:
content = parsed_file.read()
content = content.replace(tag.tag_as_string, "")
+ link = Config.LINK_PREFIX + (filepath.replace(os.getenv("BEAM_ROOT_DIR"),
"", 1))
Review comment:
Please use string formating instead of concatenation
##########
File path: playground/infrastructure/helper.py
##########
@@ -61,6 +61,7 @@ class Example:
type: PrecompiledObjectType = PRECOMPILED_OBJECT_TYPE_UNSPECIFIED
pipeline_id: str = ""
output: str = ""
+ link: str = ""
Review comment:
Might it be optional?
--
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]