Skip to content

Add singleElement() to GraphQlTester.EntityList#1380

Merged
bclozel merged 2 commits intospring-projects:mainfrom
sic2:graphqltester_singleelement
Apr 21, 2026
Merged

Add singleElement() to GraphQlTester.EntityList#1380
bclozel merged 2 commits intospring-projects:mainfrom
sic2:graphqltester_singleelement

Conversation

@sic2
Copy link
Copy Markdown
Contributor

@sic2 sic2 commented Nov 22, 2025

This PR adds singleElement(), a utility method to check for lists of size one, and return the Entity in the same statement.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 22, 2025
@rstoyanchev rstoyanchev self-assigned this Nov 24, 2025
@rstoyanchev rstoyanchev added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 24, 2025
@rstoyanchev rstoyanchev added this to the 2.0.1 milestone Nov 24, 2025
@rstoyanchev
Copy link
Copy Markdown
Contributor

That makes sense, thanks for the suggestion.

@rstoyanchev rstoyanchev added the for: backport-to-1.4.x Marks an issue as a candidate for backport to 1.4.x label Nov 24, 2025
@sic2
Copy link
Copy Markdown
Contributor Author

sic2 commented Nov 24, 2025

@rstoyanchev thanks. I see you added label for:backport-to-1.4.x. I am new to the project, is that a request on me to have the changes against another branch too?

@rstoyanchev
Copy link
Copy Markdown
Contributor

The intent is to have the change backported to the 1.4.x branch. Adding a backport label should have caused the creation of a backport issue, but the backport bot failed. You don't need to do anything further. We'll make sure the change lands in all the right places.

@rstoyanchev rstoyanchev added status: backported An issue that has been backported to maintenance branches and removed for: backport-to-1.4.x Marks an issue as a candidate for backport to 1.4.x labels Nov 24, 2025
@bclozel bclozel modified the milestones: 2.0.1, 2.0.x Dec 16, 2025
singleElement() is a utility method to check for lists of size one,
and return the Entity in the same statement.

See spring-projectsgh-1380

Signed-off-by: Simone Conte <conte@adobe.com>
@bclozel bclozel force-pushed the graphqltester_singleelement branch from 173a2be to 30329b8 Compare April 21, 2026 07:04
bclozel added a commit to sic2/spring-graphql that referenced this pull request Apr 21, 2026
Closes spring-projectsgh-1380

Signed-off-by: Brian Clozel <brian.clozel@broadcom.com>
@bclozel bclozel force-pushed the graphqltester_singleelement branch from 30329b8 to f05e597 Compare April 21, 2026 07:04
@bclozel bclozel modified the milestones: 2.0.x, 2.0.3 Apr 21, 2026
@bclozel bclozel assigned bclozel and unassigned rstoyanchev Apr 21, 2026
@bclozel bclozel closed this in f05e597 Apr 21, 2026
@bclozel bclozel merged commit f05e597 into spring-projects:main Apr 21, 2026
1 check failed
@bclozel
Copy link
Copy Markdown
Member

bclozel commented Apr 21, 2026

Thanks for your contribution @sic2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants