-
Notifications
You must be signed in to change notification settings - Fork 100
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
Added Nord Games Ultimate Bestiary Revenge of the Horde #404
Conversation
@Rrrrrrrrrrnt getting this checked out and ready to merge in! Was traveling this week for work and getting caught up |
Looks like we have a failing test related to /documents. I'm not quite parsing what's up with it (and can't get to my usual computer where I've got all this stuff set up right now) but hopefully it makes more sense to you? 😆 |
do I need to include a document.json file under api v2? .... but it will need ot be tonight (OZ time) |
I do not know. I can see the document in the local API and the test result is not very explicit (to me at least) |
# Test Failing ## in data/v1/UB-RotH/Document.json - addressed indentation issue that may be causing a "check fail". ## added: - data/v2/nord-publishing/UB-RoTH/Document.json # New Fields for better displaying Mythic and Lair attributes (previously included in special abilities) ## api/serializers.py - 'mythic_actions', - 'lair_desc', - 'lair_actions', ## api/models/monster.py - added field above and confirmed in local tests that they work on both `monster.json` files with (new) and without (old) them # new attribute: side_id - adde a new attribute called size_id to the `api/models/monster.py` and `api/serializers.py` - this assigns a numerical number from 0 (Tiny) to 6 (Titanic) to each monster in the model to facilitate future migration to api.v2, this also links to PR open5e#401 Hopefully all tests will work this time and then we can get on with adding new sources 😆
I like the idea of this, but I think it deserves it's own separate PR or be merged with #401. Splitting content and API changes will help to make reviewing and testing these changes easier. |
you guys know best (I had not done anythink like this before i joined the Discord a month ago). I can delete the #401 also has content and api change, a lot more content change than this one as all the monster.json files were edited. |
I think in this case we should be safe to do both at once, went through and ran them locally, and the changes all seem to be solid after testing them locally! Especially given that the API changes are being made specifically in support of this content. But definitely agreed that as a general rule we should be doing them separately |
i think i found out why it doesn't sort properly it is because the property decorator doesn't add the column to the database and then it can't sort by it. There's a Stack Overflow question about this topic. |
It appears as though Nord Games noted that "creatures" are product identity, therefore cannot be reproduced in the site. This means that merging this would be a violation of their license. It will not be merged. |
Original:
Adding New Source
api.v1:
api.v2
2023 Jan 14th update:
Test Failing
in data/v1/UB-RotH/Document.json
added:
New Fields for better displaying Mythic and Lair attributes (previously included in special abilities)
api/serializers.py
api/models/monster.py
monster.json
files with (new) and without (old) themnew attribute: side_id
api/models/monster.py
andapi/serializers.py
Hopefully all tests will work this time and then we can get on with adding new sources 😆