Issue 18138

cannot access past relations in api

18138
Reporter: hoefft
Assignee: cgendreau
Type: Bug
Summary: cannot access past relations in api
Priority: Major
Resolution: Done
Status: Done
Created: 2016-01-07 14:35:30.311
Updated: 2016-01-07 16:42:49.249
Resolved: 2016-01-07 16:42:49.242
        
Description: only active relations are accessible in the api.
ex:
http://api.gbif-dev.org/v1/directory/person_role?person_id=141&status=all
returns several roles that person 141 have had over time.
amongst other relation 315 og 12.

315 returns something
http://api.gbif-dev.org/v1/directory/person_role/315

12 returns nothing
http://api.gbif-dev.org/v1/directory/person_role/12

If we are to show past roles this is a problem. ]]>
    


Author: cgendreau
Comment: yes it only returns if the term is active which doesn't make sense if you access it with the id
Created: 2016-01-07 16:30:19.39
Updated: 2016-01-07 16:30:19.39


Author: cgendreau
Comment: https://github.com/gbif/directory/commit/18ad083fc295b45f53512c5571e2f63a8f80ec15
Created: 2016-01-07 16:42:44.389
Updated: 2016-01-07 16:42:44.389