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

MISUV-8224-optin-with-previously-submitted-updates #2479

Open
wants to merge 84 commits into
base: main
Choose a base branch
from

Conversation

james-king-hmrc
Copy link
Contributor

optin-with-previously-submitted-updates

@platops-pr-bot
Copy link

Base automatically changed from MISUV-8223-optin-check-your-answer to main August 28, 2024 11:57
@ian-hmrc
Copy link
Contributor

There are 83 commits on this branch ranging back to 7th Aug. I'm guessing it's because we're stacking work from previous tickets. Is it possible to get some of the older tickets closed off to make reviewing this easier? I'm happy for spin-off tickets to be made to catch loose-ends like Welsh translations that are missing.

@james-king-hmrc
Copy link
Contributor Author

james-king-hmrc commented Aug 28, 2024

There are 83 commits on this branch ranging back to 7th Aug. I'm guessing it's because we're stacking work from previous tickets. Is it possible to get some of the older tickets closed off to make reviewing this easier? I'm happy for spin-off tickets to be made to catch loose-ends like Welsh translations that are missing.

Sure @ian-hmrc , but there are no stacked tickets etc at the moment, let's get this PR reviewed and we can look at other tickets next

@ian-hmrc
Copy link
Contributor

ian-hmrc commented Aug 28, 2024

Sure @ian-hmrc , but there are no stacked tickets etc at the moment, let's get this PR reviewed and we can look at other tickets next

OK, I can see you've merged main, and that's taken the number of files to review from 33 to 11. I'll have a look at that.

proposition <- OptionT.liftF(fetchOptInProposition())
quarterlyUpdatesCountForOfferedYears <- OptionT.liftF(getQuarterlyUpdatesCountForOfferedYears(proposition))
showPreviouslySubmittedUpdatesWarning = quarterlyUpdatesCountForOfferedYears.counts
.filter(v => v.taxYear == intentTaxYear).map(_.count).headOption.getOrElse(ZeroCount) > ZeroCount
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm questioning if this is the right way to calculate this for Opt In? If the user is Opting In, then they should currently be reporting Annually, so shouldn't have any quarterly updates, so won't the count of quarterly updates always be zero? This might be a more subtle difference between Obligations (Updates) and Submissions. I've asked Design, but let's pick up tomorrow and see if we can make sure we've understood this correctly.

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.

3 participants