fossilfuelregistry / portal

3 stars 0 forks source link

Filter Field data on visible switch #196

Open OpenOilUG opened 1 year ago

OpenOilUG commented 1 year ago

Project data need to be filtered on the visible switch in the Projects table. This switch is Boolean and set by default to TRUE. But it has been turned off as editorial decision in two classes of cases: 1) when the projects are too small to be material 2) when there are duplicate entries for the same project from different sources and the decision has been taken to privilege one entry over the others. In such cases the visible column in the table Projects switch is set to FALSE. The project should therefore not appear in either: A) the drop down list of projects available at the top of the country page B) the list of largest fields in the country page.

OpenOilUG commented 1 year ago

E.g. the project of Girassol in Angola has three entires in the project table:

https://fossilfuelregistry-v2-kb3l6.ondigitalocean.app/project/817 https://fossilfuelregistry-v2-kb3l6.ondigitalocean.app/project/45792 https://fossilfuelregistry-v2-kb3l6.ondigitalocean.app/project/123923

Of these only the last one - project 123923 - should be visible. It is the only one that has the visible column in Prrojects set to TRUE.