-
Notifications
You must be signed in to change notification settings - Fork 1
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
[CONSVC-1729] feat: introduce approval for partners #39
Conversation
c3c3fa1
to
b1b25a1
Compare
b1b25a1
to
dddc7aa
Compare
consvc_shepherd/models.py
Outdated
|
||
def clean(self): | ||
if ( | ||
self.settings_type.is_active is False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
self.settings_type.is_active is False | |
!self.settings_type.is_active |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
! self.settings_type.is_active
isn't valid python will be changing it to not self.settings_type.is_active
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh, my Python is getting Rusty 😂.
contile/admin.py
Outdated
messages.info(request, f"Partner: {partner.name} has been approved") | ||
else: | ||
messages.error( | ||
request, "Approver is the same user that updated the partner" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: let's also point out how this should be done, such as "This change can't be approved by the same editor, please get another reviewer for approval".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
* feat: introduce approval for partners * feedback changes
decided that if a partner setting has changed, you are unable to create a snapshot with that partner unless it has been approved.
closes #23