-
Notifications
You must be signed in to change notification settings - Fork 161
perf: Short-circuit deployment if ARM template hasn't changed #239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall - Added a few comments that I would like to see addressed before merged.
src/services/baseService.ts
Outdated
this.log(JSON.stringify(object, null, 2)); | ||
} | ||
|
||
protected deepEqual(obj1: any, obj2: any) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think deepEqual
belongs as a function int the base service. Since it's an direct passthrough just have the consumer import and use it.
* Get the most recent resource group deployment | ||
*/ | ||
public async getLastDeployment() { | ||
const deployments = await this.getDeployments(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these deployments contain timestamp? If so do we know it is in the proper order to pull latest version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They have always come in order of most recent to least recent. I can sort it by the official deployment timestamp (included in metadata, even if timestamp is not included in name)
ddf15d0
to
5b5f31f
Compare
5b5f31f
to
9e4ffd5
Compare
9e4ffd5
to
5f553f1
Compare
This checks the previously deployed template (including parameters/values) to see if the generated template has changed since the last deployment. If it has not changed, it will not deploy the ARM template. Since many cases will be code changes, this will drastically increase the speed of the average deployment. Resolves [AB#789]
This checks the previously deployed template (including parameters/values) to see if the generated template has changed since the last deployment. If it has not changed, it will not deploy the ARM template. Since many cases will be code changes, this will drastically increase the speed of the average deployment.
Resolves [AB#789]