Skip to content
This repository was archived by the owner on Nov 13, 2019. It is now read-only.
This repository was archived by the owner on Nov 13, 2019. It is now read-only.

"Academia" field mappings in User class misspelled #23

@karenhanson

Description

@karenhanson

The Academia fields in the User class represent the custom components of a social field:
https://{academia_institution}.academia.edu/{academia_profile_id}

Therefore, in the User class, "academicaInstitution" should be "academia_institution" and "academicaProfileId" should be "academia_profile_id" to match the json field names.

Similarly, the OWL references should be named:
OwlProperties.OSF_HAS_ACADEMIAINSTITUTION and OwlProperties.OSF_HAS_ACADEMIAPROFILEID

Here is the relevant code for matching the names correctly:
https://github.com/CenterForOpenScience/osf.io/blob/develop/api/users/serializers.py

I recommend waiting to do this change for a while as the social ID fields are currently available in dev mode only, pending formatting review. They may change format in the near future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions