#silverstripe IRC Log

IRC log for 14 September 2013

All timestamps are in UTC.

1: [00:07:40] * willr quit (Quit: willr)
2: [00:23:00] * peter_ss quit (Quit: Leaving.)
3: [00:24:39] * kerosene quit (Ping timeout: 256 seconds)
4: [00:26:32] * kerosene has joined #silverstripe
5: [00:27:10] * viiastudio has joined #silverstripe
6: [00:27:43] * viiastudio has left #silverstripe
7: [00:28:33] * viiastudio has joined #silverstripe
8: [00:34:17] * kerosene quit (Ping timeout: 256 seconds)
9: [00:35:57] * kerosene has joined #silverstripe
10: [01:03:26] * howardgrigg quit (Read error: Connection reset by peer)
11: [01:03:54] * howardgrigg has joined #silverstripe
12: [01:09:30] * willr has joined #silverstripe
13: [01:13:38] * priithansen quit (Quit: priithansen)
14: [01:27:16] * ChronicD has left #silverstripe
15: [01:52:18] * howardgrigg quit (Ping timeout: 264 seconds)
16: [01:56:24] * howardgrigg has joined #silverstripe
17: [01:57:39] * willr quit (Quit: willr)
18: [02:08:03] * kerosene quit (*.net *.split)
19: [02:13:30] * kerosene has joined #silverstripe
20: [02:23:33] * aragonne has joined #silverstripe
21: [02:33:52] * howardgrigg quit (Ping timeout: 260 seconds)
22: [02:40:36] * howardgrigg has joined #silverstripe
23: [02:41:36] <aragonne> Hi, does anyone know how to prevent a DataObject from being created if its fields are not populated? For example, I have a Company DO that has_one Member. In the Company's modeladmin, I display the Member fields. If none of the Member fields are populated, I don't want a new Member object to be created with empty data. That is what SilverStripe is doing right now when I save a Company with empty data for the Member fie
24: [02:42:17] <aragonne> probably something in Company->onBeforeWrite(), but I don't know what method to use to prevent the Member object from being created
25: [02:42:42] <aragonne> (if the Member's fields are empty)
26: [03:08:01] * cloph_away has joined #silverstripe
27: [03:08:24] * cloph quit (Ping timeout: 260 seconds)
28: [03:31:44] * robert_ quit (Ping timeout: 256 seconds)
29: [03:52:31] * howardgrigg quit (Remote host closed the connection)
30: [04:37:24] * binman quit (Read error: Connection reset by peer)
31: [05:57:59] * viiastudio quit (Ping timeout: 250 seconds)
32: [06:11:07] * unsignedint quit (Remote host closed the connection)
33: [06:13:01] * joelpitt_ quit (Remote host closed the connection)
34: [06:42:53] * unsignedint has joined #silverstripe
35: [06:47:44] * unsignedint quit (Ping timeout: 256 seconds)
36: [07:03:02] * abitran quit (Ping timeout: 240 seconds)
37: [07:03:25] * abitran has joined #silverstripe
38: [07:28:23] <simon_w|air> Man, ruby gems is even worse at getting its metadata than composer
39: [07:30:54] * peter_ss has joined #silverstripe
40: [07:32:45] * peter_ss has left #silverstripe
41: [07:54:22] * Error404NotFound has joined #silverstripe
42: [07:55:27] * violetina has joined #silverstripe
43: [08:01:20] * joelpittet has joined #silverstripe
44: [08:05:37] * joelpittet quit (Ping timeout: 246 seconds)
45: [08:18:25] <wmk> aragonne, afaik if you don't call parent::onBeforeWrite() it won't be created
46: [08:19:52] * Shrike_Finland has joined #silverstripe
47: [08:24:40] * openbees has joined #silverstripe
48: [08:40:18] * openbees quit (Ping timeout: 264 seconds)
49: [08:43:42] <aragonne> wmk: can you pls. expand?
50: [08:53:43] * openbees has joined #silverstripe
51: [08:59:15] <aragonne> simon_w|air: any insights? I'm looking through the sgn_hasoneedit_DataObjectExtension code to see where I can check if a object should be written. I'd be good to go if I can just detect that if the related Member's email field is not populated, then don't save that Member
52: [09:20:06] <wmk> aragonne, in a dataobjects onBeforeWrite() you have to call parent::onBeforeWrite() or the DO isn't saved.
53: [09:20:19] <wmk> So you can call parent::onBeforeWrite() only if it should be saved.
54: [09:22:25] <openbees> wow people working on weekends too :P
55: [09:23:01] <openbees> I thought I am all alone :D
56: [09:23:10] <aragonne> unfortunately, it's the norm now :-(
57: [09:24:07] <aragonne> my kids are always asking my wife, 'Why is daddy always on the computer?'
58: [09:25:09] <openbees> :-(
59: [09:26:27] <aragonne> wmk, simon_w|air: I *might* have found something that could easily fix this issue. I've pasted the sgn_hasoneedit_DataObjectExtension code here: http://pastebin.com/Uje0XMLV
60: [09:26:55] <aragonne> it's basically unchanged except for lines 21 and 29 where I added some Debug statements
61: [09:28:05] * peter_ss has joined #silverstripe
62: [09:28:21] <aragonne> The key code change is on line 23. The original code was: if ($original !== $value) { … flag the field as changed … } … note the comparison operator compares value and type
63: [09:28:27] <peter_ss> hi guys just want to ask why I'm getting this error in composer RuntimeException]
64: [09:28:27] <peter_ss> The lock file does not contain require-dev information, run install with the --no-dev option or run update to install those packages.
65: [09:28:37] <peter_ss> when installing fresh ss using composer
66: [09:29:02] <aragonne> I updated it to: if ($original != $value) {… flag the field as changed …}
67: [09:29:17] <openbees> peter_ss what exact command you are using to install this ?
68: [09:29:31] <aragonne> and if the Members data has not changed, a new Member object is not created
69: [09:29:32] <peter_ss> composer create-project silverstripe/installer
70: [09:30:07] <peter_ss> openbees don't know why I'm getting that error
71: [09:31:44] <aragonne> On line 21, where I output the original and 'changed' values, the original would be NULL and the changed value would be '' (i.e., empty string) .. the original check on line 23 would consider that the field has changed … but if I remove comparing the data type, null and '' are the same and the code doesn't flag the field as changed
72: [09:33:25] <aragonne> the aforementioned debug output is here: http://pastebin.com/mxvLCXXx
73: [09:34:28] <aragonne> If you look at the Partner2 relation field, notice the before values are NULL while the changed values are '' (empty string) … I think NULL comes from the DB and the empty string is from the blank form fields
74: [09:35:07] <aragonne> if we compare before and and changed values with !==, then they are different because NULL is not the same as ''
75: [09:35:28] <aragonne> but if we compare using the != operator, NULL and '' are the same
76: [09:35:31] <simon_w> aragonne, using != isn't enough as then you won't be able to change a field from NULL to '0'
77: [09:35:46] <simon_w> (NULL being the value of every field on an empty object)
78: [09:36:10] <openbees> peter_ss .. I am not sure about that error .. but it seems no harm using --no-dev unless you are creating a development environment
79: [09:36:18] <aragonne> simon_w: do you have any suggestions on how we can achieve the same effect?
80: [09:36:34] <simon_w> peter_ss, you need to use --no-dev because composer is stupid
81: [09:36:53] <peter_ss> openbees yes i've added that too then it askf for github info and this is what I'm getting now [Composer\Downloader\TransportException]
82: [09:36:53] * openbees rofl :D
83: [09:36:54] <peter_ss> The "https://api.github.com/repos/silverstripe/sapphire/zipball/3.0.5" file could not be downloaded (HTTP/1.1 404 Not Found)
84: [09:37:09] <simon_w> peter_ss, also, target 3.0.x-dev instead of 3.0.5
85: [09:37:16] <peter_ss> ha!
86: [09:37:17] <peter_ss> ok
87: [09:38:37] <peter_ss> so will this suffice composer create-project silverstripe/installer --no-dev 3.0.x-dev
88: [09:40:13] <openbees> yes
89: [09:40:32] <simon_w> aragonne, you're working off trunk?
90: [09:40:48] <aragonne> simon_w: yessir
91: [09:42:27] <simon_w> Okay, just testing this
92: [09:43:45] <aragonne> simon_w: thanks! I just also reverted back to the !== comparison operator but then added a cheesy fix in the line right before: if ($value = '') $value = null;
93: [09:44:14] <aragonne> cheesy fix, but works also … you'll probably have a more formal fix
94: [09:44:21] <aragonne> (fingers crossed)
95: [09:44:50] <peter_ss> sorry stupid question can i use composer to an existing project?
96: [09:45:01] <aragonne> cheesy … no relation to UncleCheese
97: [09:45:02] <peter_ss> i mean an existing directory and issue the composer command?
98: [09:48:09] <simon_w> aragonne, committed
99: [09:48:28] <aragonne> simon_w: thanks! I'll take a look
100: [09:51:01] <openbees> peter_ss yes off-course for installing new modules , updating existing one etc http://doc.silverstripe.org/framework/en/installation/composer
101: [09:57:05] <peter_ss> openbees so 3.0.x-dev will install 3.0.5-dev version?
102: [09:58:39] <simon_w|air> Nope, 3.0.6-rc2 (since there haven't been any changes since then)
103: [10:02:38] * abitran quit (Ping timeout: 264 seconds)
104: [10:02:47] * abitran has joined #silverstripe
105: [10:03:17] <aragonne> simon_w: THANKS for the update to the hasoneedit module. The typecast to string for the original and changed values did the trick! Better solution that what I tried. Much appreciated.
106: [10:03:50] <aragonne> wmk: thanks as usual for always chiming in on hasoneedit … I wouldn't have discovered it w/o ya … very handy module
107: [10:07:44] <wmk> aragonne, you're welcome ;) it helped me a lot, too
108: [10:12:20] * simon_w|air tags 1.2
109: [10:15:28] <simon_w|air> openbees, any idea how often addons polls?
110: [10:15:55] <openbees> u mean pulls ?
111: [10:16:26] <simon_w|air> Well, it's a polling service
112: [10:17:54] <simon_w|air> Gah, stupid markdown and its _ for italics
113: [10:18:11] <openbees> hmm No idea really !
114: [10:23:30] <peter_ss> openbees so if i use 3.0-x-dev is that ok to deploy to my production site? I was hoping 3.0.5 is stable already.
115: [10:27:59] <openbees> hmm ass simon pointed it will download 3.0.6-rc2 .. so obviously it's not a stable release .. pretty much depends on your choice .
116: [10:28:06] <openbees> as* sorry :D
117: [10:30:46] <openbees> simon_w|air don't you think there should be atleast one download button on addon site itself .. a zip/tar link for latest stable release ... most of the people still not comfortable with composer .. !
118: [10:31:20] <simon_w|air> openbees, yes, but like with the move to GitHub issues, general use doesn't seem to have been considered
119: [10:31:46] <simon_w|air> Heck, I can't even add most of my modules
120: [10:32:09] <openbees> why is that ? svn ?
121: [10:32:23] <simon_w|air> svn over SSL
122: [10:34:36] <simon_w|air> My hasoneedit module is also on svn, but less over plain HTTP instead of HTTPS
123: [10:34:43] <openbees> any suggestion how can we fix this ?
124: [10:35:04] <openbees> the easiest is if you move to git :D
125: [10:35:46] <simon_w|air> Don't use composer :p
126: [10:36:09] <openbees> that's wasn't my idea .. blame ajshort :D
127: [10:36:52] <openbees> right now I am creating one chart for addons site ;) submission in last 30 days
128: [10:37:39] <openbees> actually that was the easiest open ticket I could find .. he he
129: [10:37:42] <simon_w|air> https://github.com/composer/packagist/issues/255 is the issue I created back in December about it
130: [10:40:26] <openbees> hmm that's bad !
131: [10:41:43] <peter_ss> this sucks I'll just down the 3.0.5 then :D
132: [10:41:49] <peter_ss> download*
133: [10:47:33] <openbees> simon_w|air u got one more supporter against composer :D ^^ peter_ss
134: [10:48:06] <peter_ss> hahaha
135: [10:48:12] <simon_w|air> Or, you know, most of the regulars in here :p
136: [10:48:42] <peter_ss> but the question is why I can't install using composer? haha 3.0.5
137: [10:49:44] <simon_w|air> Because sapphire got renamed to silverstripe-framework and 3.0.5 and the composer.lock file in the 3.0.5 tag (which create-project uses for some reason) references sapphire, and that's the one part of GitHub that doesn't do a redirect on a rename
138: [10:50:33] <peter_ss> simon so should i go 3.0.5?
139: [10:50:36] <peter_ss> sorry 3.0.4?
140: [10:50:56] <simon_w|air> You'd want a tag after 3.0.5 if you're using a tagged version
141: [10:51:09] <simon_w|air> Or a dev version
142: [10:51:15] <peter_ss> i'm not
143: [10:51:46] <simon_w|air> I know, that's why you're getting the 404 about sapphire
144: [10:54:20] <peter_ss> so my question is should i go to 3.0.4 installation then?
145: [10:54:53] <simon_w|air> No, you'd want a tag after 3.0.5 if you're using a tagged version with composer
146: [10:55:23] <peter_ss> ok
147: [10:56:45] * simon_w|air quit (Quit: Leaving)
148: [11:00:48] * ARNHOE has joined #silverstripe
149: [11:06:29] * priithansen has joined #silverstripe
150: [11:11:58] <openbees> hmmm why "Uncaught InvalidArgumentException: ExactMatchFilter does not accept GreaterThan as modifiers" on Addon::get()->filter("Created::GreaterThan", $dateStartFrom)
151: [11:15:59] * gelignite has joined #silverstripe
152: [11:18:10] <openbees> it's very annoying when something written in docs doesn't work :(
153: [12:08:22] * Liquide has joined #silverstripe
154: [12:43:28] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
155: [12:47:48] * peter_ss1 has joined #silverstripe
156: [12:48:03] * peter_ss1 quit (Client Quit)
157: [12:48:47] * peter_ss quit (Ping timeout: 260 seconds)
158: [13:06:44] * openbees quit (Quit: Leaving)
159: [13:06:50] * abitran quit (Ping timeout: 256 seconds)
160: [13:07:00] * abitran has joined #silverstripe
161: [14:24:44] * priithansen quit (Quit: priithansen)
162: [14:38:00] * Error404NotFound has joined #silverstripe
163: [14:53:58] * iamss has joined #silverstripe
164: [14:56:24] <iamss> is there a freelance job here?
165: [15:03:18] * iamss quit (Quit: Page closed)
166: [15:28:44] * ARNHOE quit (Remote host closed the connection)
167: [15:29:20] * ARNHOE has joined #silverstripe
168: [15:33:40] * ARNHOE quit (Ping timeout: 256 seconds)
169: [15:41:17] * violetina quit (Remote host closed the connection)
170: [15:42:51] * violetina has joined #silverstripe
171: [16:13:24] * ARNHOE has joined #silverstripe
172: [16:27:10] * philbenoit has joined #silverstripe
173: [16:27:32] <philbenoit> anyone here added sections to the Left menu in SS?
174: [16:32:37] <philbenoit> is anyone about?
175: [16:54:29] * philbenoit quit (Ping timeout: 250 seconds)
176: [17:58:27] * travis-ci has joined #silverstripe
177: [17:58:27] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#536 (3.1 - 16c802f : Ingo Schommer): The build passed.
178: [17:58:27] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/7ec7a263c09e...16c802f7e186
179: [17:58:27] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/11363452
180: [17:58:27] * travis-ci has left #silverstripe
181: [18:06:45] * travis-ci has joined #silverstripe
182: [18:06:45] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#975 (3.1 - 849f2c1 : Ingo Schommer): The build passed.
183: [18:06:45] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/55fc0265f46e...849f2c1cb128
184: [18:06:45] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11363458
185: [18:06:45] * travis-ci has left #silverstripe
186: [19:04:49] * Liquide quit ()
187: [19:18:27] * abitran quit (Ping timeout: 260 seconds)
188: [19:18:58] * abitran has joined #silverstripe
189: [19:20:38] * joelpittet has joined #silverstripe
190: [19:30:35] * Error404NotFound quit (Read error: Connection reset by peer)
191: [19:32:39] * Error404NotFound has joined #silverstripe
192: [20:03:45] * ARNHOE quit (Remote host closed the connection)
193: [20:04:20] * ARNHOE has joined #silverstripe
194: [20:09:00] * ARNHOE quit (Ping timeout: 260 seconds)
195: [21:26:47] * abitran quit (Ping timeout: 260 seconds)
196: [21:32:56] * abitran has joined #silverstripe
197: [22:10:38] * Error404NotFound quit (Ping timeout: 240 seconds)
198: [22:23:31] * Error404NotFound has joined #silverstripe
199: [22:28:26] * Error404NotFound quit (Ping timeout: 264 seconds)
200: [22:40:21] * Error404NotFound has joined #silverstripe
201: [22:46:07] * Error404NotFound quit (Ping timeout: 264 seconds)
202: [22:59:33] * Error404NotFound has joined #silverstripe
203: [23:05:15] * Error404NotFound quit (Ping timeout: 260 seconds)
204: [23:16:56] * Error404NotFound has joined #silverstripe
205: [23:22:19] * Error404NotFound quit (Ping timeout: 256 seconds)
206: [23:26:03] * violetina quit (Remote host closed the connection)
207: [23:27:26] * SightUnseen has joined #silverstripe
208: [23:27:38] * SightUnseen has left #silverstripe
209: [23:34:39] * Error404NotFound has joined #silverstripe
210: [23:40:35] * Error404NotFound quit (Ping timeout: 268 seconds)
211: [23:52:16] * gelignite quit (Quit: http://bit.ly/nkczDT)
212: [23:52:31] * Error404NotFound has joined #silverstripe
213: [23:58:07] * Error404NotFound quit (Ping timeout: 264 seconds)
214: [23:58:42] * travis-ci has joined #silverstripe
215: [23:58:42] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#976 (3.1 - a870001 : Ingo Schommer): The build was broken.
216: [23:58:42] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/849f2c1cb128...a87000170a6e
217: [23:58:42] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11370767
218: [23:58:42] * travis-ci has left #silverstripe

These logs were automatically created by ss-log on irc.freenode.net.