Open shsuman opened 3 years ago
Quick proposal on how this might look in the schema.
Add a tag to the target property to indicate what acceptable compute types are for the current schema. For example, for a command job the schema can list a set of target types (computeCluster, computeInstance). This would require a contract between us and the schema owners. We need a mapping in the extension to know how their tags correspond to our shown resources.
This should be schema-driven instead of us adding logic on the client side to figure out whether the user is editing a file that accepts specific compute types (e.g. CommandJob compute doesn't accept Inferencing Clusters).