minder icon indicating copy to clipboard operation
minder copied to clipboard

minder datasource apply should use default project

Open puerco opened this issue 1 year ago • 1 comments

Describe the issue

Invoking minder datasource apply on a file without a project id set in the context fails:

Message: error applying data source from datasource.yaml
Details: error creating data source from datasource.yaml: rpc error: code = InvalidArgument desc = context cannot be nil
exit status 3

Instead of the error, Minder should use the default project of the logged in user.

To Reproduce

Apply a data source without a project in the context section

What version are you using?

d26452d65750295d9c4450d17e953517caa32074

puerco avatar Dec 09 '24 14:12 puerco

So... can do without the project by doing

context: {}

The issue is if it's nil.

JAORMX avatar Dec 09 '24 14:12 JAORMX