Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Developer experience
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2012 at 04:34 UTC
Updated:
1 Feb 2012 at 16:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
bojanz commentedComment #2
rszrama commentedHmm, we had a long discussion about this with fago with respect to the status column on users. I was in favor of having our property info match the data in the database, which is integer. If we change it to boolean, then any module that repurposes this column to allow for additional positive integer statuses would break if we only exposed status as a boolean in the property info.
Comment #3
bojanz commentedAny module that repurposes this column deserves a beating for using D5-style hacks.
It's our column, our data. We gain better UX and DX while losing nothing.
Comment #4
rszrama commentedYeah, I wouldn't exactly be a proponent of status column abuse, but my bigger problem is with entity property info not matching the data in the database. We're introducing a disparity between the table's schema and the property info, and that just feels like a recipe for disaster even if the property info is more specific.
But what the hey, I see that Customer Profiles already use boolean... I guess if it ever becomes an issue, we can change it then. I'll make sure all our "status" columns use boolean when I commit this.
Comment #5
bojanz commentedWell, it's not like mysql has a boolean type for us to use. So it's not that bad. We're doing what we have to.