https://bugzilla.wikimedia.org/show_bug.cgi?id=60012
--- Comment #7 from Andre Saboia <anb...@gmail.com> --- (In reply to Kunal Mehta (Legoktm) from comment #5) > My idea: set a "sticky" preference when a user enables a beta feature > ("$key-set"), but don't remove it when the user changes the option. Then we > just count the number of people with that set and store it in another column > in the table. When a user enables a beta feature, this feature is added on the 'user_properties' table, but when the user disable that feature, it is not removed from the table, just change its value (up_value) from 1 to 0.. which means that all we have to do is the same we do to count enabled features. Instead of 'where up_value=1' should use 'where up_value=0' on the select command, but I'm not sure if there is a way to take this two values(enabled, disabled) in one select command(with maybe a join) or another way.. > We'd also need a maintenance script to set all the rows for people who > currently have a BF turned on (can't get data for people who already turned > it off). this mean we 'can get data for people who already turned it off'... -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l