Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[geogig-dev] How to debug hooks execution

Hi all,

I'm currently testing some post commit hooks, but none of them seems to work.

Is there a way to debug hooks execution, maybe via logging?

Here goes the ones I' tried:

post_commit.js

// Just as the docs example, to unmap "osm_roads" tree

var diffs = geogig.getFeaturesToCommit("osm_roads", false);
if (diffs.length > 0){
    var params = {"path" : "osm_roads"};
    geogig.run("org.geogig.osm.internal.OSMUnmapOp", params);
}

Have tried a similar Python script:

post_commit.py

diffs = geogig.getFeaturesToCommit('osm_roads', False);
if len(diffs):
    params = {"path" : "osm_roads"}
    geogig.run("org.geogig.osm.internal.OSMUnmapOp", params)

I've tried scripts with just geogig.run without conditions, and didn't work.

Testing it with interactions via the Geogig Geoserver plugin.


Thanks,


Luiz Fernando Barbosa Vital
ZNC Sistemas

Back to the top