dr-scripts icon indicating copy to clipboard operation
dr-scripts copied to clipboard

Add validate checks for spell merge failing

Open jandersson opened this issue 7 years ago • 4 comments

;validate should run a check on the users listed spell sets that are merged with base-spells. If anything fails, issue a warning.

jandersson avatar Mar 05 '19 20:03 jandersson

Add an artificial field like is_for_test: yes to all spell data loaded into a test, do the merge, then check if that field exists in all the users merged data

jandersson avatar Mar 05 '19 21:03 jandersson

That's a great idea.

So I put in def assert_that_spells_are_in_base_spells. Right now it just checks names, but many spell categories don't really include names, just abbrevs.

When I first pushed that change it also compared abbrevs, but it turned out just about EVERYONE was getting validate errors because nobody's abbrevs matched base-spells, so I reverted that. A case-insensitive check would make that a lot less problematic.

Tarhish avatar Mar 05 '19 22:03 Tarhish

I would say its fair to make it a warning instead of an error. Dont think we should worry about each field matching, more so that the merge worked

jandersson avatar Mar 05 '19 23:03 jandersson

I missed that that check existed. I think it might be good to start thinking about how to make validate more easily searchable. I dont know if that means breaking it up into separate files or what

jandersson avatar Mar 05 '19 23:03 jandersson

Closing as wontfix.

MahtraDR avatar Jan 21 '23 00:01 MahtraDR