explicit implementation of this method should be in the sub class
Depends on a future diff to adapt the storage persistence of the origin_metadata (to sandbox the tool/provider bootstrap)
Differential D266
enable metadata injection from loader core moranegg on Nov 8 2017, 5:19 PM. Authored by
Details explicit implementation of this method should be in the sub class Depends on a future diff to adapt the storage persistence of the origin_metadata (to sandbox the tool/provider bootstrap)
Diff Detail
Event TimelineComment Actions Just remove the comment and it's good to go.
Comment Actions I think metadata should be added after the data has been fetched (maybe in store_data()?), as it might not be available before. The critical part of loading metadata is the storage calls, so that's really what should be implemented here, as send_origin_metadata / send_origin_visit_metadata functions that call the underlying storage methods. Comment Actions
We are biased by the deposit (we do have it before). But indeed, sounds more extensible that way.
Right. Comment Actions ack but I'm keeping it in store_metadata()
Excellent remark Comment Actions Huh? I think you arc diff --update the wrong diff. It should have beem arc diff --update D265.
Comment Actions Sorry about the mix-up, here it is again..
Comment Actions The question remains, is it the storage job or the other packages job to know that a certain provider has a certain id. If we want to start the new logic [solB] we were discussing, that only the storage resolves the ids Advantages for solA:
Advantages for solB:
if the resolution is at the storage level, no need for send_tool and send_provider implemented for each tool
with all that, I'm still not sure what is better. Comment Actions Yes, but that does not mean that because it is doing so, it's not self-contained already. Why would we need to do differently for the tool, provider, and whatever new object we would need in the future.
In my opinion, it's already done.
That's where we diverge, for me, it is not required that the storage resolves the id for the loader to be self-contained. For example, today other layer needs to be able to deal with tool registering (all indexers + loader-deposit). If we hide this in the storage, we need to duplicate that logic wherever it is hidden (in my understanding of your way, that would be in the origin_metadata_add entrypoint and in the content_mimetype_add, content_language_add...). I don't have time to answer the rest yet. Comment Actions
I don't think that's needed anymore (as per mention in previous comment).
Yes, and that's what we are doing today. Also, now T851 is done so the new endpoint to register tools exists (and the one for provider existed already).
Yes, as that is the case for loaders for the origin case :)
Because you are only seeing the origin_metadata case (think about the indexer which also have the tool registering step needed).
That would not be separated but bound to the origin_metadata case.
For me it's solA.
Yes, we do. Cheers, Comment Actions After some thoughts this weekend. I'm working now on these methods in the loader core: Seems it's the way we are dealing with origin_id This comment was removed by moranegg.
Comment Actions
|