opsmill / infrahub

Infrahub - A new approach to Infrastructure Management
https://opsmill.com/
GNU Affero General Public License v3.0
144 stars 7 forks source link

Diff: ability to combine incremental diffs #3702

Open ajtmccarty opened 2 weeks ago

ajtmccarty commented 2 weeks ago

Component

API Server / GraphQL

Describe the Feature Request

new logic to combine multiple diffs using the new data structure (#3280). component should be able to take two or more diffs and return a single diff that maintains all the data from those diffs

Describe the Use Case

Combining a series of incremental diffs for a given base_branch and diff_branch will give us the final diff for those branches and will be faster than re-calculating the whole diff. For example, if we have DiffA that covers Time1 - Time2 and DiffB that covers Time2 - Time3, then we should be able to combine DiffA and DiffB to get DiffC that covers Time1 - Time3

Additional Information

No response