-
Notifications
You must be signed in to change notification settings - Fork 6
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
[#2076] Replace 2FA with maykin-2fa #1003
Conversation
0787acd
to
113def7
Compare
dae4f31
to
51fec04
Compare
d2df7c9
to
562c0e2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1003 +/- ##
===========================================
+ Coverage 94.91% 94.92% +0.01%
===========================================
Files 882 882
Lines 30748 30784 +36
===========================================
+ Hits 29183 29221 +38
+ Misses 1565 1563 -2 ☔ View full report in Codecov by Sentry. |
376238b
to
db1ef13
Compare
We're running a very old version of django-admin-index (1.5.0 vs current 3.1.0), and an old version of django-ordered-model (3.4.3 vs 3.7). The upgrade is not entirely straightforward, as the styling for django-admin-index has been completely revamped. I've created a separate issue for the upgrade (here). |
b38e1d6
to
13de0b8
Compare
|
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.
Looks good! I ran into some issues while testing OIDC login, but this seems to be unrelated to this PR (https://taiga.maykinmedia.nl/project/open-inwoner/issue/2101)
43d9c39
to
3c620cd
Compare
c6bada4
to
45f284f
Compare
45f284f
to
cd3359b
Compare
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.
Looks good, just have one question regarding CMS toolbar
@@ -101,9 +100,13 @@ div.breadcrumbs { | |||
#content { | |||
/* adjusting for django-cms page */ | |||
#changelist:not([class~='cms-pagetree-root']) { | |||
display: grid; | |||
grid-template-columns: 1fr 360px; | |||
display: block; |
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.
I'm not sure what causes this (or if it is an issue at all, because I know very little about django-cms), but if I log in as an admin, I don't get to see the CMS toolbar if I navigate to the frontend (if I try the same on develop it does show the toolbar):
I can only get the toolbar to show if I go to a page in the admin and then click the view button
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.
This might be related to the changes to DropToolbarMiddleware
. I'll look into it.
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.
The toobar seems to be disabled by installing maykin-2fa
, not sure why. You can re-enable it by appending /?edit
in the url bar. I tried logging out in in again and at least it seems to stick around after being re-enabled.
cd3359b
to
1d85d4e
Compare
* upgrade mayin-2fa to 1.0.0 * upgrade django-otp to 1.3.0 * upgrade django-two-factor-auth to 1.16.0
1d85d4e
to
2330eff
Compare
|
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.
I left a small observation not sure if it is something.
@Bartvaderkin Do you mean the clarification about |
All in all an easy upgrade!
A few things to note: