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
We are using Structurizr-site-generatr to hold our current state diagrams in the main/default branch and our engineering teams have the ability to create their own branches to show future state.
With this in mind I've been thinking of ways to show on diagram pages if an alternative version exists that might be different with a way to quickly do a comparison of the two diagrams in the different branches.
My initial thought is that you would have to do a site build twice, the first time to build the site for all branches as it works currently but also creating some sort of array of the md5 hashes in memory for each diagram built. Then on the second pass it would use that array to change the pages where the md5 hash don't match to rebuild the page with additional links to quickly switch to the same diagram on the different branch.
Open to other concepts or ideas on how this might be achieved...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We are using Structurizr-site-generatr to hold our current state diagrams in the main/default branch and our engineering teams have the ability to create their own branches to show future state.
With this in mind I've been thinking of ways to show on diagram pages if an alternative version exists that might be different with a way to quickly do a comparison of the two diagrams in the different branches.
My initial thought is that you would have to do a site build twice, the first time to build the site for all branches as it works currently but also creating some sort of array of the md5 hashes in memory for each diagram built. Then on the second pass it would use that array to change the pages where the md5 hash don't match to rebuild the page with additional links to quickly switch to the same diagram on the different branch.
Open to other concepts or ideas on how this might be achieved...
Beta Was this translation helpful? Give feedback.
All reactions