[QA / FEATURE] Consolide CR fields into single "challenge_rating" field#910
[QA / FEATURE] Consolide CR fields into single "challenge_rating" field#910calumbell wants to merge 1 commit intoopen5e:stagingfrom
"challenge_rating" field#910Conversation
|
So I do think we split these on purpose, so we could use one for sorting and another for display, if I recall. Are we thinking it makes sense to roll it back at this point? Should we maybe synthesize one from the other or set one of them as "challenge_rating" for ease of use? |
|
@eepMoody Not sure I was privy to the conversations about adding two fields to handle CR, so apologies if I have run rough-shod someone else's careful planning. But to me it makes sense to only use one field to handle CR, especially as the only difference between the data presented in The reasons I think we should roll it back are:
That is my thinking. The only hill that I die on is that the numerical CR data should live in a field called Let me know your thoughts, happy to make any additional changes required :) |
|
Okay yeah, that seems reasonable. I guess we just over-engineered the CR stuff. And yeah, no need for excess trailing zeroes, nobody is tracking CR to three significant digits 🤣 |
Description
This PR slightly streamlines the
Creaturemodel by replacing the"challenge_rating_decimal"and"challenge_rating_text"fields with a single"challenge_rating"field.The motivation for this was to improve the developer experience working when working with these fields, although one could argue that there are marginal performance gains to be made here.
N.B. This will break the front-end unless it is also patched to consume the
"challenge_rating"field. A PR is on its way that will fix this.Related Issue
Closes #902
How was this tested?
pyteston local (all testing passing after updating cases to reflect changes in API response)