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

MCR-4450: Update rate resolver to return questions field #2804

Merged

Conversation

JasonLin0991
Copy link
Contributor

@JasonLin0991 JasonLin0991 commented Oct 3, 2024

Summary

MCR-4450

  • rateResolver returns questions similar to contractResolver.
  • Refactored the questionHelpers to work with both types of questions
  • new fetchRateWithQuestions that includes the questions field.

NOTE: As a follow on ticket I wanted to rename all the existing question for contract questions to contractQuestion to better clarify which question type belongs to a rate and a contract. Separating it from this work will make it easier to review.

Related issues

Screenshots

Test cases covered

fetchRate.test.ts

  • 'returns the questions on for a rate'

QA guidance

…to-return-questions-field' into jl-mcr-4450-update-rateResolver-to-return-questions-field
Copy link
Contributor

@haworku haworku left a comment

Choose a reason for hiding this comment

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

This looks good to me. I agree renaming the other existing resource to be contract questions and response will add clarity.

@JasonLin0991 JasonLin0991 merged commit cecad96 into main Oct 3, 2024
28 checks passed
@JasonLin0991 JasonLin0991 deleted the jl-mcr-4450-update-rateResolver-to-return-questions-field branch October 3, 2024 16:16
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.

2 participants