Opened 2 years ago
Closed 2 years ago
#33966 closed New feature (fixed)
Add support for using KeyTextTransform from lookup
Reported by: | AllenJonathan | Owned by: | AllenJonathan |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Simon Charette | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Currently, we use nested objects to transform through a JSON field. For example, for
json = {'a': {'b': 'boat'}}
Here, to get 'boat` in text form we use:-
KeyTextTransform(KeyTextTransform('a', 'json_field'), 'b')
This would return 'boat' in text form.
A better UX would be:
KeyTextTransform('json_field__a__b')
Change History (6)
comment:1 by , 2 years ago
Cc: | added |
---|---|
Description: | modified (diff) |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 2 years ago
Description: | modified (diff) |
---|
comment:3 by , 2 years ago
Has patch: | set |
---|---|
Needs tests: | set |
Owner: | changed from | to
Patch needs improvement: | set |
Status: | new → assigned |
comment:4 by , 2 years ago
Needs documentation: | set |
---|
comment:5 by , 2 years ago
Needs documentation: | unset |
---|---|
Needs tests: | unset |
Patch needs improvement: | unset |
Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
PR