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

Update @value rule for qualitative measures #154

Open
samuele-mattiuzzo opened this issue Mar 1, 2019 · 2 comments
Open

Update @value rule for qualitative measures #154

samuele-mattiuzzo opened this issue Mar 1, 2019 · 2 comments

Comments

@samuele-mattiuzzo
Copy link
Contributor

samuele-mattiuzzo commented Mar 1, 2019

After our recent work on the Rules, we have omitted/misunderstood a piece of rule.

From Andy's comment we can clearly see how we are not explicitly checking for

[@measure=5] and not(@value) (pseudocode obviously) but instead we infer its correctness as a side effect.

After a few chats with @amy-silcock we realised how feeble this logic is, so we have to update the rules for that specific check, so that we avoid inferring correctnes by the fact that the other similar tests are Fail or Pass

@andylolz
Copy link
Contributor

andylolz commented Mar 1, 2019

[@measure=5] and not(@value)

^^ Yes, exactly like this! 👍 Err maybe something like:

{
    "//result/indicator[@measure='5']/baseline": {
        "evaluates_to_true": {
            "cases": [
                { "eval": "not(@value)" }
            ]
        }
    }
}

but instead we infer its correctness as a side effect

I don’t think so… Currently, if @measure is 5 and @value is present, no ruleset rule fails / no error is raised. So the explicit test is good partly because it’s good to have an explicit test, but also I think it adds something that isn’t covered by current tests.

@akmiller01 akmiller01 removed the 2.03 label Oct 26, 2022
@akmiller01
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants