Following T279556: Introduce infrastructure for making partial blocks against actions, action restriction display could be improved in ApiQueryBlocks.
The API returns the integer value of the restriction:
"restrictions": {
"actions": [
1
]
}but could instead return the string, which would probably be more meaningful to a caller:
"restrictions": {
"actions": [
"upload"
]
}