Submit your innovative use case or inspiring success story to the 2023 Dataiku Frontrunner Awards! LET'S GO

Project Variables and Git Version Control

tgb417
Project Variables and Git Version Control

Every time I run a scenario it updates the project variables.  This is good.  However, every time this occurs git sitting under DSS thinks that this project has had an update.  I've got hundreds of git commits for each project. One for each time I change a variable in the project file variables.json.

Can one use a .gitignore file with a DSS project?  Or is there a setting somewhere that I've not found that implements a similar feature?


Operating system used: Mac OS Ventura 13.0.1

--Tom
0 Kudos
4 Replies
tgb417
Author

for example, can I simply put a .gitignore file into:

dss_home/config/projects/[Project_NAME]

--Tom
0 Kudos
tgb417
Author

I see that the project directory

 

/Users/<username>/Library/DataScienceStudio/dss_home/config/projects/<project_key>

 

already has a .gitignore file.

Does anyone know if I will cause problems by adding the following to the project .gitignore file?

variables.json

 

--Tom
0 Kudos
tgb417
Author

I tried updating the .gitignore and running this in the project directory

git rm --cached variables.json

Git definitely ignored the file.  However, Dataiku DSS was still doing a commit every time the variables were changed.

My intended action is not to make commits for every variable change.

--Tom
0 Kudos
tgb417
Author

It looks like I could do the above and set the project to Manual Commit.

Does anyone have a better idea?

--Tom
0 Kudos