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

chore: Elaborate on all TODOs #672

Merged
merged 4 commits into from
Mar 26, 2024
Merged

Conversation

lukehesluke
Copy link
Contributor

Closes #667

The approach I've taken:

  • Particularly important issues or recurring issues have been transformed into issues (which are linked to from the TODO)
  • Some very simple TODOs have just been done 🙌
  • Other TODOs have simply been elaborated with any context that I have or can find to help others be able to implement them in future

@lukehesluke lukehesluke changed the base branch from master to feature/categorise-opportunity-caches March 25, 2024 16:50
it('should include an orderProposalVersion, of the form {orderId}/versions/{versionUuid}', () => {
const { uuid } = defaultFlowStageParams;
expect(bookRecipe.p.getOutput().httpResponse.body).to.have.property('orderProposalVersion')
.which.matches(RegExp(`${uuid}/versions/.+`));
});
// TODO does validator check that full Seller details are included in the seller response?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it does

@@ -26,6 +26,9 @@ function (configuration, orderItemCriteriaList, featureIsImplemented, logger, de
FlowStageUtils.describeRunAndCheckIsSuccessfulAndValid(c2, () => {
it('should include expected customer details', () => {
const apiResponseJson = c2.getStage('c2').getOutput().httpResponse.body;
if (defaultFlowStageParams.customer['@type'] !== 'Person') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Required due to improving the customer type to also support Organization

@@ -6,7 +6,6 @@
* @typedef {import('./assert-opportunity-capacity').AssertOpportunityCapacityFlowStageType} AssertOpportunityCapacityFlowStageType
*/

// TODO construct this class using the generic FlowStageRun (e.g. with inheritance), rather than have it be a bespoke thing
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't really seem that important now that it's been a while

@@ -399,19 +406,13 @@ function createMissingPaymentReconciliationDetailsBReq(data) {
*/
function createIncorrectReconciliationDetails(data) {
const req = createStandardPaidBReq(data);
// @ts-ignore // TODO: Figure out why req.payment isn't recognised here?!
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Type was updated above to fix this issue

@lukehesluke lukehesluke requested a review from civsiv March 25, 2024 16:54
@lukehesluke lukehesluke marked this pull request as ready for review March 25, 2024 16:54
Base automatically changed from feature/categorise-opportunity-caches to master March 26, 2024 17:43
@lukehesluke lukehesluke merged commit 8eafdab into master Mar 26, 2024
32 checks passed
@lukehesluke lukehesluke deleted the feature/investigate-all-todos branch March 26, 2024 17:45
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.

Elaborate on or implement all TODOs in Test Suite
2 participants