[buddypress-trac] [BuddyPress Trac] #6783: Groups: Add Profile Fields and Profile Field Groups
buddypress-trac
noreply at wordpress.org
Fri Jan 5 11:58:17 UTC 2018
#6783: Groups: Add Profile Fields and Profile Field Groups
--------------------------+-----------------------
Reporter: mercime | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.0
Component: Groups | Version:
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+-----------------------
Changes (by Offereins):
* cc: lmoffereins@… (added)
Comment:
So following @dcavins logic, this would mean that the object type
distinction is applied at the field group level only:
a. Field groups can be assigned to types of objects (users, user groups or
else) by means of `wp_bp_xprofile_groups.object_type` (or `.group_type` in
@DJPaul's diagram).
b. Fields are always registered in a single field group, no matter what
object type it applies to.
c. Field data is always registered for a single field, no matter what
object type it applies to.
This omits the requirement for an additional column in the field data
table.
Side note: this would result in more complex logic for querying field
data. Imagine a situation when querying for field data belonging to a
single user. In the current situation field data always belongs to this
singular object type, but in the new setup you would always need to know
the field groups for the object type and their related fields beforehand.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6783#comment:23>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list