You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
Obvious improvement is to join against auth_user to see who the user_id column corresponds to:
select * from reversion_revision join auth_user on reversion_revision.user_id = auth_user.id where comment like 'Merged locations,%%' order by date_created
The reason we don't expose auth_user is that it includes hashed passwords.
(I'm not sure why that column is populated since we outsource auth to auth0 - but our password column does seem to be populated. Best not to mess with it - especially since maybe someone gets confused and uses "change password" in the Django admin and sets their password to something they also use elsewhere)
Consider this query:
Results look like this: https://vial.calltheshots.us/dashboard/?sql=select+%2A+from+reversion_revision+where+comment+like+%27Merged+locations%2C%25%25%27+order+by+date_created%3AZzkYu4UBH1kS2U1FsNiXtu5rgVo_Vt8WOYbVejupVEE&sql=select+%2A+from+reversion_revision+where+comment+like+%27Merged+locations%2C%25%25%27+order+by+date_created%3AZzkYu4UBH1kS2U1FsNiXtu5rgVo_Vt8WOYbVejupVEE&_save-title=&_save-slug=&_save-description=&_save-view_policy=private&_save-view_group=&_save-edit_policy=private&_save-edit_group=
Obvious improvement is to join against
auth_user
to see who theuser_id
column corresponds to:select * from reversion_revision join auth_user on reversion_revision.user_id = auth_user.id where comment like 'Merged locations,%%' order by date_created
https://vial.calltheshots.us/dashboard/?sql=select+%2A+from+reversion_revision+join+auth_user+on+reversion_revision.user_id+%3D+auth_user.id+where+comment+like+%27Merged+locations%2C%25%25%27+order+by+date_created%3AoCklwVVt8QmNnboJNWNVDqwMW5M6E_gFglEMFK8luUA&sql=select+%2A+from+reversion_revision+where+comment+like+%27Merged+locations%2C%25%25%27+order+by+date_created%3AZzkYu4UBH1kS2U1FsNiXtu5rgVo_Vt8WOYbVejupVEE&_save-title=&_save-slug=&_save-description=&_save-view_policy=private&_save-view_group=&_save-edit_policy=private&_save-edit_group=
The reason we don't expose
auth_user
is that it includes hashed passwords.(I'm not sure why that column is populated since we outsource auth to auth0 - but our password column does seem to be populated. Best not to mess with it - especially since maybe someone gets confused and uses "change password" in the Django admin and sets their password to something they also use elsewhere)
Good news: PostgreSQL has a mechanism for GRANT to only specific columns, see simonw/django-sql-dashboard#98
The text was updated successfully, but these errors were encountered: