---
# System prepended metadata

title: Untitled

---

#### CCS-689

Fields Required for circuler check:
1. url
2. query string
3. filters
4. operation type [IS, STARTS_WITH, ENDS_WITH, CONTAINS]
5. circulerCheckFields: [Ntt, product.parentCategoryPaths.search] 

Solution:

case 1: Only query string is present

check for "Ntt" only with following operations:

checkPattern: "Ntt=check_string"

* IS: check_string = query
* STARTS_WITH: check_string = query + .*
* ENDS_WITH: check_string = .* + query
* CONTAINS: check_string = .* + query + .*


case 2: Only filters are present

check for each fields from circulerCheckFields

example:

In case of "product.parentCategoryPaths.search",

for each value in the corresponding field, check if url exactly contains "category/val_string".


case 3: Both query and filters are present
 Invalid case