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
{{ message }}
Repository navigation
Projects: be smarter about detecting project files #1061
When the Workspace reads the projects dir, right now it'll basically pull out all yaml files and assume they're project files.
But they might not be. If users are using their own project root, and particularly if they're using JSON formatted files, the projects folder could contain any old rubbish.
And right now if the Workspace finds a file that isn't a project file, it'll blow up. So we need to be more robust.
I've added a quick check to ignore openfn.yaml|json
Heuristics we might use:
The file should be in the format name@domain (this is annoying in some tests though, and do we want to be dogmatic about it?)
Duck type based on the top level keys - probably name, maybe id and workflows must be present
Just generally be more flexible: if we fail to load a Project from a file, just log a warning and move on. Don't let it blow us up
Activity