Skip to content

Improve Customer GraphQL Model code quality #14158

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

Conversation

elzekool
Copy link
Contributor

The GraphQL Customer Model used "4" as customer type. This makes is less clear what the intent is. Corrected it to use the relevant USER_TYPE_GUEST from UserContextInterface. Also removed an unused import and unneeded fully qualified class name.

Contribution checklist

  • [x ] Pull request has a meaningful description of its purpose
  • [ x] All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

- Remove unused import
- Use constant instead of numer for USER_TYPE_GUEST
- Removed unneeded fully qualified class name
@elzekool elzekool force-pushed the feature/improve-customer-graphql-model branch from 845cfa6 to bae191e Compare March 17, 2018 14:34
@magento-engcom-team magento-engcom-team merged commit bae191e into magento:2.3-develop Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants