Open apentori opened 2 months ago
There is an issue when trying to automate the relation between the two endpoint.
It appear there is 21561 issues_labels without any related issue in the db. That block to automate the relation between the two endpoint
Unmatching labels with issue fixed by cleaning all the data.
Each airbyte sync remove the primary and secondary key from Hasura db. It doesn't seem to be problematic at first sight, but it will surely become an issue later.
When checking the sync, some constraint might be syncable:
To add constraint in dbt: https://docs.getdbt.com/reference/resource-properties/constraints
Going to check if it's possible to specify the schema of only some table
Constrains are not available in our current dbt version ....
Unfortunately, this feature is not available in dbt Core version 1.4
The relation between object seems to work even if Airbyte remove the postgres constraint.
In order to keep constraint on data, i had to add a dbt transformation on the hasura database:
airbyte
in the Hasura db.airbyte
-> public
) with the constraint added.
What to do
gh_issue
andgh_issue_label
)We need to add another Hasura API call during the init to create the relationship between table: https://hasura.io/docs/latest/schema/postgres/table-relationships/create/#step-2-create-an-object-relationship