Map Tags & Use Maps Server (triplea_maps.yml now unused) #9491
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Always use Maps Server
Stop reading 'triplea_maps.yml'
Specifically instead of downloading the 'triplea_maps.yml'
file and parsing it, the front end will instead contact
the server and receive a JSON payload that contains the
map download list.
Introduce and use map tags
Map tags are a generic
way to add additional meta data to maps dynamically.
For example, instead of having a 'category' value
specifically enumerated, we instead now have a
tag whose key is 'category'. This allows us to have
an arbitrary set of meta information without
needing to update the front end.
Update server to send 'preview image url' to the frontend
The server computes the preview image URL to make it easier
and more explicit for the frontend. Having the server
instead of the client compute the preview image URL also
allows for it to be updated in database.
Testing
Tested with a local server
./spitfire-server/database/start-docker-db
Screens Shots
The local server is using dummy data, otherwise note that a tag with 'rating' was configured
and is now displayed as a column on the download maps page:
Additional Notes / Warnings
This is going to break the front end for prereleases, specifically download maps might not work.
The deployment of the server needs to happen and even then there is likely more to work out.
Future & Following Work
Release Note
UPDATE|Maps information is now stored in database and no longer stored in the file: 'triplea_maps.yaml'. Game clients now download map information from the server. The game client no longer downloads 'triplea_maps.yaml'. 'Map tag' meta data capability added to database, map admins can add tags to maps and those tags are now displayed by the game client in the download maps screen.