-
Improvement
-
Resolution: Fixed
-
Minor
-
None
There is no way to signal that the persisted SCMHead has different actions from a SCMHead instance retrieved through traversal.
Further, with the event API it may not be possible to reconstruct all the actions for a specific SCMHead from the event.
The SCMHead interface was designed to be a key type class, not a value type class.
It was a mistake to add an action API to it.
As there are very few consumers it may be possible to revert the addition completely, otherwise it will be annotated @Restricted(DoNotUse.class) and the method turned into a no-op.
As part of this change, ChangeRequestAction will also be removed, in favour of more composable metadata actions that will be made available through the SCMSource.fetchActions(...,listener) API rather than attached to the SCMHead, in this way consumers of the SCM API can access and persist the mutable information with the SCMHead being restored to its role as an immutable key with a strong deep equals contract.
- is blocking
-
JENKINS-40299 Adapt to the new SCM API for detecting change requests
- Closed