FREVA-CLINT / freva-web

BSD 2-Clause "Simplified" License
0 stars 1 forks source link

freva-web: solr has lost "experiment_prefix" utility-> it affects web decadal analysis #56

Closed eelucio closed 1 month ago

eelucio commented 3 months ago

As far as I am aware of, the freva-web has lost the solr/view.py experiment_prefix part:

        elif facets == "experiment_prefix":
            args["experiment"] = args.pop("experiment_prefix")
            results = reorder_results(freva.count_values(facet="experiment", **args))
            results["experiment_prefix"] = remove_year(results.pop("experiment"))
        else:
            if "experiment_prefix" in args:
                args["experiment"] = args.pop("experiment_prefix")[0] + "*"
            results = reorder_results(freva.count_values(facet=facets, **args))

as it now uses freva-databrowser endpoint instead that it does not consider it anymore (?) and has broken the web query utility.

Basically any web query relying on that will not work anymore: that means that e.g. decadal data plugin web runs are broken.

this issue is related to

antarcticrainforest commented 3 months ago

I am not sure I entirely understand this, but this sounds to me that it's a plugin issue.

eelucio commented 3 months ago

I am afraid is a problem on the freva-web side,

Some plugins (mostly decadal) rely on experiment_prefix that was part of the freva-web in order to search all decadal experiments such as:

> freva databrowser project=dcpp --facet experiment

dcppa-hindcast2005
dcppa-hindcast2006
dcppa-hindcast2007
dcppa-hindcast2008
dcppa-hindcast2009
dcppa-hindcast2010
...

where the prefix here would be dcppa-hindcast right now the the web is unable to resolve that (it was before, but since the recent update where the piece of code I mentioned above was removed is not anymore)