Closed wonderchook closed 7 years ago
@wonderchook I don't really understand this, could you upload your shp file?
@dimasciput and @wonderchook perhaps we could filter any fields wich have relationships_
or parties_
, since these will be the default prefixes added to the columns?
another aproach would be to handle the exception, which seems to be on the object? or string? of the join coumn. (Will have to see more of the stack trace). That could possibly add the relationship for the next user, who downloads the project. But it would add useless data for the user who doesn't use QGIS...
@dimasciput
Hi @wonderchook,
This PR https://github.com/Cadasta/cadasta-qgis-plugin/pull/233, will only fix this issue.
Can we not join the table for this? Because this plugin is not built with joined table in mind. This will introduces a lot other issues. Even the first mockup doesn't have split table.
@dimasciput people are going to have to join the tables to do analysis. They don't need to upload the joined tables.
@dimasciput do you need anything from me? Do you understand the issue?
Hi @SteadyCadence , I think already fixed this issue with this PR https://github.com/Cadasta/cadasta-qgis-plugin/pull/233
@SteadyCadence have you tested this?
When a user joins the relationship and the parties table to locations then the relationship and parties information is submitted through the api to the location. This casues the following issue:
TypeError at /api/v1/organizations/chickenville/projects/kate-magical-test-file-2/spatial/ {'have_int': '4', 'name': 'blah blah blah', 'have_dec': '2.100000', 'fake-date': '2017-01-01', 'chickenville/kate-magical-test-file-2/relationships_rel_id': 'x4qc56zp8ybzj5gkxuejinku', 'chickenville/kate-magical-test-file-2/parties_name': 'two', 'chickenville/kate-magical-test-file-2/relationships_rel_name': 'CU', 'chickenville/kate-magical-test-file-2/relationships_party_id': 'awajdc97ktpve6gj6bqrjvwe', 'chickenville/kate-magical-test-file-2/parties_type': 'IN'} is not JSON serializable