Open slifty opened 1 year ago
@slifty in https://github.com/PhilanthropyDataCommons/service/pull/320#discussion_r1183775968:
do you think rank needs to be exposed as opposed to just sorted by? I'm not sure if rank will have meaning to a client since it's just gonna be a number between 0 and 1 with no real basis outside of the query context
I wouldn't display the rank in the Data Viewer interface, but I don't see the harm / do see some value in the API returning it. If nothing else it's an ordering redundancy (in a good way; rocket ships, not pink slips).
I hear you but I'd like to understand use cases a bit -- redundancy without purpose isn't necessarily a value add IMHO, since it introduces the opportunity for inconsistency in addition to adding to the payload size.
Sure. I should have split my comment into more discrete comments:
Just dropping some food for thought from my high chair like an infant with Cheerios.
These are good points! I don't remember why it felt valuable to me to include in the API response, and this discussion hasn't come up with any sufficiently compelling reasons. If and when we come up with an actual use case, we can revisit!
this discussion hasn't come up with any sufficiently compelling reasons
Hey!
I mean, I agree, but still. Hey!
Haha, sorry @reefdog, what I should have written out in more detail: those hypothetical use cases sound plausible, and if someone chimes in that they non-hypothetically want to do one of those things, then we should figure out the best way to include the ranking in that case! Until then, since we know the data-viewer doesn't want it and nobody else has asked for it, let's keep it simple.
_Originally posted by @jasonaowen in https://github.com/PhilanthropyDataCommons/service/pull/320#discussion_r1183133196_