-
Notifications
You must be signed in to change notification settings - Fork 80
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
Cannot create new course for new organization using the frontend-app-authoring MFE #1199
Comments
Looks like there is bug when the dropdown arrow is closed. If tab or the mouse is used to focus on the next input, the "Create" button is enabled. But when the dropdown toggle is used, the "Create" button is always disabled |
Came here to file this bug. Glad it exists. Following. For anyone looking for a workaround: Click on "New Library" in the course-authoring MFE, which will drop you into the non-MFE version of the builder and allow you to successfully create a course using the old workflow (click on "New Course" once your URL starts with your defined Studio endpoint/URL). |
I tried to reproduce this issue but I believe it is working fine for me, I have also attached a video please feel free to point out if I am not following the current process. frontend-app-course-authoring-git-issue-low.mov |
Hi @KristinAoki @regisb @KristinAoki
Next, a check is triggered to ensure that not all fields in this form are filled out. As a result, the button becomes inactive. And the only thing that saves us is re-rendering this component. |
Thanks for the investigation @DmytroAlipov. If I understand correctly, the next enigma to resolve is why useFormik returns an "undefined" field -- right? |
That's right @regisb ! I assume that Formik somehow gets a field that is a dropdown. Dropdown doesn't have a name attribute. Therefore, the output is an object with the field name "undefined". |
Huge kudos to you @DmytroAlipov for investigating the issue and proposing PRs with a fix. While your PR #1276 (and its backport #1277) do we fix the issue, I think that we can all agree that the merged changes partially hide the real problem, which remains unknow. Thus, I'm re-opening this issue. |
According to my tests, PR #1277 does not fix the issue in Redwood. The "Create" button remains deactivated until I pick a new organization. @DmytroAlipov am I doing something wrong? |
@regisb Everything works correctly for me: Indeed I recreated the problem by switching between fields with Tab only: Most likely the problem is in the
Other fields immediately change state when the number of characters changes. |
@regisb |
@DmytroAlipov I don't know how to backport #1279 to Redwood. Can you help me out? |
@regisb There is a difficulty with this since this fix concerns frontend-lib-content-components, which is already deprecated. |
@DmytroAlipov I'm happy to temporarily un-archive that repo so that we can backport a fix to it and publish a new release before re-archiving it. Let me know if you'd like me to. |
@regisb @kdmccormick I don't mind making these changes, it's not difficult. But I have one more question regarding this fix. When switching between fields using the Tab button, no error is displayed for the organization field: When using the mouse pointer we get this behavior: @kdmccormick By the way, I have several issues that I have already fixed for the master, but did not add the fixes to Redwood, since it should be to frontend-lib-content-components |
Hi @kdmccormick, could you help us backport this before the next Redwood cut? Thanks! |
I un-archived https://github.com/openedx/frontend-lib-content-components, and granted write access to both the release manager and https://github.com/orgs/openedx/teams/committers-frontend . Feel free to backport the fix to the main branch of that repo, cut a v2.6.11 release, and then backport the v2.6.11 pin to the redwood branch of frontend-app-authoring. After Sumac is released, I'll re-archive frontend-lib-content-components. |
Hi @DmytroAlipov, would you give us a hand with the backports? Let us know! |
Hi @mariajgrimaldi |
We are planning to test the backport with @DmytroAlipov tomorrow. Will update the ticket with the results. |
When using Tab to move from Org field to the next Course number field the Org value is not saved. Closes openedx/frontend-app-authoring#1199 for Redwood release.
@mariajgrimaldi @arbrandes |
When using Tab to move from Org field to the next Course number field the Org value is not saved. Closes openedx/frontend-app-authoring#1199 for Redwood release.
All PRs are merged. Fortunately, we can close the issue after testing. |
Removing the release blocker label as @cmltaWt0 mentioned in the BTR meeting. Thank you all! |
I think we're good, here. |
I feel a little silly for reporting this, because I'm 99% sure this use case was tested in the Redwood release. But I can't create courses, both in my local and productions installations of Open edX when the corresponding organization is new.
Steps to follow:
tutor local do createuser --superuser --staff admin [email protected]
❌ Use case 1: create course with new org
Screencast.from.01-08-2024.11.12.06.webm
(I wasn't able to display the mouse pointer in that screencast, but I tried to click the "Create" button and it remained disabled)
✔️ Use case 2: create course with existing org
On the other hand, if I try to create a new course with an existing organization, the "Create" button is correctly toggled on:
Screencast.from.01-08-2024.11.14.28.webm
❌ Use case 3: create course with new org and switch back to existing org
Note that once I've filled a new org name, editing the field to an existing org name does not enable the "create" button either:
Screencast.from.01-08-2024.11.15.47.webm
This last use case leads me to think that the issues lies with the frontend code.
The text was updated successfully, but these errors were encountered: