Skip to content

Fix FT roles not being assigned sometimes#101

Merged
karashiiro merged 1 commit into
PrimaShouji:mainfrom
karashiiro:fix/ft-prog-roles-2
Jun 24, 2025
Merged

Fix FT roles not being assigned sometimes#101
karashiiro merged 1 commit into
PrimaShouji:mainfrom
karashiiro:fix/ft-prog-roles-2

Conversation

@karashiiro

Copy link
Copy Markdown
Member

In DefaultLogParsingRulesSelector, we go through the fight names to see which content we need to check prog for. We do this by comparing fight names to role names, since the role names all have the fight name in them. However, fight names can sometimes be empty, in which case they'll always match any string. This had the unfortunate effect of always marking affected logs as DRS fights, since that gets checked before FT.

This commit fixes the issue by skipping fights with empty/whitespace names.

Also added more logging to make it easier to identify these issues in the future.

In DefaultLogParsingRulesSelector, we go through the fight names to see which content we need to check prog for.
We do this by comparing fight names to role names, since the role names all have the fight name in them.
However, fight names can sometimes be empty, in which case they'll always match any string.
This had the unfortunate effect of always marking affected logs as DRS fights, since that gets checked before FT.

This commit fixes the issue by skipping fights with empty/whitespace names.
@karashiiro karashiiro merged commit 09adbfa into PrimaShouji:main Jun 24, 2025
1 check passed
@karashiiro karashiiro deleted the fix/ft-prog-roles-2 branch June 24, 2025 02:34
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.

1 participant