Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: add semantic type to create_data_stream #3148

Conversation

raphaelbalzer
Copy link
Contributor

Purpose

Enable specifying a semantic type for the attributes of a datastream. For example, images can now be included in an output stream.

Remarks

Instead of a string representing the runtime type, an instance of a dataclass containing information about the semantic type and runtime type needs to be passed as a value for the attribute key.

PR introduces (a) breaking change(s): <yes/no>

PR introduces (a) deprecation(s): <yes/no>

@github-actions github-actions bot added the python Pull requests that update Python code label Aug 16, 2024
Copy link
Member

@dominikriemer dominikriemer left a comment

Choose a reason for hiding this comment

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

@raphaelbalzer thanks for the PR! Is it possible to make this backwards compatible by introducing a new method and deprecating the existing method?

@@ -48,11 +51,26 @@ class RuntimeType(Enum):
INTEGER = "integer"
LONG = "long"

class SemanticType(Enum):
Copy link
Contributor

Choose a reason for hiding this comment

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

What is SemanticType used for?
I can't find any usage

@@ -117,3 +136,35 @@ def create_data_stream(

data_stream.element_id = sanitized_stream_id
return data_stream

# TODO Use an more general approach to create a data stream
@deprecated('deprecated; please use "compose_data_stream" instead.')
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please adapt the tests that use create_data_stream as well?
In addition, it would be great to have some dedicated tests for the new compose_data_stream function, if you are open to it

Copy link
Contributor

github-actions bot commented Sep 8, 2024

Hello there 👋

We noticed that it's been some time since activity occurred on your pull request 🤔. In order to keep things moving forward, we're marking this PR as stale and giving you 7 days to respond before it's automatically closed ⏰.

Please take a moment to review your pull request and make any necessary updates or changes 👨‍💻. If you need more time or have any questions, please don't hesitate to let us know 💬.

Thank you for your contributions to our project, and we look forward to hearing back from you soon 🙏.

@github-actions github-actions bot added the stale Marks pull requests that are classified as `stale` by our bot. label Sep 8, 2024
Copy link
Contributor

Hello there 👋

Unfortunately, we didn't hear back from you regarding your pull request, so we're closing it now. Don't worry, you can always reopen the PR at any time if you wish to continue working on it 🙌.

Please note that the branch associated with this pull request will not be deleted, so you can still access your changes and continue to work on them as needed 💻.

Thank you for your contributions to our project, and we hope to see you again soon!

@github-actions github-actions bot closed this Sep 15, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
python Pull requests that update Python code stale Marks pull requests that are classified as `stale` by our bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants