Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebHost: Restore game name in description, don't hardcode archipelago.gg #2692

Closed

Conversation

remyjette
Copy link
Collaborator

What is this fixing or adding?

#1820 added the game name to template export, but when #2143 began overriding the description in Javascript to name the preset it removed the game name.

Also while I was here I figured we might as well not hardcode https://archipelago.gg, since it can be useful to know if a YAML was generated by some other web host (for example http://archipelago.gg:24242 if coming from the beta site)

How was this tested?

Ran this on a local webhost and generated a YAML and saw Generated by http://localhost for Factorio with the default preset.. Changed the port, saw Generated by http://localhost:81 for Factorio with the default preset.. Pointed my nginx proxy which has a HTTPS cert on it, saw Generated by https://<domain> for Factorio with the default preset.

 ArchipelagoMW#1820 added the game name to template export, but when ArchipelagoMW#2143 began
overriding the description in Javascript to name the preset it removed
the game name.

Also while I was here I figured we might as well not hardcode
https://archipelago.gg, since it can be useful to know if a YAML was
generated by some other Web Host (for example
http://archipelago.gg:24242 if coming from the beta site)
@alwaysintreble
Copy link
Collaborator

i'm pretty hesitant on the secondary change as it seems very easy for someone to accidentally release their own or someone else's IP address

@ScipioWright ScipioWright added the affects: webhost Issues/PRs that touch webhost and may need additional validation. label Jan 9, 2024
@LegendaryLinux
Copy link
Member

This change will eventually be overwritten by #2614. Most of the JS has been removed, and that description is now handled by Python when generating the YAML file as the result of a POST.

I will be happy to review this again if you point it at my branch, option-groups.

@remyjette remyjette deleted the yaml-export-game-name branch July 8, 2024 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: webhost Issues/PRs that touch webhost and may need additional validation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants