Skip to content

Remove random from standard functions to promote reliability #47

@cshaa

Description

@cshaa

The ideal filtrex expression should be reliable and return the same result every time it is evaluated. Letting the user call Math.random() by default goes against this principle and might lead to pathological applications states – imagine filtering a paginated list based on a random criterion.

Therefore, the random() function will be removed in v3. Anyone who needs it can pass it as a custom function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    designAn issue regarding the user experienceimplementedThis feature is implemented in `develop` and ready for testing

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions