-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fixes 7939: Admin navbar misplaced fix #7940
Conversation
Assigning @nithusha21 for the first-pass review of this pull request. Thanks! |
Codecov Report
@@ Coverage Diff @@
## develop #7940 +/- ##
===========================================
+ Coverage 83.97% 83.98% +0.01%
===========================================
Files 1150 1131 -19
Lines 68617 68087 -530
Branches 3913 3828 -85
===========================================
- Hits 57621 57180 -441
+ Misses 9660 9617 -43
+ Partials 1336 1290 -46
|
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 @Showtim3!
Please address @DubeySandeep's comment before merging. Also, I have just checked the admin page and it is working correctly. Since you have changed oppia-navbar
class, please ensure that this change does not break any other navbars which use this class.
@DubeySandeep PTAL! |
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.
Thanks @Showtim3! I don't have concerns about the fix itself but I do have a question. How did this error get introduced into the codebase?
@seanlip I am not sure about it either, I just started the dev server after a long time(since the migration stuff doesnt require that) and encountered this bug. Not sure how it got in the first place. |
Could you please do some bisection to check? I.e. look at the commit history and binary search to find the first commit which introduced the bug. (We should try and analyze that so that things like this don't recur in the future.) |
@seanlip I couln't find any code change that might have caused the navbar to broke. So m pretty sure it is caused by the bootstrap upgrade since the admin navbar has a class |
You should be able to identify the commit that caused the breakage, though. See https://git-scm.com/docs/git-bisect -- basically, check out historical commits and start the server on each one until you find two consecutive commits where the navbar works correctly for the earlier one, and breaks for the later one. |
@seanlip Hey Sean, I tried using the git bisect but at a point of time our dev scripts started colliding like I reached a particular commit and the scripts were back to being |
Ah, OK. Let's leave it then. Thank you for investigating! |
Merging :) Thanks @Showtim3! @ankita240796 does this need to be merged into the current release? If not please feel free to remove the "PR: for current release" label. Thanks! |
Yes, it needs to be cherry-picked. Thanks for the ping! |
* fixing admin navbar * Removing property from oppia.css
Explanation
Fixes #7939 Admin Navbar position.
I have verified that the navbar is not breaking at other pages. The file that contains this navbar is
admin-navbar.directive.html
but the css that it is getting is from theoppia.css
Checklist
python -m scripts.pre_commit_linter
andpython -m scripts.run_frontend_tests
.