Motivation
When visualizing the currently effective regulations of an agency, all policies which are not superseeded are relevant.
Problem
As per the specification, all published policies are immutable. Versioning and outdating superseeded policies is achieved by publishing a new policy, which holds the prev policies as a reference. While this is technically elegant (as the previous policy is really immutable and not even it's state is manipulated after publishing), it's cumbersome as a consumeras per the MDS policy read api, there is no option to retrieve only those policies which are not referenced as a prev policy by another one.
Ideas
It was nice if there was a transient state which could be queried for. This enum value would then internally get transformed to a query which in-/exludes the policy from prev. policies.
While this sounds simple at first, it gets a bit tricky in detail: Both the information, whether a policy is published or "active" (not superseeded) depends on the point in time which is used to look at the states.
Is there already a solution for that or does it need to be added to the implementation (and spec, yay!)?
Motivation
When visualizing the currently effective regulations of an agency, all policies which are not superseeded are relevant.
Problem
As per the specification, all published policies are immutable. Versioning and outdating superseeded policies is achieved by publishing a new policy, which holds the prev policies as a reference. While this is technically elegant (as the previous policy is really immutable and not even it's state is manipulated after publishing), it's cumbersome as a consumeras per the MDS policy read api, there is no option to retrieve only those policies which are not referenced as a prev policy by another one.
Ideas
It was nice if there was a transient state which could be queried for. This enum value would then internally get transformed to a query which in-/exludes the policy from prev. policies.
While this sounds simple at first, it gets a bit tricky in detail: Both the information, whether a policy is published or "active" (not superseeded) depends on the point in time which is used to look at the states.
Is there already a solution for that or does it need to be added to the implementation (and spec, yay!)?