Skip to content

[MDS-6594] Permit conditions ordering bug in search#3605

Merged
asinn134 merged 1 commit intodevelopfrom
mds-6594-condition-search-ordering-of-permits-bug
Jul 22, 2025
Merged

[MDS-6594] Permit conditions ordering bug in search#3605
asinn134 merged 1 commit intodevelopfrom
mds-6594-condition-search-ordering-of-permits-bug

Conversation

@asinn134
Copy link
Collaborator

Objective

MDS-6594

  • It was found that in context_enricher.py inside the run function and the _format_context_chain function when it was formatting the list of siblings it was splitting the list in half by 2 to get the mid. but in our case using whatever position the current document object we are looking at as the mid should work better. If we use the position of the current document object we can better split the siblings list into the two sections of previous and next to get an accurate ordering.
image image

@sonarqubecloud
Copy link

@asinn134 asinn134 merged commit 24af8c0 into develop Jul 22, 2025
10 checks passed
@asinn134 asinn134 deleted the mds-6594-condition-search-ordering-of-permits-bug branch July 22, 2025 17: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