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

Fix enumeration warnings #508

Merged
merged 1 commit into from
May 5, 2024
Merged

Conversation

legnes
Copy link
Contributor

@legnes legnes commented May 5, 2024

Seems like a couple of things might be wrong with the enumeration warnings:

  • They are considering clues written for entries that are no longer in the grid
  • They show up even when there are no warnings to show (missing a set size check)

In order to address the first problem, I tried to centralize the logic that decides what clues actually get included in the puzzle, so that the enumeration warnings can use it too. I think it will be useful in #507 as well, and it's possible it could be shared by the "missing clues" publishing error.

However, I'd totally understand if the priority is just to get the warnings fixed and not risk any modifications to the (rather critical) publishing code!

@mdirolf
Copy link
Member

mdirolf commented May 5, 2024

Looks great - thanks! I've added a basic test for some of these publish warnings which I'll push after merging this.

@mdirolf mdirolf merged commit fc2a472 into crosshare-org:master May 5, 2024
1 check passed
@legnes legnes deleted the fix-enum-warnings branch May 6, 2024 03:01
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.

2 participants