Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sar.py fails with AttributeError: 'User' object has no attribute 'social_auth' #954

Closed
Zlopez opened this issue Jul 20, 2020 · 0 comments · Fixed by #967
Closed

sar.py fails with AttributeError: 'User' object has no attribute 'social_auth' #954

Zlopez opened this issue Jul 20, 2020 · 0 comments · Fixed by #967
Assignees
Labels
Milestone

Comments

@Zlopez
Copy link
Contributor

Zlopez commented Jul 20, 2020

Script for recovering GDPR related data fails with the error in title.

Here is the full traceback:

Traceback (most recent call last):
  File "/usr/local/bin/sar.py", line 72, in <module>
    main()
  File "/usr/local/bin/sar.py", line 65, in main
    users_list.append(user.to_dict())
  File "/usr/local/lib/python3.8/site-packages/anitya/db/models.py", line 947, in to_dict
    for soc_auth in self.social_auth.all():
AttributeError: 'User' object has no attribute 'social_auth'
@Zlopez Zlopez added this to the 1.0 milestone Jul 20, 2020
@Zlopez Zlopez self-assigned this Oct 1, 2020
Zlopez added a commit to Zlopez/anitya that referenced this issue Oct 1, 2020
To fix fedora-infra#954 I decided to remove social auth info from SAR script. Only
useful information provided was the list of providers the user was
authenticated with.

The info from the SAR script now contains id of the user, mail and if
the account is active or not.

Fixes fedora-infra#954.

Signed-off-by: Michal Konečný <[email protected]>
Zlopez added a commit that referenced this issue Oct 1, 2020
To fix #954 I decided to remove social auth info from SAR script. Only
useful information provided was the list of providers the user was
authenticated with.

The info from the SAR script now contains id of the user, mail and if
the account is active or not.

Fixes #954.

Signed-off-by: Michal Konečný <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant