123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- [
- {
- "desc": "Numeric format should still return a string if field isn't allowed",
- "query": "random_field:>500",
- "result": [
- {"type": "spaces", "value": ""},
- {
- "type": "filter",
- "filter": "text",
- "negated": false,
- "key": {"type": "keySimple", "value": "random_field", "quoted": false},
- "operator": "",
- "value": {"type": "valueText", "value": ">500", "quoted": false}
- },
- {"type": "spaces", "value": ""}
- ]
- },
- {
- "desc": "Numeric format should not negate operator if field isn't allowed",
- "query": "!random_field:>500",
- "result": [
- {"type": "spaces", "value": ""},
- {
- "type": "filter",
- "filter": "text",
- "negated": true,
- "key": {"type": "keySimple", "value": "random_field", "quoted": false},
- "operator": "",
- "value": {"type": "valueText", "value": ">500", "quoted": false}
- },
- {"type": "spaces", "value": ""}
- ]
- },
- {
- "query": "!random_field:500",
- "result": [
- {"type": "spaces", "value": ""},
- {
- "type": "filter",
- "filter": "text",
- "negated": true,
- "key": {"type": "keySimple", "value": "random_field", "quoted": false},
- "operator": "",
- "value": {"type": "valueText", "value": "500", "quoted": false}
- },
- {"type": "spaces", "value": ""}
- ]
- },
- {
- "query": "project_id:-500",
- "result": [
- {"type": "spaces", "value": ""},
- {
- "type": "filter",
- "filter": "numeric",
- "negated": false,
- "key": {"type": "keySimple", "value": "project_id", "quoted": false},
- "operator": "",
- "value": {
- "type": "valueNumber",
- "value": "-500",
- "unit": null,
- "parsed": {"value": -500}
- }
- },
- {"type": "spaces", "value": ""}
- ]
- },
- {
- "query": "!issue.id:500",
- "result": [
- {"type": "spaces", "value": ""},
- {
- "type": "filter",
- "filter": "numeric",
- "negated": true,
- "key": {"type": "keySimple", "value": "issue.id", "quoted": false},
- "operator": "",
- "value": {
- "type": "valueNumber",
- "value": "500",
- "unit": null,
- "parsed": {"value": 500}
- }
- },
- {"type": "spaces", "value": ""}
- ]
- },
- {
- "query": "issue.id:<500",
- "result": [
- {"type": "spaces", "value": ""},
- {
- "type": "filter",
- "filter": "numeric",
- "negated": false,
- "key": {"type": "keySimple", "value": "issue.id", "quoted": false},
- "operator": "<",
- "value": {
- "type": "valueNumber",
- "value": "500",
- "unit": null,
- "parsed": {"value": 500}
- }
- },
- {"type": "spaces", "value": ""}
- ]
- }
- ]
|