Skip to content
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

fix: form submission when country is not requried #1099

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

ghassanmas
Copy link
Member

Description

When country is not required to submit, the displayValue check
will always return true. This fixes it by only check it if it's
needed through the config SHOW_CONFIGURABLE_EDX_FIELDS

This issue might has been discoverd at edx.org becuase edx.org
requires the Country to be filled when creating an account,
however this is not the case for Open edX by default, hence the
issue reported below

Ref: openedx/wg-build-test-release/issues/318

How Has This Been Tested?

Please describe in detail how you tested your changes.

You would need to locally install tutor and tutor-mfe quince branch and then try to recreate an account after all services has been inits. And lastly rebuild the MFE image using my fork as a base and you should then be able to create an account

Merge Checklist

  • If your update includes visual changes, have they been reviewed by a designer? Send them a link to the Sandbox, if applicable.
  • Is there adequate test coverage for your changes?

Post-merge Checklist

  • Backport to it to quicne.master

  When country is not required to submit, the displayValue check
  will always return true. This fixes it by only check it if it's
  needed through the config `SHOW_CONFIGURABLE_EDX_FIELDS`

  This issue might has been discoverd at edx.org becuase edx.org
  requires the Country to be filled when creating an account,
  however this is not the case for Open edX by default, hence the
  issue reported below

  Ref: openedx/wg-build-test-release/issues/318
@ghassanmas ghassanmas requested a review from a team as a code owner November 2, 2023 14:20
@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Nov 2, 2023
@openedx-webhooks
Copy link

Thanks for the pull request, @ghassanmas! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (397c237) 86.98% compared to head (446d0ef) 86.98%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1099   +/-   ##
=======================================
  Coverage   86.98%   86.98%           
=======================================
  Files         124      124           
  Lines        2266     2267    +1     
  Branches      624      625    +1     
=======================================
+ Hits         1971     1972    +1     
  Misses        286      286           
  Partials        9        9           
Files Coverage Δ
src/register/data/utils.js 98.03% <100.00%> (+0.03%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mphilbrick211 mphilbrick211 added the waiting for eng review PR is ready for review. Review and merge it, or suggest changes. label Nov 2, 2023
@mphilbrick211
Copy link

Hi @openedx/vanguards! This is ready for review / merge. Thanks!

Copy link
Contributor

@attiyaIshaque attiyaIshaque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@mphilbrick211
Copy link

Thanks, @attiyaIshaque! Are you able to merge this for us?

@mariajgrimaldi
Copy link
Member

Hi @attiyaIshaque: could you merge this for us? It's one of the main issues the Quince testing plan raised, so it's crucial for the release.

@kdmccormick kdmccormick merged commit 4466497 into openedx:master Nov 13, 2023
8 checks passed
@openedx-webhooks
Copy link

@ghassanmas 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@itsjeyd itsjeyd removed the waiting for eng review PR is ready for review. Review and merge it, or suggest changes. label Nov 17, 2023
arbrandes pushed a commit to arbrandes/frontend-app-authn that referenced this pull request Nov 17, 2023
When country is not required to submit, the displayValue check
will always return true. This fixes it by only check it if it's
needed through the config `SHOW_CONFIGURABLE_EDX_FIELDS`

This issue might has been discoverd at edx.org becuase edx.org
requires the Country to be filled when creating an account,
however this is not the case for Open edX by default, hence the
issue reported below

Ref: openedx/wg-build-test-release/issues/318
arbrandes pushed a commit that referenced this pull request Nov 17, 2023
When country is not required to submit, the displayValue check
will always return true. This fixes it by only check it if it's
needed through the config `SHOW_CONFIGURABLE_EDX_FIELDS`

This issue might has been discoverd at edx.org becuase edx.org
requires the Country to be filled when creating an account,
however this is not the case for Open edX by default, hence the
issue reported below

Ref: openedx/wg-build-test-release/issues/318
snglth pushed a commit to Abstract-Tech/community-theme-authn that referenced this pull request Jan 9, 2024
When country is not required to submit, the displayValue check
will always return true. This fixes it by only check it if it's
needed through the config `SHOW_CONFIGURABLE_EDX_FIELDS`

This issue might has been discoverd at edx.org becuase edx.org
requires the Country to be filled when creating an account,
however this is not the case for Open edX by default, hence the
issue reported below

Ref: openedx/wg-build-test-release/issues/318
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

7 participants