Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

[#176466130] Add Update CGN status activity #9

Merged
merged 3 commits into from
Jan 13, 2021

Conversation

AleDore
Copy link
Contributor

@AleDore AleDore commented Jan 12, 2021

List of Changes

  • Add a UpdateCgnStatusActivity
  • Add conversions utility

Motivation and Context

CGN' status change operations must be addressed by a specific activity that can do the job, even if it is triggered by an orchestrator with proper retry logic.

How Has This Been Tested?

It has been tested by performing unit tests.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

description === ""
? `${logPrefix}|FAILURE=${err.message}`
: `${logPrefix}|${description}|FAILURE=${err.message}`;
context.log.verbose(logMessage);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
context.log.verbose(logMessage);
context.log.info(logMessage);

)
.chain(_ =>
userCgnModel.update(_).bimap(
() => fail(new Error("Cannot update userCgn")),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd keep the error message from update() method (it could be 409 conflict)

Comment on lines 2 to 10
* This function is not intended to be invoked directly. Instead it will be
* triggered by an orchestrator function.
*
* Before running this sample, please:
* - create a Durable orchestration function
* - create a Durable HTTP starter function
* - run 'yarn add durable-functions' from the wwwroot folder of your
* function app in Kudu
*/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* This function is not intended to be invoked directly. Instead it will be
* triggered by an orchestrator function.
*
* Before running this sample, please:
* - create a Durable orchestration function
* - create a Durable HTTP starter function
* - run 'yarn add durable-functions' from the wwwroot folder of your
* function app in Kudu
*/

@AleDore AleDore requested a review from gunzip January 13, 2021 10:46
@AleDore AleDore merged commit 9908550 into master Jan 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants