You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The net result is that in the __custom_presign_url case, there's about 5+ layers it has to pass through to actually get result back.
Given that connectors are expected to be the new default path, it should be more clear.
Conceptually what feels like is missing is
A SignedURL generation class or something similar
All these functions are spread apart connections, media type specific, etc. and not sure if that's the most logical through thread
A refresh on what the expected default case is.
A "Return object" or something that better encapsulates the expected items.
Most of this is around error handling. e.g. we have http errors, our regular log system, etc. but it feels like this error handling gets very confused at the multiple layers. Sometimes we are only returning the error, sometimes the log, sometimes another object and the log, sometimes not returning at all, etc. Just feels very messy (each function maybe it's reasonable, but then used together it's very hard to follow).
New default is to generate "on demand" so should be something more about that and not regenerate
get_from_connector is a very thin pass through and feels like it confuses more then helps.
Note that it was thicker before, because it had duplicate error handling logic.
Generally this has evolved out of a system that did far less, and now needs some big refactors.
The text was updated successfully, but these errors were encountered:
Right now we have to go fairly far "down" to get a signed URL back.
Too many similar function calls without clear value add or difference.
The net result is that in the
__custom_presign_url
case, there's about 5+ layers it has to pass through to actually get result back.Given that connectors are expected to be the new default path, it should be more clear.
Conceptually what feels like is missing is
SignedURL generation
class or something similarAll these functions are spread apart connections, media type specific, etc. and not sure if that's the most logical through thread
Most of this is around error handling. e.g. we have http errors, our regular log system, etc. but it feels like this error handling gets very confused at the multiple layers. Sometimes we are only returning the error, sometimes the log, sometimes another object and the log, sometimes not returning at all, etc. Just feels very messy (each function maybe it's reasonable, but then used together it's very hard to follow).
fetch_data
/connector issues here Next iteration offetch_data
connectors concept #1524__custom_presign_url
Naming
regenerate
get_from_connector
is a very thin pass through and feels like it confuses more then helps.Note that it was thicker before, because it had duplicate error handling logic.
Generally this has evolved out of a system that did far less, and now needs some big refactors.
The text was updated successfully, but these errors were encountered: