Skip to content

configurable region detection from filename#248

Open
Gemba wants to merge 5 commits into
masterfrom
fb_regions_issue_242
Open

configurable region detection from filename#248
Gemba wants to merge 5 commits into
masterfrom
fb_regions_issue_242

Conversation

@Gemba
Copy link
Copy Markdown
Owner

@Gemba Gemba commented May 12, 2026

see #242

Gemba and others added 5 commits April 26, 2026 17:08
- regions from file in order of region prios and inlined into region prios by default
- added config option (regionFromFilename) to control region detection from filename
- updated regions doc and testcases
* Go through regionPrios from config before regionMap

Appending regionMap to regionPrios before searching it will prioritise searching the config regionPrios first, and then if not found, move on to regionMap. May need to add a line to remove duplicates from this list as regions in regionPrios and regionMap may appear twice (removing the second occurrence should remove the regionMap appearence and leave the first one added via regionPrios)

* Add an iteration through regionMap based on regionPrios to give new sortedMap order

Made some fixes to ensure it compiles and also to do this is a more logical way (without duplication)
@Gemba Gemba changed the title Fb regions issue 242 configurable region detection from filename May 12, 2026
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