#silverstripe IRC Log

IRC log for 25 January 2015

All timestamps are in UTC.

1: [00:02:27] * joelpittet quit (Remote host closed the connection)
2: [00:08:57] * joelpittet has joined #silverstripe
3: [00:17:48] * Azure has joined #silverstripe
4: [00:26:23] * cloph is now known as cloph_away
5: [00:27:14] * Azure quit (Excess Flood)
6: [00:28:31] * Azure has joined #silverstripe
7: [02:08:08] * benjhocking1 has joined #silverstripe
8: [02:09:18] * r_hector1 has joined #silverstripe
9: [02:10:50] * AshKyd_ has joined #silverstripe
10: [02:10:51] * Colin[pi] quit (Ping timeout: 264 seconds)
11: [02:16:19] * gelignite quit (*.net *.split)
12: [02:16:19] * AshKyd quit (*.net *.split)
13: [02:16:19] * benjhocking quit (*.net *.split)
14: [02:16:19] * r_hector quit (*.net *.split)
15: [02:16:20] * stnvh quit (*.net *.split)
16: [02:22:29] * gelignite has joined #silverstripe
17: [02:23:14] * r_hector has joined #silverstripe
18: [02:29:39] * joelpittet quit (Remote host closed the connection)
19: [02:35:09] * r_hector1 quit (Ping timeout: 244 seconds)
20: [02:40:45] * gelignite quit (Quit: http://bit.ly/nkczDT)
21: [02:45:20] * ibeardsl1e has joined #silverstripe
22: [02:47:48] * SphereSilver_ has joined #silverstripe
23: [02:49:02] * muskie9_ has joined #silverstripe
24: [02:49:10] * muskie9 quit (Ping timeout: 264 seconds)
25: [02:49:28] * kerosene quit (*.net *.split)
26: [02:49:28] * SphereSilver quit (*.net *.split)
27: [02:49:29] * ibeardslee quit (*.net *.split)
28: [02:49:33] * SphereSilver_ is now known as SphereSilver
29: [02:49:33] * kerosene_ has joined #silverstripe
30: [02:51:18] * kerosene_ is now known as kerosene
31: [03:11:21] * babak_ quit (Ping timeout: 276 seconds)
32: [03:20:33] * babak_ has joined #silverstripe
33: [03:29:09] * joelpittet has joined #silverstripe
34: [03:39:36] * joelpitt_ has joined #silverstripe
35: [03:40:17] * muskie9 has joined #silverstripe
36: [03:40:18] * bemusedrat1 has joined #silverstripe
37: [03:40:48] * muskie9_ quit (Ping timeout: 246 seconds)
38: [03:47:48] * Blacklite_ has joined #silverstripe
39: [03:52:04] * joelpittet quit (Ping timeout: 628 seconds)
40: [03:52:04] * bemusedrat quit (Ping timeout: 628 seconds)
41: [03:52:04] * Blacklite quit (Ping timeout: 628 seconds)
42: [03:54:51] * joelpitt_ quit ()
43: [03:55:10] * joelpittet has joined #silverstripe
44: [04:08:44] * bemusedrat1 quit (Quit: Leaving)
45: [04:11:05] * bemusedrat has joined #silverstripe
46: [04:45:30] * cloph has joined #silverstripe
47: [04:46:15] * cloph_away quit (Ping timeout: 276 seconds)
48: [04:50:52] * Colin[pi] has joined #silverstripe
49: [05:01:51] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
50: [05:40:37] * joelpittet quit (Remote host closed the connection)
51: [05:43:58] * joelpittet has joined #silverstripe
52: [06:52:15] * Colin[pi] quit (Ping timeout: 264 seconds)
53: [07:24:23] * joelpittet quit ()
54: [07:39:31] * benjhocking has joined #silverstripe
55: [07:41:17] * benjhocking1 quit (Ping timeout: 256 seconds)
56: [07:49:38] * zippy has joined #silverstripe
57: [07:50:04] <zippy> evening
58: [07:50:44] <ss23> moin
59: [07:52:42] <zippy> ss23: you do much testing
60: [07:55:56] <zippy> I thought willr worked at ss.
61: [07:58:22] <ss23> Nope, he used to ages ago
62: [07:58:25] <ss23> Well not ages
63: [07:58:26] <ss23> A long time ago
64: [07:58:29] <ss23> A little while ago
65: [07:58:30] <ss23> fuck idk
66: [07:58:40] <ss23> zippy: I don't do much testing though, no
67: [07:58:44] <ss23> Manual testing, yes, automated no
68: [08:06:17] * Colin[pi] has joined #silverstripe
69: [08:07:01] <zippy> Colin[pi]: o/
70: [08:20:49] <zippy> from testing fixtures, there needs to be a way to specify the page should be plublished/written - otherwise test code gets so bloated
71: [08:49:35] * zippy quit (Ping timeout: 265 seconds)
72: [08:54:52] * bolo has joined #silverstripe
73: [08:55:46] <bolo> is it ok that I have some templates under mysite?
74: [08:56:09] <bolo> renderWith() can't find them when they are in the themes dir :S
75: [09:10:46] * zippy has joined #silverstripe
76: [09:15:18] <zippy> I have a page in the cms. /page
77: [09:15:36] <zippy> I want to add an id to the end, /page/x - but that throws an error page not found - which I believe id due to the routeing
78: [09:15:52] <zippy> since it's a cms page, it's probably looking for a page in the CMS under /page
79: [09:29:50] <zippy> change your route to '$ID/$OtherID' => 'handleAction', on the controller
80: [09:37:12] <zippy> Failed asserting the CSS selector 'h2' has a partial match to the expected elements:
81: [09:37:12] <zippy> 'Introduction'
82: [09:37:12] <zippy> Instead the following elements were found:
83: [09:37:12] <zippy> '<h2>Introduction</h2>'
84: [09:37:14] <zippy> fffff....!
85: [09:46:43] * bolo quit (Ping timeout: 246 seconds)
86: [09:54:55] * Colin[pi] quit (Ping timeout: 252 seconds)
87: [10:04:44] * spronk2 has joined #silverstripe
88: [10:38:38] * spronk2 quit (Quit: spronk2)
89: [11:14:04] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
90: [11:18:00] * spronk2 has joined #silverstripe
91: [11:34:06] * Colin[pi] has joined #silverstripe
92: [11:35:41] * travis-ci has joined #silverstripe
93: [11:35:41] <travis-ci> silverstripe/silverstripe-framework#3935 (3.1 - efb1eb5 : Daniel Hensby): The build passed.
94: [11:35:41] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/3e811112c9d0...efb1eb588606
95: [11:35:41] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/48235574
96: [11:35:41] * travis-ci has left #silverstripe
97: [11:49:07] * Shrike_Finland has joined #silverstripe
98: [11:53:27] * Colin[pi] quit (Ping timeout: 264 seconds)
99: [11:56:18] * Shrike_Finland quit (Quit: Leaving.)
100: [11:59:24] * Shrike_Finland has joined #silverstripe
101: [12:33:56] * Shrike_Finland quit (Quit: Leaving.)
102: [12:38:00] * gelignite has joined #silverstripe
103: [12:52:18] * bemusedrat quit (Quit: Leaving)
104: [13:17:55] * spronk2 quit (Quit: spronk2)
105: [13:58:04] * Shrike_Finland has joined #silverstripe
106: [14:12:59] * masnun has joined #silverstripe
107: [14:14:28] * masnun_ has joined #silverstripe
108: [14:15:07] * masnun__ has joined #silverstripe
109: [14:17:22] * masnun quit (Ping timeout: 255 seconds)
110: [14:19:05] * masnun_ quit (Ping timeout: 256 seconds)
111: [14:30:39] * masnun__ is now known as masnun|away
112: [14:32:53] * masnun|away is now known as masnun__
113: [14:47:49] * Shrike_Finland quit (Quit: Leaving.)
114: [15:03:46] * Shrike_Finland has joined #silverstripe
115: [15:04:40] * masnun has joined #silverstripe
116: [15:05:01] * gelignite quit (Quit: http://bit.ly/nkczDT)
117: [15:06:39] * masnun__ quit (Ping timeout: 264 seconds)
118: [15:41:03] * masnun is now known as masnun|away
119: [16:16:05] * muskie9 has joined #silverstripe
120: [16:30:56] * masnun|away is now known as masnun
121: [16:34:35] * Shrike_Finland quit (Quit: Leaving.)
122: [16:41:03] * Shrike_Finland has joined #silverstripe
123: [17:06:18] * muskie9_ has joined #silverstripe
124: [17:08:15] * benjhocking1 has joined #silverstripe
125: [17:09:32] * ibeardslee has joined #silverstripe
126: [17:13:12] * gelignite has joined #silverstripe
127: [17:15:25] * benjhocking quit (Ping timeout: 240 seconds)
128: [17:15:25] * ibeardsl1e quit (Ping timeout: 240 seconds)
129: [17:15:48] * muskie9 quit (*.net *.split)
130: [17:18:57] * babak_ quit (Ping timeout: 276 seconds)
131: [17:25:21] * babak_ has joined #silverstripe
132: [17:51:46] * masnun quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
133: [17:56:14] * masnun has joined #silverstripe
134: [18:15:02] * masnun quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
135: [18:52:44] <MK_away> morning
136: [18:52:49] * MK_away is now known as MichalKleiner
137: [19:01:46] * spekulatius has joined #silverstripe
138: [19:04:27] * jedateach has joined #silverstripe
139: [19:16:14] * gelignite quit (Ping timeout: 244 seconds)
140: [19:16:18] * gelignite_ has joined #silverstripe
141: [19:18:49] * gelignite_ is now known as gelignite
142: [19:23:58] * mobiusnz has joined #silverstripe
143: [19:36:16] * zippy has joined #silverstripe
144: [19:38:05] <zippy> morning
145: [19:44:03] * camfindlay has joined #silverstripe
146: [19:47:53] * Shrike_Finland quit (Quit: Leaving.)
147: [19:49:12] <MichalKleiner> morning cam
148: [20:00:34] <camfindlay> morning
149: [20:01:13] <camfindlay> Are you coming along to meetup on Wednesday?
150: [20:01:19] * wracu has joined #silverstripe
151: [20:12:56] * pippy has joined #silverstripe
152: [20:17:40] <zippy> camfindlay: you do much in the way of automated testing?
153: [20:18:39] <camfindlay> other than setting up travis files for open source stuff I’m usually just running stuff via phpunit locally. I know some of the guys at SS Ltd use TeamCity though.
154: [20:19:04] <zippy> camfindlay: yea, do you write much tests for phpunit locally?
155: [20:19:14] <MichalKleiner> camfindlay: yes, coming
156: [20:19:48] <camfindlay> usually a few unit tests for the few modules I look after (though I do much less coding these days ;) )
157: [20:20:10] <zippy> right, I might have to post to the google group..
158: [20:20:25] <camfindlay> yeah not a silly idea
159: [20:20:50] <camfindlay> what are you looking to do zippy?
160: [20:21:01] * glenn-bautista has joined #silverstripe
161: [20:22:00] <zippy> I got testing working, but setting up page testing seems a git cumbersom. In my fixture i have created a page - but when ever I set it up from the fixture I have to publish to it live. When I am setting up 3-4 pages it bloats out the code a lot.
162: [20:22:18] <zippy> FixtureFactory has call backs, but then I means I have to register the same call back on each page type, which again is not optimal.
163: [20:23:27] <camfindlay> oh right, actually what I usually do is add some code that ignores the publishing stuff which seems to be pretty common practice in tests I’ve seen - let me go fish out the code I use.
164: [20:23:43] <zippy> wo
165: [20:24:47] <camfindlay> static $use_draft_site = true;
166: [20:24:56] <zippy> I got it working, just means I had to add a core hack to FixtureBlueprint.php ; if(is_subclass_of($obj, 'SiteTree')) {
167: [20:24:56] <zippy> $obj->publish('Stage', 'Live');
168: [20:24:56] <zippy> }
169: [20:24:57] <camfindlay> add that to the top of your testing class
170: [20:24:58] * Azure quit (Max SendQ exceeded)
171: [20:25:20] <zippy> mmmmm ok :) would that work for for guest / logged out as well?
172: [20:25:30] <camfindlay> yip should do
173: [20:25:58] <camfindlay> it just treats the pages from fixture as the truth on the site rather than dealling with versioning
174: [20:26:24] <camfindlay> you’re not writing tests to test the Versioned class anyway ;) those already exist in framework
175: [20:26:32] <zippy> yea for sure.
176: [20:26:39] <zippy> might make the tests a milli second faster as well :)
177: [20:26:50] <zippy> lord knows it needs all the help with speed it can get
178: [20:26:57] <camfindlay> probably a lot faster if it’s not having to publish everything
179: [20:27:14] <zippy> yea
180: [20:27:30] * Azure has joined #silverstripe
181: [20:28:32] <zippy> I was thinking, it'd be a good/nice idea if there was a define or something inside framework/dev/bootstrap that signaled that tests were running. Before the core / database config was pulled in. That way config for tests (sqlite) could be stored in the _ss_environment file
182: [20:28:44] <camfindlay> let us know how you get on. Could also be handly to add something to the how to section of the testing docs
183: [20:28:44] <zippy> I went with define('RUNNING_TESTS', true); which doesn't feel right... but works well
184: [20:29:01] <zippy> camfindlay: yes... the testing docs could use some love...
185: [20:29:17] <zippy> see how much time I have left in this project, maybe I could spend an hour there
186: [20:29:21] <camfindlay> config for tests can already be added in environment file… I’ll find some more codez for you ;)
187: [20:29:45] * Azure quit (Max SendQ exceeded)
188: [20:29:59] <camfindlay> actually this is something from jedatech https://gist.github.com/jedateach/dcc03feb3746863b8097
189: [20:30:04] <zippy> kingloozer had some code which was checking for phpunit class name... which I didn't reallly like
190: [20:30:16] <zippy> yea dude thats nasty..
191: [20:30:36] <zippy> isset, strpos, ..... vs
192: [20:30:45] <zippy> if(defined('RUNNING_TESTS')) { code here }
193: [20:31:27] <camfindlay> you’d have to make those checks somewhere regardless though right?
194: [20:31:45] * JustTesting has joined #silverstripe
195: [20:31:59] <zippy> no, because you set the define in the framework/dev/bootstrap, which is called by phpunit when it fires up.
196: [20:33:06] <camfindlay> hmmm true
197: [20:33:26] <camfindlay> feel free to raise some questioning around thi sin the dev list
198: [20:33:42] <zippy> will do, thanks :)
199: [20:33:46] <camfindlay> and maybe raise an RFC if you feel you have an understanding on what might be needed
200: [20:34:15] <camfindlay> (I need to get mateusz to document the RFC process once the RFC-1 process is complete).
201: [20:35:09] * Azure has joined #silverstripe
202: [20:36:17] * JustTesting quit (Client Quit)
203: [20:36:33] * micmania1 has joined #silverstripe
204: [20:36:34] <zippy> camfindlay: thanks, that use_draft_site works great!
205: [20:37:08] <zippy> tbh, it'd almost be worth making that the default. So all tests just run around on the draft site, and then the tests which do versioning checks has it to false
206: [20:37:25] <zippy> because there is probably only 2-3 tests which actually need it on.
207: [20:37:39] <zippy> the rest don't, speed improvement right there :) travis might run 2 minutes faster heh.
208: [20:48:11] * Noob has joined #silverstripe
209: [20:48:27] * Noob is now known as NoobNZ
210: [20:49:30] * NoobNZ quit (Client Quit)
211: [20:52:15] <camfindlay> nice one zippy, glad that helped :)
212: [20:52:42] <camfindlay> Still, go raise your testing “RUNNING_TEST” thing in the dev list and see what the thoughts are
213: [20:54:35] <zippy> yea, with a nicer name haha
214: [20:56:47] <zippy> home come the underscores have changed? eg http://doc.silverstripe.org/en/getting_started/coding_conventions/ - has underscore, http://doc.silverstripe.org/en/developer_guides/controllers/requestfilters/ doesn't, but used to (links have it with underscore...)
215: [21:09:50] * spronk2 has joined #silverstripe
216: [21:16:35] <camfindlay> possible someone missed it - there was a nuch of use reviewing all the docs. I think we settled on underscores and it also depends on the name of the actual MD file now too.
217: [21:18:07] <pippy> :o
218: [21:28:45] * r_hector quit (Quit: Leaving.)
219: [21:30:32] * headtrip has joined #silverstripe
220: [21:33:21] * headtrip quit (Client Quit)
221: [21:37:52] * novaweb has joined #silverstripe
222: [21:50:10] * Azure quit (Ping timeout: 265 seconds)
223: [22:11:26] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
224: [22:18:33] * Azure has joined #silverstripe
225: [22:35:36] * joelpittet has joined #silverstripe
226: [22:46:54] * spronk2 quit (Quit: spronk2)
227: [22:47:17] * spronk2 has joined #silverstripe
228: [22:50:43] <ss23> http://i.imgur.com/lBEWvyM.jpg rofl rofl
229: [22:54:26] * UncleCheese has joined #silverstripe
230: [22:54:41] * masnun has joined #silverstripe
231: [22:54:56] <novaweb> latest commit message "ommenting out Block jQuery, because blocking jQuery for an entire project is just ridiculous"
232: [22:55:05] <novaweb> *commenting
233: [23:00:00] <zippy> O.o
234: [23:00:02] <zippy> UncleCheese: o/
235: [23:10:07] * masnun has left #silverstripe
236: [23:18:41] * camfindlay quit (Quit: camfindlay)
237: [23:29:02] <wracu> populating a DropDown with the following...
238: [23:29:03] <wracu> $types = singleton('Notice')->dbObject('Invoiced')->enumvalues();
239: [23:29:26] <wracu> can I remove individual options from the $type?
240: [23:30:03] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
241: [23:50:53] <MichalKleiner> I'd say with simple unset, just dump $types to see the structure
242: [23:51:18] <MichalKleiner> maybe something like Filtre(condition) might work but haven't used it
243: [23:51:24] <MichalKleiner> *Filter
244: [23:52:22] * joelpittet quit (Remote host closed the connection)
245: [23:52:30] * muskie9_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
246: [23:58:05] * muskie9 has joined #silverstripe

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