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

Trigger Editor: known_value field is not sent to Astarte when installing "incoming data" triggers #466

Closed
davidebriani opened this issue Sep 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@davidebriani
Copy link
Collaborator

When defining an "incoming data" trigger with a comparison on an interface value, the known_value is not sent to Astarte when installing the trigger: Astarte returns an HTTP 422 error and the installation fails.

For example:

{
    "name": "sample-trigger",
    "action": {
        "http_url": "https://domain.com",
        "http_method": "post",
        "http_static_headers": {}
    },
    "simple_triggers": [
        {
            "type": "data_trigger",
            "on": "incoming_data",
            "interface_name": "some.astarte.Interface",
            "interface_major": 0,
            "match_path": "/mypath",
            "value_match_operator": ">",
            "known_value": 1
        }
    ]
}
@davidebriani davidebriani added the bug Something isn't working label Sep 10, 2024
@davidebriani davidebriani moved this to Unscheduled in Astarte Sep 10, 2024
@davidebriani
Copy link
Collaborator Author

Closing as duplicate of #393 and already fixed by #402 for Astarte Dashboard v1.1.2 development branch.

@github-project-automation github-project-automation bot moved this from Unscheduled to Done in Astarte Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant