-
Notifications
You must be signed in to change notification settings - Fork 205
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
Added waffle flag state for Courseware Search #1199
Merged
Merged
Conversation
This file contains 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
rijuma
changed the title
Added waffle flag state for Courseware Search
Added waffle flag state for Courseware Search (wip)
Oct 4, 2023
rijuma
force-pushed
the
rijuma/courseware-search-waffle-flags
branch
3 times, most recently
from
October 10, 2023 14:05
d2a5202
to
c3eaded
Compare
rijuma
force-pushed
the
rijuma/courseware-search-waffle-flags
branch
8 times, most recently
from
October 11, 2023 21:05
a65fb4b
to
e99fc14
Compare
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1199 +/- ##
==========================================
+ Coverage 88.05% 88.09% +0.04%
==========================================
Files 266 268 +2
Lines 4519 4537 +18
Branches 1143 1145 +2
==========================================
+ Hits 3979 3997 +18
Misses 526 526
Partials 14 14
☔ View full report in Codecov by Sentry. |
rijuma
changed the title
Added waffle flag state for Courseware Search (wip)
Added waffle flag state for Courseware Search
Oct 11, 2023
rijuma
commented
Oct 11, 2023
rijuma
force-pushed
the
rijuma/courseware-search-waffle-flags
branch
from
October 11, 2023 21:29
e99fc14
to
30a0f3f
Compare
schenedx
approved these changes
Oct 12, 2023
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.
👍
rijuma
force-pushed
the
rijuma/courseware-search-waffle-flags
branch
from
October 12, 2023 15:10
30a0f3f
to
2d243a5
Compare
This was referenced Oct 25, 2023
CefBoud
pushed a commit
to open-craft/frontend-app-learning
that referenced
this pull request
Nov 5, 2023
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.
Description
Ticket: KBK-36 (internal)
This relates to an
edx-platform
PR which adds the endpoint to the LMS (openedx/edx-platform#33372)There's a project to add
edx-search
into the course home. Right now I'm creating a placeholder button which will respond to the Course Waffle Flag toggle ofcourseware.mfe_courseware_search
.UI changes
If the flag is enabled, a search button will be shown on the course's home navigation. I'm using the
float
property to position itself, which might sound controversial. This was the easiest way to achieve it since theCourseTabsNavigation
component has a wrapping logic whenever the navigation items don't fit. I've tried to move the navigation to a flex container but it just messes up with this logic. Luckily, the button is small enough so it does not interfere with the remaining space after folding.Testing Instructions:
Navigate to the LMS Admin and toggle
courseware.mfe_courseware_search
flag via:http://(...)/admin/waffle/flag/
http://(...)/admin/waffle_utils/waffleflagorgoverridemodel/
Results:
You should be able to see the search placeholder or not (see screenshot above) depending on the enabled state for the Waffle Flag.