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

To convert, one must wololo #1045

Closed
wants to merge 2 commits into from
Closed

To convert, one must wololo #1045

wants to merge 2 commits into from

Conversation

MagikEh
Copy link
Contributor

@MagikEh MagikEh commented May 14, 2024

To convert, one must wololo
wololo priest

To convert, one must [wololo](https://knowyourmeme.com/memes/wololo)
@MagikEh MagikEh added enhancement New feature or request performance! Important performance improvement likely-fixed likely fix is in the repository, success not confirmed yet. Priority 2 - Critical High Criticality or High Visibility Problem efficiency improve performance and/or reduce overhead harmless Sugar nice to have features... not super important. ReliabilityRecovery improve behaviour in failure situations. labels May 14, 2024
Copy link
Member

@reidsunderland reidsunderland left a comment

Choose a reason for hiding this comment

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

logging should be logger

Copy link

github-actions bot commented May 14, 2024

Test Results

220 tests   212 ✅  16s ⏱️
  1 suites    8 💤
  1 files      0 ❌

Results for commit 1b2e374.

♻️ This comment has been updated with latest results.

@MagikEh
Copy link
Contributor Author

MagikEh commented May 14, 2024

logging should be logger

Lol, copy pasta from further down the file has failed me? xD
https://github.com/MetPX/sarracenia/blob/wolololo/sarracenia/sr.py#L2768

@andreleblanc11
Copy link
Member

Omg lol

@andreleblanc11
Copy link
Member

Priority not high enough

@MagikEh
Copy link
Contributor Author

MagikEh commented May 15, 2024

@reidsunderland see 1b2e374

@petersilva
Copy link
Contributor

fwiw... logging will work, but it will use a different logger. that's why the original error isn't caught. it's not invalid... merely wrong.

@petersilva
Copy link
Contributor

Looking at the patch it's right after telling us ''converted config exists... federal off"
we could make --wololo an option to overwrite an existing configuration if it exists.

@petersilva
Copy link
Contributor

or just make wololo a synonym of convert.

@MagikEh
Copy link
Contributor Author

MagikEh commented May 16, 2024

Lol, I love the option to convert a config in place via --wololo.
Synonym makes less sense on the grounds of the player needing to tell their monk to go convert something which is where they then go wololo on it to actually convert it.

I'll spend some time looking into implementing that

@petersilva
Copy link
Contributor

petersilva commented May 17, 2024

fwiw... implementation guide:

  • in config.py ...
    • add "wololo" to flag_options ... will make it work in a config file.
    • add "wololo": False, to default_options. ... will ensure it defaults to False.
    • find the lines with parser.add_argument( '--debug' ... there's three lines make a copy of them and and change --debug to --wololo. ... will make it work as a command line flag.
  • sr.py
    • with the above changes, when you get into sr.py, options.wololo will now exist. So, in the same part of sr.py where you put your original message, look at the if statement above it, and add consideration of that value. The "wololo" message should be guarded by the if.

so... it's less than 10 lines... then have to add an explanation in the docs.

That's just the first option... aka only overwrite an existing option if --wololo is given.

@petersilva petersilva changed the title Fix sr.py To convert, one must wololo May 17, 2024
@petersilva
Copy link
Contributor

uh... I decided to work on it... it's finished.. writing it up in an issue.

@petersilva
Copy link
Contributor

see #1054

@petersilva petersilva closed this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
efficiency improve performance and/or reduce overhead enhancement New feature or request harmless likely-fixed likely fix is in the repository, success not confirmed yet. performance! Important performance improvement Priority 2 - Critical High Criticality or High Visibility Problem ReliabilityRecovery improve behaviour in failure situations. Sugar nice to have features... not super important.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants