cidertool / cider

Submit your builds to the Apple App Store in seconds
https://cidertool.github.io/cider
GNU General Public License v3.0
26 stars 0 forks source link

Hash API resources to reduce unnecessary updates #35

Closed aaronsky closed 3 years ago

aaronsky commented 4 years ago

Is your feature request related to a problem? Please describe. Cider should be able to hash the properties of updateable models coming from the App Store Connect API in order to minimize excessive PATCH requests.

Describe the solution you'd like Hash the structure of an API model in such a way where it can be easily compared as an equivalent config model (maybe a streamlined way to convert between the two) and if the hashes match, do not perform the update.

Describe alternatives you've considered Doing the comparisons individually, manually. Or not doing this, to ensure run consistency

Additional context None

aaronsky commented 3 years ago

After a brief conversation with Apple engineering, I was told that I shouldn't attempt this. I can accept that – this seems especially error prone of a feature to include.