Open wouter1975 opened 2 weeks ago
No response
The following GQL call uses the filterBy on the customer shortcode. In one example request the service for OU will find matches for OU and Testaccount, which results in incorrect data.
OU
Testaccount
Related FE ticket: https://github.com/workfloworchestrator/orchestrator-ui-library/issues/1542
query SubscriptionsForCustomerQuery($shortcode: String!, $numberOfSubscriptionsPerCustomer: Int!, $filterSubscriptionBy: [GraphqlFilter!]) { customers (filterBy: { field: "shortcode", value: $shortcode}) { page { customerId subscriptions (first: $numberOfSubscriptionsPerCustomer, after: 0, filterBy: $filterSubscriptionBy, sortBy: [{field: "productTag", order: ASC}] ) { page { subscriptionId description product { name productType tag } customerDescriptions { description customerId } } } } } }
Solution:
FILTER_BY_MODE
exact
partial
latest
SURF ref: https://git.ia.surfsara.nl/netdev/automation/projects/orchestrator/-/issues/2174
Contact Details
No response
What happened?
Summary
The following GQL call uses the filterBy on the customer shortcode. In one example request the service for
OU
will find matches forOU
andTestaccount
, which results in incorrect data.Related FE ticket: https://github.com/workfloworchestrator/orchestrator-ui-library/issues/1542
Solution:
FILTER_BY_MODE
with optionexact
/partial
exact
Version
latest
What python version are you seeing the problem on?
No response
Relevant log output
No response