Some webservice actions only works on simplePlugin classes
Some webservice actions only works on simplePlugin classes
There are 4 REST operations which tests is_subclass_of($object, 'simplePlugin')
, they should be adapted to be able to work with any SimpleTab instance.
This should allow more operations to work on network interfaces.
fdRPCService class should also be checked for such limitations.
Activity
- Côme Chilliet changed milestone to %FusionDirectory 1.4
changed milestone to %FusionDirectory 1.4
- Côme Chilliet added PJ1802-0188 plugin-webservice labels
added PJ1802-0188 plugin-webservice labels
- Côme Chilliet mentioned in commit 0cdb433b
mentioned in commit 0cdb433b
- Côme Chilliet mentioned in commit 4a5d8ada
mentioned in commit 4a5d8ada
- Author Reporter
Some methods are fixed.
Some others still needs adaptation or tests, especially in all instances where sections are used (only simplePlugin instances organize attributes by section).
- Côme Chilliet added 1h of time spent
added 1h of time spent
- bmortier changed due date to August 05, 2021
changed due date to August 05, 2021
- Côme Chilliet marked this issue as related to #6143 (closed)
marked this issue as related to #6143 (closed)
- Author Reporter
Current status:
- listObjectTabs
- modifyObject
- modifyObjectTab
- getObjectTab ✘ Invalid tab
- getAttributeValues
- setAttributeValues
(But see #6143 (closed) for interfaces special case) - resetAttributeValue ✘ Type error (Maybe specific to interfaces)
- getTypeInfo
- getTabInfo ✘ Invalid tab
- listObjectTabs
- Author Reporter
resetAttributeValue Fixed in #6143 (closed), it was specific to interfaces.
- Author Reporter
@bmortier For getTabInfo, it’s supposed to return a list of sections, with for each sections its name and the list of attributes, for instance:
GET /types/server/serverGeneric { "sections": { "main": { "name": "Properties", "attrs": [ "base", "cn", "description", "l", "fdMode", "ipHostNumber", "macAddress" ] } }, "sections_order": [ "main" ] }
For tabs which do not inherit simplePlugin, the attributes are not grouped into sections, so I will return them all as in a default section, which I think should have the id "main" as its often the case in FusionDirectory, but what should be put in name? I see 3 possibilities:
- Do not set the name key in this case
- Set it to an empty value: ""
- Set it to the name of the tab
First solution may break algorithm expecting all tabs to return the same keys. Second one may result in weird output or CLI or GUI using an empty string as the name. Third one may result in duplicate tab name as section name, and makes it harder for the caller to detect that this is not a real section.
Edited by Côme Chilliet - Please register or sign in to reply
- Côme Chilliet mentioned in commit 1bff174c
mentioned in commit 1bff174c
- Côme Chilliet added 3h of time spent
added 3h of time spent
- Côme Chilliet added To Be Tested label
added To Be Tested label
- Author Reporter
All selenium tests for this passed: https://gitlab.fusiondirectory.org/debian/buster-fusiondirectory-dev/-/jobs/63120
- Côme Chilliet closed
closed
- dockx thibault removed To Be Tested label
removed To Be Tested label
- dockx thibault added Fixed label
added Fixed label