Skip to content

fix: closest folder auth determination logic [INS-638] - #8884

Merged
ryan-willis merged 2 commits into
developfrom
fix/closest-folder-determination-logic-INS-638
Jul 17, 2025
Merged

fix: closest folder auth determination logic [INS-638]#8884
ryan-willis merged 2 commits into
developfrom
fix/closest-folder-determination-logic-INS-638

Conversation

@ryan-willis

Copy link
Copy Markdown
Contributor

When request groups (folders) for a request are fetched from the database using withAncestors, the resulting array is sorted from highest level to lowest, so auth determinations will prioritize the highest if auth info is defined there.

This change performs an non-destructive reverse on that list so that the first found folder with auth info is closer to the request itself.

@ryan-willis
ryan-willis merged commit 58a42fa into develop Jul 17, 2025
10 checks passed
@ryan-willis
ryan-willis deleted the fix/closest-folder-determination-logic-INS-638 branch July 17, 2025 20:30
RoamingLost pushed a commit to RoamingLost/insomnia that referenced this pull request Aug 6, 2025
* fix: reverse folder priority when inheriting auth [INS-638]

* fix: don't alter arrays in-place
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