-
Notifications
You must be signed in to change notification settings - Fork 55
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
2259 refactor/api v3 label inventory #2264
Conversation
2d56c6c
to
527f7f7
Compare
fix(v3/urls): fix bad import chore: reorganize imports
527f7f7
to
ef96e77
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial review notes:
- Perms look good!
- Empty inventory_ids and populated add_label_ids does nothing 💯
- Changes generally look good!
proposed changes:
- Delete “If omitted, the effect is applied to all properties”
- Empty inventory_ids and populated remove_label_ids does it to everything 😬
- Maybe just error when inventory_ids are empty?
That's appears to be the intended effect, though it should limit itself to the removal of labels that are within the org. If this is not what we want then we can change that. I'll make this PR a draft until we decide what to do here. |
That's a good point - I could definitely imagine users wanting to just completely remove a label from their entire org's properties or tax lots. Looking into the way it's used on the FE, inventory_ids are basically required since the Update Labels button isn't "activated" until records are checked on the inventory list page. Given that, I'd vote to keep the changes you have currently (also requiring it for the API endpoint). What do you think? |
I think that sounds good 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for making the final changes 🙏
What's this PR do?
Moves v2 /labels-taxlot and /labels-property views to v3
How should this be manually tested?
Test
api/v3/labels_taxlot/
andapi/v3/labels_property/
on swagger pageWhat are the relevant tickets?
#2259