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

Is it possible to access an object Git history using the API?

Solved!
rmnvncnt
Level 3
Is it possible to access an object Git history using the API?
I'd like to know if a project has been modified during a given period of time (to manage version control in an automatic way). Is it possible to access projects elements using the API to know if they have been modified?
0 Kudos
1 Solution
Alex_Combessie
Dataiker Alumni

Hi,



When GETting some objects, you may have a versionTag in the response with a lastModifiedOn timestamp. However, this is not available at project level. It would be possible to reconstruct it by iterating over all objects within a project, but is more involved.



A simpler approach would be to use the internal commits database, as shown below:





This dataset has all the commits by date for all projects. It can be used in a Scenario to automate the identification of recently modified vs "stale" projects.



Hope it helps, 



Alex

View solution in original post

0 Kudos
2 Replies
Alex_Combessie
Dataiker Alumni

Hi,



When GETting some objects, you may have a versionTag in the response with a lastModifiedOn timestamp. However, this is not available at project level. It would be possible to reconstruct it by iterating over all objects within a project, but is more involved.



A simpler approach would be to use the internal commits database, as shown below:





This dataset has all the commits by date for all projects. It can be used in a Scenario to automate the identification of recently modified vs "stale" projects.



Hope it helps, 



Alex

0 Kudos
rmnvncnt
Level 3
Author
Thanks!
0 Kudos

Labels

?
Labels (2)
A banner prompting to get Dataiku