Migrate `ci_access` keyword values of `agent_project_authorizations.config`
Problem
agent_project_authorizations
and agent_group_authorizations
tables have config
columns. This column represents what keyword and options are used for sharing an agent, but correctly ci_access
related values are directly put, something like:
access_as: {
agent: {}
},
environments: [
'production'
],
user_access: {
access_as: {
user: {}
}
}
This should look like:
ci_access: {
access_as: {
agent: {}
},
environments: [
'production'
],
},
user_access: {
access_as: {
user: {}
}
}
Proposal
- Start persisting the data under
ci_access
keyword. - Support both structure.
- Migrate data.
- Remove old code
Edited by Shinya Maeda