Skip to content

Filter blank failedWhere Queries from mutator#1482

Draft
agusaldasoro wants to merge 1 commit intomasterfrom
agusaldasoro-patch-1
Draft

Filter blank failedWhere Queries from mutator#1482
agusaldasoro wants to merge 1 commit intomasterfrom
agusaldasoro-patch-1

Conversation

@agusaldasoro
Copy link
Copy Markdown
Collaborator

This pull request makes a focused improvement to the mutation logic for handling failed SQL WHERE queries in the ApiWsStructureMutator class. The main change ensures that only non-blank failed WHERE queries are processed, which helps prevent unnecessary or invalid operations during mutation. We were sending empty strings as a valid query.

  • Mutation logic improvement:
    • In ApiWsStructureMutator, the list of failed WHERE queries is now filtered to exclude blank entries before further processing. This helps avoid issues related to empty or invalid SQL queries during mutation.

We were sending empty strings as a valid query
@agusaldasoro agusaldasoro requested a review from jgaleotti March 20, 2026 16:49
val oldSqlActions = mutableListOf<EnvironmentAction>().plus(ind.seeInitializingActions())

val failedWhereQueries = evaluatedIndividual.fitness.getViewOfAggregatedFailedWhereQueries()
.filter { it.isNotBlank() }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would that be too complicate to add a test case for checking that no blank queries are sent?

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