neighbour-hoods / sensemaker-lite

11 stars 1 forks source link

Revise sensemaker so that methods are not associated specifically with resource definitions #69

Closed adaburrows closed 9 months ago

adaburrows commented 10 months ago

Currently there is a coupling of methods and resource definitions. While this makes sense in some limited fashion as a convenience to not have to pass the target_resource_def_eh into the method call, it also means we have to be careful to always change this when if we update things, since we never validate if the resource def eh is correct given the passed in resource eh. It also requires us to create methods for each resource type that will use a specific method which seems counter to the desire to have generic "programs" as methods for computing assessments along a specific dimension for a specific resource. In fact, the resource_def_eh really should only matter for filtering for specific views of specific resources.

Instead we should change things so that we need to pass the resource_def_eh into the method call function and remove the target_resource_def_eh parameter. So we need to:

I have not checked to see what changes need to be made in apps or the nh-launcher. But those should be separate tickets.