• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OpenRefine / OpenRefine / 14245837193

03 Apr 2025 02:41PM UTC coverage: 50.325% (+0.05%) from 50.273%
14245837193

push

github

web-flow
Enable custom clustering for non-GREL expressions (#7243)

* Enable user defined clustering with non-GREL

Removes a hard coded value that allowed user defined clustering
only for GREL expressions.

Adds some tests with a mock parser to show that we now support arbitrary
expressions, as long as they have a registered parser to evaluate them.

* Fix requests in clustering dialogs

- Add missing and/or fix wrong csrf tokens to post requests.
- Add missing language prefix to expressions.

* Add value1 and value2 to Jython and Clojure

In UserDefinedDistance.java (#6612) we introduced two new variables
`value1` and `value2`. In GREL these are accessible as "globals".

But in Jython and Clojure we encapsulate the expressions in functions
and only pass certain variables as parameters
(value, cell, cells, row, rowIndex).

This means that in Jython and Clojure expressions we can not access
variables like `columnName`.

This also means that we somehow have to make the new variables
`value1` and `value2` accessible to Jython and Clojure expressions.

Without rewriting the whole Jython and Clojure integrations
it felt most idiomatic to also introduce these variables as parameters
to the Jython and Clojure functions that encapsulate the expressions.

But it is still somewhat unsatisfying that we have a different pool of
available variables in GREL and (possibly) each other language integration.

* Perform automatic linting

5656 of 12780 branches covered (44.26%)

Branch coverage included in aggregate %.

14371 of 27015 relevant lines covered (53.2%)

2.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.7
/com/google/refine/jython/JythonEvaluable.java


Source Not Available

The file "com/google/refine/jython/JythonEvaluable.java" isn't available on github. Either it's been removed, or the repo root directory needs to be updated.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc