Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Type hinting compat fixes #4158

Merged
merged 5 commits into from Oct 5, 2022
Merged

Conversation

bazsi
Copy link
Collaborator

@bazsi bazsi commented Sep 29, 2022

This branch adds a couple of new warnings where the new type-hinting functionality causes incompatibilities.

These are db-parser(), grouping-by() and add-contextual-data() where the template strings can now contain type-hints, which were not supported before.

These cause an incompatibility if the previous templates did contain a parenthesis, as encountered by @ryanfaircloth in issue #4155

@github-actions
Copy link
Contributor

No news file has been detected. Please write one, if applicable.

Copy link
Collaborator

@alltilla alltilla left a comment

Choose a reason for hiding this comment

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

If I understand correctly, this PR does not just add warnings, but falls back to the old behavior in the problematic cases. Should we mention that in the PR description and/or news entry?

modules/dbparser/synthetic-message.c Outdated Show resolved Hide resolved
…release to use typing

Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
…) options

Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
@MrAnno MrAnno requested a review from alltilla October 5, 2022 12:38
@alltilla alltilla merged commit 806bea7 into syslog-ng:master Oct 5, 2022
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.

None yet

3 participants