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

Bug #10951 [Account] fix sync username with customer email #11048

Merged
merged 1 commit into from Aug 10, 2020

Conversation

hatem20
Copy link
Contributor

@hatem20 hatem20 commented Jan 20, 2020

If applied, this commit will

-make sync behavior works on both customer and shop user,
resulting in username will never by setting username value whenever
shop user or customer is inserted or updated.

Q A
Branch? 1.6 or master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #10951
License MIT

I could have used the solution proposed here
#10951 (comment)
but it might be better if the username is always in sync with customer email

@hatem20 hatem20 requested a review from a team as a code owner January 20, 2020 23:03
@hatem20 hatem20 force-pushed the issue_10951 branch 2 times, most recently from fc453bc to e9b92f9 Compare January 27, 2020 18:57
@lchrusciel
Copy link
Member

Hey @hatem20. The build is red and it seems, that it may be related to your PR. Can you rebase to the newest master and fix the build if it will not resolve all issues?

@probot-autolabeler probot-autolabeler bot added the Maintenance CI configurations, READMEs, releases, etc. label Jun 16, 2020
@hatem20 hatem20 changed the base branch from 1.7 to master June 16, 2020 10:43
@hatem20
Copy link
Contributor Author

hatem20 commented Jun 16, 2020

@lchrusciel failed again, and not related to PR

@probot-autolabeler probot-autolabeler bot added the Documentation Documentation related issues and PRs - requests, fixes, proposals. label Jun 16, 2020
@hatem20 hatem20 changed the base branch from master to 1.7 June 16, 2020 11:01
if applied, this commit will

-make sync behaviour works on both customer and shop user,
resulting in username will never by setting username value whenever
shopuser or customer are inserted or updated.
Copy link
Member

@lchrusciel lchrusciel left a comment

Choose a reason for hiding this comment

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

Hey Hatem,

it is been a while, but let's finally merge it ;) If you will find a moment, can you, please add a spec for new behavior as well?

@lchrusciel lchrusciel merged commit 51f3815 into Sylius:1.7 Aug 10, 2020
@lchrusciel
Copy link
Member

Thanks, Hatem! 🥇

@lchrusciel
Copy link
Member

Hey Hatem. Can you append your work with spec class? Your PR is not working as expected: https://master.demo.sylius.com/admin/customers/ however it seems, that what you have proposed is a useful fix. I would prefer to have at least spec for that. AFAIR, we are not allowing for shop user email update, so you won't be able to test it with behat.

If you will not cover it with spec, I will have to revert it before the nearest tag.

@hatem20
Copy link
Contributor Author

hatem20 commented Aug 11, 2020

@lchrusciel sure will add spec thanks, should I open new PR?

@lchrusciel
Copy link
Member

yes, please :)

@hatem20
Copy link
Contributor Author

hatem20 commented Aug 11, 2020

@lchrusciel I added spec as requested, but the PR is working as expected,
I think you are testing it against master while the PR is merged to 1.7 branch.
also, behat scenario is added.
I hope you correct me if I miss something

@lchrusciel
Copy link
Member

It seems, that you've spotted my mistake! I didn't up merge changes to the master, my fault. Nonetheless, the spec is a good addition to your fix. Thanks a lot for your work ;)

lchrusciel added a commit that referenced this pull request Aug 12, 2020
…atem20)

This PR was merged into the 1.7 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.7 
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | #10951
| License         | MIT

I added spec as request in #11048

<!--
 - Bug fixes must be submitted against the 1.7 branch (the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

c5e245f [Account] Add spec to sync username with customer email
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Documentation related issues and PRs - requests, fixes, proposals. Maintenance CI configurations, READMEs, releases, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Customer can login to the store" checkbox bug in the customer admin
2 participants