ec-doris / kohesio-backend

APIs serving Kohesio's frontend
https://kohesio.ec.europa.eu
6 stars 2 forks source link

Improve interaction between filters #195

Closed madewild closed 1 year ago

madewild commented 1 year ago

For instance, NUTS3 should be pre-filtered if country is selected. Other interactions (programmes etc.) to be defined.

DiaZork commented 1 year ago

It's done. @raphdom So for the program facet we have 2 new parameters

roberto-musmeci commented 1 year ago

@DiaZork @raphdom

Maybe there is something wrong. If you select Austria, then Carinthia here, you cannot chose any Program for the Program Type "investment Jobs and Growth"

Instead we should be able to select at least this program

raphdom commented 1 year ago

This is empty:

https://kohesio.development.ec.europa.eu/api/facet/eu/programs?country=https://linkedopendata.eu/entity/Q16&region=https://linkedopendata.eu/entity/Q2636&interreg=false&language=en

madewild commented 1 year ago

If we remove the region it works: https://kohesio.development.ec.europa.eu/api/facet/eu/programs?country=https://linkedopendata.eu/entity/Q16&interreg=false&language=en

So I guess Carinthia is not specific to this programme... it's implicit that a national programme encompasses all regions of the country, @DiaZork can you handle that?

DiaZork commented 1 year ago

Okay I look into it but that's strange it should already take care of this kind of case

DiaZork commented 1 year ago

Should be fix now.

roberto-musmeci commented 1 year ago

we can close this thanks :)