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

Resource webhook filters with paths which contain special keys. #579

Open
cokeSchlumpf opened this issue Nov 11, 2022 · 1 comment
Open
Labels
Area: Yaml bug Something isn't working invalid This doesn't seem right question Further information is requested

Comments

@cokeSchlumpf
Copy link

cokeSchlumpf commented Nov 11, 2022

Hi everyone,

I have detected a potential issue with the webhok filters. We have an incomming JSON which contains keys with dots. Example:

{
  "resource": {
    "fields": {
      "System.State": "Something"
    }
  }
}

There is no chance that the suggested notation of the filter could work, e.g.,

resources:
  webhooks:
    - webhook: webhook_name
      connection: connection_name
      filters:
        - path: resource.fields.System.State
          value: Ready to Deploy UAT

I tried the bracket notation, but without success:

resources:
  webhooks:
    - webhook: webhook_name
      connection: connection_name
      filters:
        - path: resource.fields["System.State"]
          value: Ready to Deploy UAT

Is there any way to get this working?

@KonstantinTyukalov
Copy link

Hi @cokeSchlumpf, thank you for the information provided! Let us check once we've dealt with higher priority tickets

@KonstantinTyukalov KonstantinTyukalov added bug Something isn't working invalid This doesn't seem right question Further information is requested and removed triage labels Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Yaml bug Something isn't working invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants