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

OpenRefine / OpenRefine / 23477982915

24 Mar 2026 07:26AM UTC coverage: 71.072% (+20.3%) from 50.749%
23477982915

Pull #7729

github

web-flow
Merge 34a4cd793 into b114f52dc
Pull Request #7729: Make clustering operations cancellable with progress feedback

3472 of 5593 branches covered (62.08%)

Branch coverage included in aggregate %.

24 of 58 new or added lines in 3 files covered. (41.38%)

10041 of 13420 relevant lines covered (74.82%)

3.9 hits per line

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

0.0
/main/src/com/google/refine/commands/browsing/CancelClusteringCommand.java
1

2
package com.google.refine.commands.browsing;
3

4
import java.io.IOException;
5

6
import javax.servlet.ServletException;
7
import javax.servlet.http.HttpServletRequest;
8
import javax.servlet.http.HttpServletResponse;
9

10
import com.google.refine.commands.Command;
11
import com.google.refine.model.Project;
12
import com.google.refine.util.ParsingUtilities;
13

NEW
14
public class CancelClusteringCommand extends Command {
×
15

16
    @Override
17
    public void doPost(HttpServletRequest request, HttpServletResponse response)
18
            throws ServletException, IOException {
NEW
19
        if (!hasValidCSRFToken(request)) {
×
NEW
20
            respondCSRFError(response);
×
NEW
21
            return;
×
22
        }
23

24
        try {
NEW
25
            Project project = getProject(request);
×
NEW
26
            ComputeClustersCommand.cancelActiveProcess(project.id);
×
NEW
27
            respondJSON(response, ParsingUtilities.mapper.createObjectNode().put("code", "ok"));
×
NEW
28
        } catch (Exception e) {
×
NEW
29
            respondException(response, e);
×
NEW
30
        }
×
NEW
31
    }
×
32
}
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