api_exported's operation_name parameter is redundant
Bug #987635 reported by
Julian Edwards
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Low
|
Julian Edwards |
Bug Description
There are no instances of this decorator where the operation name is anything other than the same as the method it's decorating. Let's just get rid of it.
Related branches
lp:~julian-edwards/maas/operation-name-bug-987635
- Jeroen T. Vermeulen (community): Approve
-
Diff: 343 lines (+121/-31)4 files modifiedsrc/maasserver/api.py (+40/-30)
src/maasserver/tests/test_api.py (+1/-0)
src/maasserver/tests/test_api_mechanism.py (+79/-0)
src/metadataserver/api.py (+1/-1)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: tech-debt |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Julian Edwards (julian-edwards) |
Changed in maas: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
That's not entirely true: AnonFilesHandler and FilesHandler both expose an API method named 'get' and the actual python method is a (module level) utility method name get_file. Nontheless, since it's the only instance, we can rename that method and get rid of the operation_name parameter.