OrigamiStructures / StudioManagerScratch

A place to push around some experimental code
0 stars 0 forks source link

Find-Members API call point needed #179

Open dreamingmind opened 4 years ago

dreamingmind commented 4 years ago

The need for, and requirements for a findMembers() finder call of some sort is becoming clear.

With Share records now adding to the set of visible cardfile records, the current index page queries are inadequate. They were already failing to take into account Manifest connections to foreign supervisors, managers, and artists.

The requirements of these queries (including the need to be index-filter aware) are getting complicated. So it's definitely time to figure out a single (or very few) call points to handle all this.

dreamingmind commented 4 years ago

It might be possible to pass a Share entity to the finder as an argument. But then again, this is the kind of coupling that I've been trying to avoid.

By extracting the Share values in a controller and setting them to the finder call, I think the code seems less 'magical'. And the Table class doesn't need to know the interface of the entity (a form of coupling).