1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-16 03:42:41 +01:00
phorge-phorge/src/applications/search/field
Giedrius Dubinskas c71bb0550c Conduit accept int/bool parameters as strings
Summary: Accept Conduit parameter values as strings (e.g. from `curl`) and convert to required type.

Test Plan:
Call conduit method with int/bool parameter iusing `curl` and make sure it does not result in validation error, e.g.
```
$ curl http://$PHABRICATOR_HOST/api/maniphest.search -d api.token=$CONDUIT_TOKEN -d constraints[modifiedEnd]=$(date +%s) -d constraints[hasParents]=true -d limit=1
```

Fixes T10456.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Maniphest Tasks: T10456

Differential Revision: https://secure.phabricator.com/D16694
2016-10-14 14:45:57 +00:00
..
PhabricatorIDsSearchField.php Don't allow empty list constraints in Conduit calls 2016-08-14 08:31:13 -07:00
PhabricatorPHIDsSearchField.php Don't allow empty list constraints in Conduit calls 2016-08-14 08:31:13 -07:00
PhabricatorSearchCheckboxesField.php Add basic typechecking support to Conduit 2015-12-14 04:21:39 -08:00
PhabricatorSearchCustomFieldProxyField.php Flesh out Conduit parameter types for Owners + CustomFields 2015-12-14 04:23:44 -08:00
PhabricatorSearchDatasourceField.php Don't allow empty list constraints in Conduit calls 2016-08-14 08:31:13 -07:00
PhabricatorSearchDateControlField.php Refactor Calendar Search, and implement Projects on events 2015-06-22 13:27:37 -07:00
PhabricatorSearchDateField.php Correct an issue with epoch timestamps in Conduit 2016-07-26 11:02:46 -07:00
PhabricatorSearchField.php Conduit accept int/bool parameters as strings 2016-10-14 14:45:57 +00:00
PhabricatorSearchOrderField.php Make "Order By" field render correctly when showing a SavedQuery with an order alias 2015-06-09 13:49:01 -07:00
PhabricatorSearchSelectField.php Convert Macro to SearchFields 2015-06-08 12:22:09 -07:00
PhabricatorSearchStringListField.php Update Buildable search in Harbormaster 2016-02-27 07:13:10 -08:00
PhabricatorSearchSubscribersField.php Flesh out Conduit types for Paste search fields 2015-12-14 04:23:28 -08:00
PhabricatorSearchTextField.php Expose modern *.search Conduit endpoints in Almanac 2016-02-23 08:20:57 -08:00
PhabricatorSearchThreeStateField.php Add a modern user.search Conduit API method 2016-05-22 05:54:31 -07:00
PhabricatorSearchTokenizerField.php Make Subscribers automatically provide working SearchFields 2015-06-08 12:20:53 -07:00