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

Incorrect attribute value type on port_action.self_service_trigger #164

Open
julien-carsique-sonarsource opened this issue Jul 8, 2024 · 1 comment

Comments

@julien-carsique-sonarsource

Only a jq_query object is accepted as a value while a string should work.

          dataset = {
            combinator = "and"
            rules = [{
              property = "$title"
              operator = "contains"
              value    = "..."
            }]
          }

Inappropriate value for attribute "self_service_trigger": attribute "user_properties": attribute "string_props": element "...": attribute "dataset": attribute "rules": element 0: attribute "value": object required.

@pazhersh
Copy link
Collaborator

pazhersh commented Jul 9, 2024

I've looked into it and it seems that the string_value option really is missing in the provider's code.
I'll make sure the team looks into this.

For now I can suggest a workaround: use the jqQuery and make it returns a string. something along the lines of:

          dataset = {
            combinator = "and"
            rules = [{
              property = "$title"
              operator = "contains"
              value    = {
                jqQuery = "\"this value will be calculated as a simple string by jq\""
              }
            }]
          }

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

No branches or pull requests

2 participants