Add is_fasse project attribute and fasse group tagging#477
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
is_fasseas aYes/NoProjectAttributeTypeinadd_default_project_choicesis_fasseproperty to theProjectmodel: returnsTrueif the attribute value is'True',Falseif the value is'False'or the attribute is absentCF_LDAP_FASSE_GROUPenv var toldap_fasrc.pyconfig (opt-in, defaults toNone)collect_update_project_status_membership, resolves which project AD groups areMemberOfthe configured fasse group and sets/unsetsis_fasseon each project accordingly; no-ops ifCF_LDAP_FASSE_GROUPis unset or theis_fassePAT does not exist in the DBTest plan
manage.py add_default_project_choicesand confirmis_fassePAT is createdCF_LDAP_FASSE_GROUPto the fasse AD group SAMAccountName and runcollect_update_project_status_membership— confirm fasse projects getis_fasse=Trueand non-fasse projects getis_fasse=Falseproject.is_fassereturnsTrue/Falsecorrectly for both casesCF_LDAP_FASSE_GROUPis unset