Github user pvillard31 commented on the issue:
https://github.com/apache/nifi/pull/2219
> When a version of a PG is saved to the registry it does capture all of
the variables and their values at that point in time. So in a PG that already
has v1 saved to the registry, if you add a variable and make any other change,
even a positional change, then it will capture the new variable in v2.
I somehow missed that part while doing my tests... Looks good!
> Changes to variable values do not make a PG dirty because when a
versioned flow is imported to another NiFi instance, the user will most likely
need to change the variable values to something specific to the environment...
Totally agree, value changes should not make the flow dirty.
Thanks for your explanations!
---