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: fixup WebHostLib/options.py #3332

Merged
merged 4 commits into from
May 19, 2024
Merged

Conversation

Berserker66
Copy link
Member

@Berserker66 Berserker66 commented May 19, 2024

What is this fixing or adding?

auto-fix imports
added typing
removed self-calling network request
removed forfeit-mode again, which had been gone for months
removed explicit settings and let them default instead
extracted "start_generation" as function in WebHostLib/generate.py
options pages no longer redirect to archipelago.gg
fix Visibility being used via <, instead of like an intflag

How was this tested?

using the generate buttons on the player options page of Factorio and the upload yaml page.

If this makes graphical changes, please attach screenshots.

@github-actions github-actions bot added affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels May 19, 2024
WebHostLib/options.py Outdated Show resolved Hide resolved
WebHostLib/options.py Outdated Show resolved Hide resolved
Copy link
Member

@LegendaryLinux LegendaryLinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the answer to my question in the previous PR would have been:

"You should create a new function which accepts both options and meta options as separate arguments and returns the html for the wait page. This function should be called by both the POST handler in the API and by the options pages."

Copy link
Member

@LegendaryLinux LegendaryLinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most options are no longer included on player-options and weighted-options pages, leaving most pages with no options at all.

image
image

WebHostLib/options.py Outdated Show resolved Hide resolved
WebHostLib/options.py Outdated Show resolved Hide resolved
@LegendaryLinux LegendaryLinux merged commit 2801e21 into main May 19, 2024
26 checks passed
@Berserker66 Berserker66 deleted the webhost_options_fixes branch May 19, 2024 18:22
jnschurig pushed a commit to Tranquilite0/Archipelago-SoulBlazer that referenced this pull request Jun 13, 2024
* WebHost: fixup WebHostLib/options.py

* Update WebHostLib/options.py

* Update WebHostLib/options.py

* fix visibility flag handling
sflavelle pushed a commit to sflavelle/Archipelago-tgc that referenced this pull request Jun 20, 2024
* WebHost: fixup WebHostLib/options.py

* Update WebHostLib/options.py

* Update WebHostLib/options.py

* fix visibility flag handling
qwint pushed a commit to qwint/Archipelago that referenced this pull request Jun 24, 2024
* WebHost: fixup WebHostLib/options.py

* Update WebHostLib/options.py

* Update WebHostLib/options.py

* fix visibility flag handling
AustinSumigray pushed a commit to AustinSumigray/Archipelago that referenced this pull request Jan 4, 2025
* WebHost: fixup WebHostLib/options.py

* Update WebHostLib/options.py

* Update WebHostLib/options.py

* fix visibility flag handling
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. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants