frictionlessdata / goodtables.io

Data validation as a service. Project retired, got to the current one at frictionsless/repository
https://goodtables.io
GNU Affero General Public License v3.0
69 stars 16 forks source link

Handle properly transferred repos #306

Open roll opened 6 years ago

roll commented 6 years ago

Overview

It seems we have a bug on repo syncing if there are repos transferred to another owner. I think I run into it for goodtables-server-py:

        # Raised MultiplseResulstsFound
        repo = database['session'].query(GithubRepo).filter(or_(
            GithubRepo.name == repo_data['name'],
            GithubRepo.conf['github_id'].astext == repo_data['conf']['github_id'],
        )).one_or_none()

https://sentry.io/open-knowledge/goodtablesio-production/issues/580034391/?referrer=slack