doccano-client icon indicating copy to clipboard operation
doccano-client copied to clipboard

Update the post_members function in the DoccanoClient to work with members endpoint

Open david-engelmann opened this issue 3 years ago • 2 comments

Description

Currently, the post_members function fails because "rolename" isn't a field returned. The field has been updated to just "name". After that fix is implemented the next issue occurs because the project/{project_id}/roles endpoint is no longer valid. I've updated the url to reflect the new project/{project_id}/members endpoint and the data block to reflect what that endpoint needs.

Fixes # (https://github.com/doccano/doccano-client/issues/44)

david-engelmann avatar Jun 12 '22 17:06 david-engelmann

@david-engelmann after the fix is made, no error is expected to occur, therefore the project/{project_id}/roles endpoint remains valid hence the data block should remain the same. Your current changes return an error.

JessicaOjo avatar Jun 14 '22 21:06 JessicaOjo

@JessicaOjo What version of Doccano are you using? The latest version doesn't have project/{project_id}/roles endpoint. Issues of these types are going to continue to happen as people using different versions of Doccano require different endpoints. A recent issue mentioned trying to figure out the doccano version and adjust based on that but I haven't been able to look into it yet.

david-engelmann avatar Jun 15 '22 01:06 david-engelmann