* Add from_json() and to_json() expressions.
* Fix rebase mistake
* Refactor from/to json runtime formula types to re-use existing json ensurer.
* Add frontend counterpart for ensure json
* Rename regex var
* Simplify formula check.
* Improve formula function detection when JSON load fails
* Add new skill for creating/updating runtime formulas.
* Add abs() formula function
* Add getErrorMessage() to arg type to return a human-readable error message.
* Update skill to ensure getErrorMessage() is overridden when appropriate.
* Add null() runtime formula.
* Add number_format() runtime formula.
* Fix tests
* Add changelog entry
* Add date_interval() runtime formula.
* Fix test
* Add runtime formula: to_datetime()
* Update changelog
* Fix backend test
* Fix frontend test
* Add new ensure_date_interval() ensurer.
* Update descriptions and examples.
* Remove references to Moment.js
* Refactor validate_type_of_args() to return the index of the invalid arg.
* Refactor to_datetime() to use ensure_datetime()
* Use ensure_date_interval ensurer for IntervalStringBaserowRuntimeFormulaArgumentType
* Update skill with sections on ensurers.
* Add optional strict arg to ensure_datetime()
* Fix tests
* Simplify the ensure_string() to return total seconds for timedelta.
* ensure_date_interval() should also try to convert numbers to a timedelta.
* Fix test
* Use ensure_integer() in ensure_date_interval()
* Rename DateInterval to Duration
* Return an array of all possible errors.
* Use database duration parser for consistency
* Remove contrib references in core.
* Add additional test coverage
* Rename duration to to_duration
* Attempt to fix CI
* Reverting some changes
* Ensure empty string '' isn't accepted as a datetime format.
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* Initial batch of tests
* Ensure castToInt/castToFloat is taken care of by parser for random int/float
* Fix tests after rebase
* Update Boolean arg type to use ensurer in test()
* Add remaining tests for argument types
* 'and' and 'or' should be operator types
* Add 'and' and 'or' operators to formula visitor
* Add frontend tests
* Add integration tests for runtime formulas
* Disable flakey test
* Replace manual field name construction with db_column
* Allow lexicographical comparisons for >, <, >=, and <= operators.
* Improve/correct examples
* Ensure arithmetic operators can accept 2 or more args. Ensure frontend/backend formula functions are implemented similarly.
* Add and formula types.
* Fix bug reported by Frederik: concat should use Text arg type
* Update examples and small fixes.
* Lint fix
* Update and/or examples to use symbols. Add useStrict option to ensureBoolean().
* For operators, specify 2 args, since operators already reduce
* Replace manual checking of arg len
* Ensure backend implementation matches frontend
* Add castToInt option and make 2nd arg to round() an optional int
* Lint fix
* Formula should be considered invalid if it can't be resolved.
* Add boolean argument type
* Improve formula validation
* Improve validators.
* Lint fix
* Add changelog
* Clean up import
* Changes to allow testing literal formula in table field mappings
* Add formula function: upper()
* Use ensure*() in the test/parse methods. Add more functions.
* Add operators, description, and examples.
* Add addable and subtractable types
* Add random generator functions
* Add tests.
* Working formula input
* Simplify
* Further simplify
* Still working - simplified further
* Lint
* Undo changes in FieldMappingForm
* Use advanced mode, not raw
* Temp fix to align the checkbox and button
* Lint fix backend
* Lint fix frontend
* Lint fix
* Add translations
* Add advanced formulas to application builder
---------
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>