Page MenuHomeSoftware Heritage

django/models: Ensure OIDCUser model will not be created in database
ClosedPublic

Authored by anlambert on Mar 23 2021, 3:36 PM.

Details

Summary

OIDCUser model will not be persisted to django database as those
information are already stored in the identity provider one.

So ensure no table for the model will be created in django database
by setting the auto_created meta flag to True.

Related to T3150

Diff Detail

Repository
rDAUTH Common authentication libraries
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D5309 (id=19040)

Rebasing onto 45ec395cce...

Current branch diff-target is up to date.
Changes applied before test
commit d7ecd21e2fa5f9d8b38823c0ba0de1e021f1b587
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Tue Mar 23 14:25:55 2021 +0100

    django/models: Ensure OIDCUser model will not be created in database
    
    OIDCUser model will not be persisted to django database as those
    information are already stored in the identity provider one.
    
    So ensure no table for the model will be created in django database
    by setting the auto_created meta flag to True.
    
    Related to T3150

See https://jenkins.softwareheritage.org/job/DAUTH/job/tests-on-diff/39/ for more details.

This revision is now accepted and ready to land.Mar 23 2021, 3:43 PM