Skip to content

VED-934: Search Error Message#1009

Merged
Akol125 merged 2 commits intomasterfrom
VED-934-Search-Error-Message
Nov 26, 2025
Merged

VED-934: Search Error Message#1009
Akol125 merged 2 commits intomasterfrom
VED-934-Search-Error-Message

Conversation

@Akol125
Copy link
Contributor

@Akol125 Akol125 commented Nov 26, 2025

Summary

  • Routine Change
  • ❗ Breaking Change
  • 🤖 Operational or Infrastructure Change
  • ✨ New Feature
  • ⚠️ Potential issues that might be caused by this change

Add any other relevant notes or explanations here. Remove this line if you have nothing to add.

Reviews Required

  • Dev
  • Test
  • Tech Author
  • Product Owner

Review Checklist

ℹ️ This section is to be filled in by the reviewer.

  • I have reviewed the changes in this PR and they fill all of the acceptance criteria of the ticket.
  • If there were infrastructure, operational, or build changes, I have made sure there is sufficient evidence that the changes will work.
  • If there were changes that are outside of the regular release processes e.g. account infrastructure to setup, manual setup for external API integrations, secrets to set, then I have checked that the developer has flagged this to the Tech Lead as release steps.
  • I have checked that no Personal Identifiable Data (PID) is logged as part of the changes.

@github-actions
Copy link
Contributor

This branch is working on a ticket in the NHS England VED JIRA Project. Here's a handy link to the ticket:

VED-934

@sonarqubecloud
Copy link

raise ParameterExceptionError(
f"Search parameter {ImmunizationSearchParameterName.DATE_FROM} may have one value at most."
)
errors.append(f"Search parameter {ImmunizationSearchParameterName.DATE_FROM} may have one value at most.")
Copy link
Contributor

Choose a reason for hiding this comment

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

I would check with Krupa if these messages need to be appended of if they need to be on their own. Only because they're not mentioned in the ticket

)
include = includes[0]

if errors:
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be clearer to be explicit here and check if the length of the list != 0. This is subjective though.

Copy link
Contributor

@JamesW1-NHS JamesW1-NHS Nov 27, 2025

Choose a reason for hiding this comment

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

It works for both None and []

@Akol125 Akol125 merged commit 03e2d3d into master Nov 26, 2025
17 checks passed
@Akol125 Akol125 deleted the VED-934-Search-Error-Message branch November 26, 2025 16: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.

3 participants