Rename Runner model and API maintainer_note field to maintenance_note
Summary
Based on the discussion in gitlab-runner!3268 (comment 815663628) it emerged that the new maintainer_note
field name (also released in a REST API in %14.7 through !77779 (merged)) was not a good name for several reasons, namely because 'maintainer' is the name of a role, which does not necessarily need to match the role in which this field is used, and there is already an instance of a maintainer_note
in our code which is related to the Note
model.
Implementation
-
Create an alias in the Ci::Runner
model; -
Accept the new maintenance_note
field in the REST API in addition tomaintainer_note
. Convertmaintainer_note
tomaintenance_note
upon reception; -
Mark the maintenance_note
field in the REST API as deprecated.
Links
Edited by Pedro Pombeiro