-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assets endpoints are missing CLI transport #211
Comments
Ping on this one. |
The quickest path to get something live here is to handle this in the same way Is the API consolidation a firm requirement? If not, we can get this live pretty quickly. |
I think the API consolidation might be a requirement, otherwise we'd have to do that in the UI codebase – the desktop app would have to know if the assets were coming from the API or CLI and act accordingly. |
Couldn't the desktop application call I think I'm lacking context: since web uses API asset download and desktop uses CLI asset download today and things work fine, why do we need to consolidate the underlying semantics of how the API vs. CLI work to move these to SDK requests, especially if application behavior isn't changing? |
Partial sync means that the assets will not always be on disk, especially for the usecase of a developer attempting to download assets from a designers branch – they are unlikely to have the project cloned/synced locally – in this case we'll need to fall back to the API transport in desktop. |
Sorry to push the point, but couldn't desktop clients use the already-existing API asset endpoint in the case described above in which an asset is not local? E.g. where a desktop client currently calls into the CLI directly to save a local asset, it could instead call I agree that we should consolidate the semantics of the API and CLI at some point, but I still don't see how this is a blocker or why we shouldn't at least expose current CLI asset behavior to unblock partial sync / the scenario described above. |
No I don't think so – as long as we can use both transports to save the resulting asset to a specific location on disk with the same interface that's all that should be needed. |
This will soon become a blocker for partial sync. Currently asset download on web / desktop work quite differently – perhaps this is an opportunity to bring them more inline?
Related #84
The text was updated successfully, but these errors were encountered: