Skip to content

Source Object Attributes not parsing correctly #110

Open

Description

@OpenDataAlex

When trying to set source object attributes with a source type that was not in the database, the parser didn't parse correctly and actually took the source type and turned the name into attributes.

Workaround is to store the data like:

ProcessTracker(process_name="test",
                        process_type="test",
                        actor_name="Test",
                        tool_name="Python",
                        source_object_attributes={
                              "Lahman Baseball 2018": {
                                 "Teams": ["yearID", "lgID", "teamID", "name", "park"],
                        }})

While it should be able to be:

ProcessTracker(process_name="test",
                        process_type="test",
                        actor_name="Test",
                        tool_name="Python",
                        source_object_attributes={
                              "Lahman Baseball 2018": 
                                 "type": "csv file",
                                 "objects": {
                                 "Teams": ["yearID", "lgID", "teamID", "name", "park"],
                        }})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions