PyBIS property types missing object type info

In PyBIS, when using get_property_types() and when a propertyType is of dataType OBJECT, the returned df does not contain the information of the specific objectType being used. This information appears in the Admin UI and with the Java API, so I guessed it is a missed field when doing requests.post().

I actually found the error and hacked in my local package installation, pybis==1.37.0. Only a few lines have to be added to pybis/definitions.py

  1. In lines 152 and 153, add "sampleType" after "dataType"
  2. After line 451 add:
        "sampleType": {
            "@type": "as.dto.sample.fetchoptions.SampleTypeFetchOptions"
        },

Sorry if this has been fixed already. Is there a repo where I can follow the latest releases of PyBIS and open issues / pull requests? Are you accepting external contributors who help on the PyBIS API? :slight_smile:

Many thanks and all the best,
Jose

Just want to add that, even with these changes added into my local PyBIS installation, the response sometimes return a dictionary (which is the correct response) and sometimes an integer 142.

No idea why this behavior. Maybe there is something off with the internals of PyBIS I cannot see.

Any help would be appreciated! :slight_smile: