-
Notifications
You must be signed in to change notification settings - Fork 7
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
[PLA-1778] Add singleUseCodes filter to GetClaims query. #71
Conversation
PR Description updated to latest commit (9650bdd) |
PR Review 🔍
Code feedback:
|
PR Code Suggestions ✨
|
'singleUseCodes' => [ | ||
'type' => GraphQL::type('[String]'), | ||
'description' => __('enjin-platform-beam::mutation.claim_beam.args.single_use_code'), | ||
'rules' => ['prohibits:ids'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add string limit here just like the code validation, also we need to limit the array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This query has been overridden in the internal platform, you need to update the code there as well.
PR Type
Enhancement, Tests
Description
singleUseCodes
argument toGetClaims
query and implemented filtering logic.HasSingleUseCodeScope
trait for filtering by single use code and integrated it into theBeamClaim
model.single_use_code
argument inclaim_beam
.singleUseCodes
filter inGetClaims
query.fix
script for PHP CS Fixer incomposer.json
.singleUseCodes
argument toGetClaims
GraphQL query.Changes walkthrough 📝
mutation.php
Add translation for single use code argument.
lang/en/mutation.php
single_use_code
argument inclaim_beam
.GetClaimsQuery.php
Add singleUseCodes filter to GetClaims query.
src/GraphQL/Queries/GetClaimsQuery.php
singleUseCodes
argument toGetClaims
query.singleUseCodes
.BeamClaim.php
Integrate HasSingleUseCodeScope trait in BeamClaim model.
src/Models/Laravel/BeamClaim.php
HasSingleUseCodeScope
trait toBeamClaim
model.HasSingleUseCodeScope.php
Create HasSingleUseCodeScope trait for single use code filtering.
src/Models/Laravel/Traits/HasSingleUseCodeScope.php
HasSingleUseCodeScope
trait for filtering by single use code.composer.json
Add fix script for PHP CS Fixer.
composer.json
fix
script for PHP CS Fixer.GetClaims.graphql
Add singleUseCodes argument to GetClaims GraphQL query.
tests/Feature/GraphQL/Resources/GetClaims.graphql
singleUseCodes
argument toGetClaims
GraphQL query.GetClaimsTest.php
Add test for singleUseCodes filter in GetClaims query.
tests/Feature/GraphQL/Queries/GetClaimsTest.php
singleUseCodes
filter inGetClaims
query.