-
Notifications
You must be signed in to change notification settings - Fork 15
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
Bookmark tool is not saving bookmarks #270
Comments
assign me |
It's no longer working in Olive.3 according to some recent tests. |
Hi @Henrrypg Are you still pursuing this? |
When we click "bookmark this page", the learning MFE makes a POST to http://apps.local.overhang.io/api/bookmarks/v1/bookmarks/. Of course this page does not exist because there is no MFE running at "/api". So the MFE server does what it usually does when it doesn't know what to do with a request: make an empty 200 response... (don't blame me, this is part of the MFE spec!) The POST should be made to http://local.overhang.io/api/bookmarks/v1/bookmarks/ (the lms container), and not http://apps.local.overhang.io/... (the mfe container). But I do not understand why this is the case. It does seem like the learning MFE is using the LMS_BASE_URL: https://github.com/openedx/frontend-app-learning/blob/open-release/olive.master/src/courseware/course/bookmark/data/api.js The behaviour in "dev" is interesting. When I click "bookmark this page" a call is made to http://localhost:18000/csrf/api/v1/token instead of http://lms.overhang.io:8000/csrf/api/v1/token. This suggests that the LMS_BASE_URL setting is incorrectly read or defined by the bookmarks tool. When I add a breakpoint to the learning MFE I see that the configuration seems to come from build time, not runtime: (apologize the crude debugging, my frontend skills are not that great...) My interpretation is that the bookmarks tool does not make use of the runtime configuration. How can I confirm this intuition? |
Hello @DeanJayMathew, i was testing and my first approach was same as @regisb. But i'm having problems with my frontend and MFEs skills to get a solutions for that. I'll unassign me to left it to somebody with more frontend skills and i'll take another task. |
This change makes it possible to use the latest LMS_BASE_API if it was changed because of dynamic config API, which is the default case of tutor. This changes closes openedx/wg-build-test-release/issues/270 Fixes that are simlar to this - gradebook openedx/frontend-app-gradebook/pull/290 - course authoring openedx/frontend-app-authoring/pull/389
A propose changes to fix issue, has been summited at: |
This change makes it possible to use the latest LMS_BASE_API if it was changed because of dynamic config API, which is the default case of tutor. This changes closes openedx/wg-build-test-release/issues/270 Fixes that are simlar to this - gradebook openedx/frontend-app-gradebook/pull/290 - course authoring openedx/frontend-app-authoring/pull/389
Here's the backport PR: openedx/frontend-app-learning#1123 Can someone please review and merge? |
This change makes it possible to use the latest LMS_BASE_API if it was changed because of dynamic config API, which is the default case of tutor. This changes closes openedx/wg-build-test-release/issues/270 Fixes that are simlar to this - gradebook openedx/frontend-app-gradebook/pull/290 - course authoring openedx/frontend-app-authoring/pull/389
This change makes it possible to use the latest LMS_BASE_API if it was changed because of dynamic config API, which is the default case of tutor. This changes closes openedx/wg-build-test-release/issues/270 Fixes that are simlar to this - gradebook openedx/frontend-app-gradebook/pull/290 - course authoring openedx/frontend-app-authoring/pull/389
This change makes it possible to use the latest LMS_BASE_API if it was changed because of dynamic config API, which is the default case of tutor. This changes closes openedx/wg-build-test-release/issues/270 Fixes that are simlar to this - gradebook openedx/frontend-app-gradebook/pull/290 - course authoring openedx/frontend-app-authoring/pull/389
This change makes it possible to use the latest LMS_BASE_API if it was changed because of dynamic config API, which is the default case of tutor. This changes closes openedx/wg-build-test-release/issues/270 Fixes that are simlar to this - gradebook openedx/frontend-app-gradebook/pull/290 - course authoring openedx/frontend-app-authoring/pull/389
Bookmark functionality appears to not be working in Palm demo instance.
Steps to recreate:
PRs
The text was updated successfully, but these errors were encountered: