Skip to content

Conversation

@TurtIeSocks
Copy link
Collaborator

@TurtIeSocks TurtIeSocks commented Jan 10, 2022

Config Migration has been merged into develop. I've been running it on my production maps for 36 hours without any hiccups/need for manual changes Only thing to note is that you may need to merge your tileservers with the ones in default.json if you were using custom ones before in addition to the default ones.

Docker Instructions:
https://gist.github.com/TurtIeSocks/5fda9e3325ee1dd10311aec0e880c40e

Non-Docker Command:
Run migration script with yarn config-migrate

Config Migration Notes:
🔘 Move locales into map
🔘 Move PVP settings into api
🔘 Move nest hemisphere into api
🔘 Split map object into multiple sub-objects for better organizing
🔘 Cluster Zoom Levels and Limits for each category

The following objects became arrays:
🔘 multiDomains
🔘 tileservers
🔘 navigation
🔘 manualAreas

Authentication was merged into one object that share perm arrays
🔘 If you use multiple strategies, you put all roles/groups into the perm arrays
🔘 If you use local, you just put "local" in the arrays

Deprecated Settings:
🔘 arScanColumn - I think all scanners should now support this, doesn't break anything regardless
🔘 enableFeedback - if you have a feedback link in your config, it will be enabled and vice versa
🔘 enableStats - same as above
🔘 noScanAreaOverlay - now detected automatically if you have any manual areas set

Why did I bother with this:
🔘 Now objects and arrays are used in a consistent manner. If there is an object, you shouldn't need to add arbitrary keys or additional fields, what is there, is there. If something is an array, it indicates that you have the ability to add unlimited items to it. Strategies, multiDomains, tileservers, navigation, manualAreas, etc
🔘 Move to node-config library. No longer constrained by the default.json. If you only want specific tileservers, so be it, you no longer have to edit the default.json, keeping the repo git friendly.
🔘 Clean up and group the authentication settings

- Move scripts to a scripts folder
- Add node config
- Add config migration script
- Fix invasions & scanArea to singular
- Make strategies an array for consistency, add name and types to them
- No longer load strategies/routes with `fs`, can now load them straight from the config
- Adjust tileservers for new format
- Some missed s2cell stuff
- Move console.js to scripts as well
- Rename all S2Cell References to Scan Cells
- Reintroduce Plurals, I don't have time to make them all singular
- Fix db migrations
- Use __dirname for more consistent results
- Fix clustering in default.json
- Areas.json just added in memory once instead of multiple
- Custom strategies now load from config instead using `fs` everywhere
- module.export adjustments for models
- adjust constructor for Pokemon filter model
- Remove all references to `stats` perm
- Adjust how the dbSelector function works
- Remove some commented out code
- Rename legacyPkmnFilter to enableMapJsFilter
- Deprecate AR check
- Name queries
@TurtIeSocks TurtIeSocks marked this pull request as ready for review January 11, 2022 01:19
- Add some pvp defaults as a backup
- Add a backup map tileserver
- Adds nav and tileserver checks if the name changes
- Fix excludeFromTutorial and alwaysEnabledPerms to rename s2cells perm
- Update docker file
- Update docker-compose example
- Fix manual areas
@TurtIeSocks TurtIeSocks merged commit e8b3167 into develop Jan 12, 2022
@TurtIeSocks TurtIeSocks deleted the config-adjjustment branch January 12, 2022 13:47
Mygod pushed a commit that referenced this pull request Oct 17, 2025
github-actions bot pushed a commit that referenced this pull request Oct 17, 2025
# [1.40.0-develop.16](v1.40.0-develop.15...v1.40.0-develop.16) (2025-10-17)

### Bug Fixes

* update for Golbat [#312](#312) ([#1151](#1151)) ([3bd05d4](3bd05d4))
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.

5 participants