Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add data presence check for solution history #90

Open
wants to merge 47 commits into
base: master
Choose a base branch
from

Conversation

iainlomax81
Copy link

@iainlomax81 iainlomax81 commented Oct 23, 2024

Purpose

This change introduces a wait and retry policy when setting the state of processes during solution deployment.

Approach

Introducing a wait and retry policy ensures that all active solution history records are completed before proceeding with the next deployment operations.

TODOs

  • Automated test coverage for new code
  • Documentation updated (if required)
  • Build and tests successful

@@ -313,6 +315,72 @@ public TResponse Execute<TResponse>(OrganizationRequest request, string username
return (TResponse)this.Execute(request);
}

/// <inheritdoc/>
public bool HasStartedSolutionHistoryRecords(ILogger logger)
Copy link
Member

Choose a reason for hiding this comment

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

The naming of this method doesn't seem to match what it is actually doing.

Copy link
Author

Choose a reason for hiding this comment

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

@ewingjm refactored extended service method to better reflect its intent

new ConditionExpression(Constants.SolutionHistory.Fields.Status, ConditionOperator.Equal, Constants.SolutionHistory.Statuses.Started),
},
},
});
Copy link
Member

Choose a reason for hiding this comment

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

QueryByAttribute would be more concise here.

Copy link
Author

@iainlomax81 iainlomax81 Oct 23, 2024

Choose a reason for hiding this comment

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

@ewingjm replaced QueryExpression with QueryByAttribute

- update existing tests to use the execute multiple solution history mock
- refactor implementation to track original request indexes mapping to ensure returned responses are in the correct order index
- change path to include solution sub-directory to contain the managed solution
@iainlomax81 iainlomax81 marked this pull request as ready for review October 31, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: implement presence check for active records in solution history
2 participants