Open techgique opened 1 year ago
@techgique Do you envision a list of git commands or a script that will do this? Can all of this be handled in Git?
Like this?
git diff --name-only [current version tag] [previous version tag] app/views/items app/views/layouts/body app/views/controllers app/helpers
Git diff [current version tag] [previous version tag] app/views/items
Git diff [current version tag] [previous version tag] app/views/layouts/body
Git diff [current version tag] [previous version tag] app/views/controllers
Git diff [current version tag] [previous version tag] app/helpers
I think this gets all the files that are typically overriden. (other than config files) The only change would be in the names of the versions.
I added the above to the latest version of the changelog
Seeing a list of controllers, helpers, and views updated in Orchid would be more helpful than our brief text descriptions of changes in our changelog when actually updating Orchid-based Rails apps. These lists of files are easily obtained with a git diff command specifying the tags or branches to diff followed by the directory to compare:
I looked into GitHub compare, but it doesn't allow one to narrow to specific directories like this.
From this, one can compare to the list of overrides in an Orchid-based Rails app. Then one can drop the
--name-only
option and specify only the files relevant to see the full diff of changes that probably need to be incorporated. I think this will make it easier to review Orchid-based Rails apps when we update the version of Orchid they are using.To not bloat the changelog, maybe we should just include example commands at the top of the changelog for reference rather than include the exact commands and/or output in our Migration section of our changelogs per release.
Example situation where these diff lists would be helpful: https://github.com/CDRH/african_poetics/issues/52#issuecomment-1268913888
Perhaps we should trial this approach and see what we think will be most helpful in saving time for this process: