auth

Paddy 2015-04-11 Parent:2809016184f6 Child:73e12d5a1124

161:849f3820b164 Go to Latest

auth/sql/postgres_empty.sql

Stop soft-deleting Profiles and actually delete them. The information we're storing in Profiles isn't unique enough that we should go through the hassle we're going through to soft-delete it. Add a deleteProfile method to our profileStore, and implement it for our postgres and memstore implementations. Add a DeleteProfile wrapper for our Context. Remove the Deleted property from the Profile type and the ProfileChange type, and update references to it. Stop cleaning up after our Profile in the UpdateProfileHandler, because there's no longer any way to delete the Profile from the UpdateProfileHandler. Update our get/list* methods so they don't filter on the non-existent Deleted property anymore. Update our SQL schema definition to not include the deleted column. Update our profile tests to use the DeleteProfile method and stop comparing the no-longer-existing Deleted property.

History
1 TRUNCATE profiles;
2 TRUNCATE logins;
3 TRUNCATE clients;
4 TRUNCATE endpoints;
5 TRUNCATE scopes;
6 TRUNCATE sessions;
7 TRUNCATE tokens;
8 TRUNCATE scopes_tokens;
9 TRUNCATE authorization_codes;
10 TRUNCATE authorization_codes_scopes;