#silverstripe IRC Log

IRC log for 7 December 2016

All timestamps are in UTC.

1: [00:00:08] * bubaphex quit (Client Quit)
2: [00:02:06] * trash__ quit (Ping timeout: 260 seconds)
3: [00:09:50] * micmania1 quit (Quit: micmania1)
4: [00:13:53] * micmania1 has joined #silverstripe
5: [00:31:33] * bubaphex has joined #silverstripe
6: [00:42:06] * spronk has joined #silverstripe
7: [00:42:17] <spronk> who's been watching westworld?
8: [00:43:18] <Snowman23> I've just started
9: [00:47:25] <Snowman23> You finished I presume, spronk?
10: [00:47:33] <spronk> jaja
11: [00:47:38] <Snowman23> nice
12: [00:47:42] <Snowman23> I'm on like.... 6
13: [00:47:47] <Snowman23> Should finish this week, got them all dl'd
14: [00:47:58] <spronk> watch it slowly
15: [00:48:04] <spronk> its worth digesting
16: [00:48:05] <spronk> :P
17: [00:49:55] <Snowman23> psh
18: [00:50:03] <Snowman23> I don't believe in watching things slow!
19: [00:53:28] <Nightjar> Snowman23 is all about Brannigan's law.
20: [00:53:47] <spronk> lul
21: [00:54:16] <spronk> westworld
22: [00:54:17] <spronk> amazing
23: [00:54:18] <spronk> sososo good
24: [00:58:55] <Nightjar> http://s2.quickmeme.com/img/f6/f627f069dc84e3873564c74f82f4e9d0c0f3f699cf51257b113d3d9dd83ccfd2.jpg
25: [01:08:30] * DanaeNZ quit (Remote host closed the connection)
26: [01:09:06] * DanaeNZ has joined #silverstripe
27: [01:13:29] * DanaeNZ quit (Ping timeout: 260 seconds)
28: [01:18:38] * Isaac_ has joined #silverstripe
29: [01:20:47] <Isaac_> I have an issue with the project structure of SilverStripe, the root directory of the project is the root directory of where apache virtual hosts are pointed to
30: [01:21:36] <Isaac_> is it possible to specify a "white list" public directory to point my virtual host to?
31: [01:22:19] <Isaac_> currently my solution is to black list files in the htaccess, but that isn't very maintainable, it would be good if i could have a white list solution instead
32: [01:27:04] * DanaeNZ has joined #silverstripe
33: [01:29:48] * bubaphex quit (Quit: bubaphex)
34: [01:40:50] * shlinx has joined #silverstripe
35: [01:41:37] * micmania1 quit (Quit: micmania1)
36: [01:49:13] <shlinx> Howdy. Does anyone know when developping silverstripe module, can it integrate Gitlab CI?
37: [01:53:39] <Isaac_> @shlinx maybe use sake? https://docs.silverstripe.org/en/3.1/developer_guides/cli/#sake-silverstripe-make
38: [01:54:12] <Nightjar> Isaac_, I'm not sure what you're asking, can you explain a bit better please?
39: [01:54:48] <Nightjar> shlinx, I don't particularly see why not. But I've not tried it at all.
40: [01:56:09] <Nightjar> Isaac_, you mean the web root of your virtual host contains more than just your SilverStripe installation root?
41: [01:56:18] <Nightjar> and you wish to protect these extra files?
42: [01:56:25] <shlinx> Nightjar, I'm kind of new with SilverStripe unit testing. I'm trying to run unit test on a module, trying silverstripe-blog, but can't run through
43: [01:56:30] <shlinx> What I'm doing it
44: [01:56:32] <shlinx> is
45: [01:57:01] <shlinx> git clone silverstripe-blog module.
46: [01:57:06] <shlinx> cd silverstripe-blog
47: [01:57:10] <shlinx> composer update
48: [01:57:32] <shlinx> then run ./vendor/bin/phpunit
49: [01:57:50] <Nightjar> Isaac_, or are you just talking about a standard sort of SilverStripe setup? Because in this case most things are protected by the rules in the .htacess files (which are trivial to port to a vhost definition if you've disabled that functionality)
50: [01:58:48] <Nightjar> shlinx, being that blog is a module for SilverStripe, you'll also need silverstripe/silverstripe-framework in the least
51: [01:59:07] <Nightjar> and with blog, cms also.
52: [01:59:39] <shlinx> They will be all installed after "composer update", as they are dependencies for blog module
53: [01:59:58] <Nightjar> no, I don't think they will.
54: [02:00:09] <Nightjar> let me try.
55: [02:01:12] <shlinx> I tried it, it installed all dependencies, as it's in composer.json of blog repo
56: [02:02:01] <Nightjar> Yeah, but I don't think you've allowed for the special case that composer has for SilverStripe. I'm checking now to see if it works, sec.
57: [02:02:49] <shlinx> Thanks Nightjar. Just wonderring what is the standard way to test stand alone silverstripe module. I didn't find any documents for that.
58: [02:03:09] <Nightjar> well, the easiest is to not use composer.
59: [02:03:46] <shlinx> Then what are the steps?
60: [02:04:19] <Nightjar> the best is to have a base project: composer create-project silverstripe/installer $FOLDER
61: [02:04:33] <Nightjar> which will install all the dependencies for blog
62: [02:04:52] <Nightjar> then: cd $FOLDER && composer require silverstripe/blog
63: [02:05:01] <Nightjar> then run your tests :)
64: [02:05:28] <Nightjar> yeah, what you've done has made a right mess of the module :S
65: [02:05:32] <Nightjar> just confirmed
66: [02:06:09] <Nightjar> SilverStripe is older than composer, and has a different project structure than most newer projects (that plonk themselves in vendor/)
67: [02:06:27] <Nightjar> the correct structure is to have modules as _sibiling_ folders
68: [02:06:38] <shlinx> But say when I'm developping blog module, I need to setup ci config for testing each new merge request for blog module, so I can't just do composer require silverstripe/blog
69: [02:06:47] <Nightjar> so ls will give you eg. framework/ blog/ cms/
70: [02:07:32] <shlinx> blog module is an example, I'm developping another module, so I think when test it, I can't just composer require it
71: [02:07:33] <Nightjar> I'm not familiar with setting up CI sorry, but you can always create a recipe
72: [02:08:42] <Nightjar> and you run tests through the framework, so you're going to need that at least.
73: [02:09:48] <Nightjar> OR
74: [02:09:50] <shlinx> Yes, I understand that. Just don't know how to test a module when it's under developping but not published
75: [02:10:04] <Nightjar> you need to set up composer accordingly.
76: [02:10:58] <Nightjar> the other thing is to eg. Just composer require your/module - _without_ a git clone and a cd first.
77: [02:11:18] <Nightjar> It pulls the module, and all the dependencies and sets them up correctly.
78: [02:11:26] <Nightjar> but you'll need to be in your project dir first.
79: [02:11:53] <Nightjar> mkdir testproject && cd testproject && composer require silverstripe/blog
80: [02:12:07] <Nightjar> $ ls
81: [02:12:07] <Nightjar> blog/ cms/ composer.json composer.lock framework/ lumberjack/ reports/ siteconfig/ tagfield/ vendor/
82: [02:12:42] <shlinx> can composer require a specific commit or a banch from a merge request?
83: [02:12:52] <Nightjar> of course
84: [02:13:11] <shlinx> Well, I need to try that
85: [02:13:19] <Nightjar> sounds like you need to spend some time at https://getcomposer.org/doc/ ;)
86: [02:13:36] <shlinx> Thanks a lot for pointing me a way. :)
87: [02:13:39] <Nightjar> Because admittedly I'm a bit behind the times myself, and can only be of limited help to you
88: [02:14:05] <Nightjar> I've not used CI before (sadly) and am not super experienced when using composer even.
89: [02:15:18] <shlinx> That's all good. I'll have a try and get back the result. Obviously, there isn't many people doing gitlab ci for silverstripe module
90: [02:15:36] <Nightjar> but dev-master is probably the version flag you're after, if you're actively developing.
91: [02:16:01] <Nightjar> well there could be. Just that I certainly haven't done it.
92: [02:24:35] <shlinx> Seeing Blog module is using this recipe for ci:
93: [02:24:37] <shlinx> before_script: - phpenv rehash - composer self-update || true - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require "silverstripe/comments" --require "silverstripe/widgets" - cd ~/builds/ss
94: [02:24:55] <shlinx> https://github.com/silverstripe/silverstripe-blog/blob/master/.travis.yml
95: [02:25:19] <Nightjar> Yeh, but like, that's traivs, not GitlabCI :P
96: [02:25:30] <Nightjar> might be similar, idk. Good luck! :)
97: [02:25:42] <shlinx> I feel the idea should be similar
98: [02:26:17] <Nightjar> seems like travis does it's own sorta 'composer' type prerequsite filling
99: [02:26:19] <shlinx> yeah, it's using a script from silverstripe ... https://github.com/silverstripe/silverstripe-travis-support/blob/master/travis_setup.php
100: [02:27:53] <shlinx> And it's kind of copying the current version of code to a ss project folder, instead of composer require a branch. See this: php ~/travis-support/travis_setup.php --source `pwd` ...
101: [02:29:05] <shlinx> Oh, I need a script like this one. Seems not a very easy job
102: [02:41:16] <Nightjar> shlinx, yeah, I imagine most CI products are rather against running arbitrary shell commands. But who knows!
103: [02:49:41] * bubaphex has joined #silverstripe
104: [02:49:51] * micmania1 has joined #silverstripe
105: [02:51:25] * helenclark0 quit (Ping timeout: 268 seconds)
106: [03:01:21] * bubaphex quit (Quit: bubaphex)
107: [03:48:02] * micmania1 quit (Quit: micmania1)
108: [03:51:06] * DanaeNZ quit (Remote host closed the connection)
109: [03:51:44] * DanaeNZ has joined #silverstripe
110: [03:53:55] * bubaphex has joined #silverstripe
111: [03:55:48] * DanaeNZ quit (Ping timeout: 246 seconds)
112: [03:57:12] * micmania1 has joined #silverstripe
113: [03:57:53] * helenclarko has joined #silverstripe
114: [04:05:48] * bubaphex quit (Quit: bubaphex)
115: [04:06:44] * DanaeNZ has joined #silverstripe
116: [04:15:32] * bubaphex has joined #silverstripe
117: [04:16:58] * bubaphex quit (Client Quit)
118: [04:19:27] * micmania1 quit (Quit: micmania1)
119: [04:23:55] * DanaeNZ quit (Remote host closed the connection)
120: [04:24:29] * DanaeNZ has joined #silverstripe
121: [04:28:38] * DanaeNZ quit (Ping timeout: 250 seconds)
122: [04:33:36] * DanaeNZ has joined #silverstripe
123: [05:06:13] * Stomach quit (Ping timeout: 248 seconds)
124: [05:09:38] * DanaeNZ quit (Quit: TIME TO FEED)
125: [05:24:13] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
126: [05:51:11] * spronk quit (Quit: I may need a longer sleep timer...)
127: [05:52:57] * Stomach has joined #silverstripe
128: [05:57:07] * Stomach quit (Read error: Connection reset by peer)
129: [06:06:48] * Stomach has joined #silverstripe
130: [06:12:18] * Stomach quit (Ping timeout: 246 seconds)
131: [06:14:15] * Stomach has joined #silverstripe
132: [06:16:24] * Snowman23 quit (Ping timeout: 244 seconds)
133: [06:17:52] * Snowman23 has joined #silverstripe
134: [06:21:59] * Stomach quit (Ping timeout: 265 seconds)
135: [06:26:01] * helenclarko quit (Ping timeout: 268 seconds)
136: [06:37:32] * micmania1 has joined #silverstripe
137: [06:41:55] * Shrike_Finland has joined #silverstripe
138: [06:42:26] * Shrike_Finland1 has joined #silverstripe
139: [06:42:26] * Shrike_Finland quit (Read error: Connection reset by peer)
140: [06:43:48] * micmania1 quit (Ping timeout: 245 seconds)
141: [06:44:26] * micmania1 has joined #silverstripe
142: [06:53:19] * micmania1 quit (Quit: micmania1)
143: [07:01:31] * Isaac_ quit (Ping timeout: 260 seconds)
144: [07:01:54] * eightythree has joined #silverstripe
145: [07:12:51] * wmk has joined #silverstripe
146: [07:19:07] * Mike123 has joined #silverstripe
147: [07:19:14] <Mike123> Hey
148: [07:19:33] <Mike123> Anyone can suggest some module for viewing DO's version with reverting possibility ?
149: [07:20:53] <Mike123> tried this module https://github.com/bluehousegroup/silverstripe-data-object-version-viewer, but it is without revert to specific version possibility and really hard to implement one...
150: [07:41:53] <Shrike_Finland1> Morning
151: [07:42:05] <wmk> Shrike_Finland1, yup (ugt)
152: [07:42:55] <Shrike_Finland1> Any ideas, how could I pass value for collapse menu with bootstrap to specify the parent item of item in menu? Example code here: http://www.sspaste.com/paste/show/5847bd1db95bb
153: [07:43:57] <Shrike_Finland1> Problem comes with multilevel child items in this kind of a code: it's not making elements unique with parent id.
154: [07:47:51] <Shrike_Finland1> I need to give an ID of parent menu item for collapse div and target link of next/previous level item.
155: [08:24:31] * lerni has joined #silverstripe
156: [08:45:19] <ss-helper> Silverstripe display logic for Front-end/Bootstrap forms - http://stackoverflow.com/questions/41012851/silverstripe-display-logic-for-front-end-bootstrap-forms
157: [09:03:49] * kinglozzer has joined #silverstripe
158: [09:23:48] * trash__ has joined #silverstripe
159: [09:30:20] <ss-helper> Map view leaflet on SilverStripe - http://stackoverflow.com/questions/41013745/map-view-leaflet-on-silverstripe
160: [09:47:11] * trash__ quit (Ping timeout: 260 seconds)
161: [09:59:20] * DimiStripe quit (Quit: DimiStripe)
162: [10:15:21] <ss-helper> has_many and has_one relation SilverStripe - http://stackoverflow.com/questions/41014517/has-many-and-has-one-relation-silverstripe
163: [10:39:42] * DimiStripe has joined #silverstripe
164: [10:45:22] <ss-helper> how to render normal for-each loop in template : silver stripe - http://stackoverflow.com/questions/41015173/how-to-render-normal-for-each-loop-in-template-silver-stripe
165: [10:50:41] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
166: [11:03:19] * Shrike_Finland1 quit (Quit: Leaving.)
167: [11:42:25] * Shrike_Finland has joined #silverstripe
168: [12:03:39] * wmk quit (Quit: Leaving)
169: [12:17:45] * Kapdap quit (Quit: Lost terminal)
170: [12:20:19] * Shrike_Finland quit (Quit: Leaving.)
171: [12:22:24] * samsam has joined #silverstripe
172: [12:23:34] * Shrike_Finland has joined #silverstripe
173: [12:32:32] * Kapdap has joined #silverstripe
174: [12:56:11] * eightythree quit (Ping timeout: 260 seconds)
175: [13:22:51] * UndefinedOffset has joined #silverstripe
176: [13:39:43] * Shrike_Finland quit (Quit: Leaving.)
177: [13:45:49] * Shrike_Finland has joined #silverstripe
178: [14:18:39] * Shrike_Finland quit (Quit: Leaving.)
179: [14:52:53] <slievr> is there anyway to asynchronously load js using requirements?
180: [14:59:41] * janneklouman-- has joined #silverstripe
181: [15:15:24] * muskie9 has joined #silverstripe
182: [15:24:13] <samsam> hey guys, for some reason $allowed_children = array(‘somePage’); works fine, only somePage is allowed as children and all other options are disabled. BUT one other page is still selectable in the create-page menu
183: [15:24:46] <samsam> I carefully checked the parent page and it clearly says private static $allowed_children = array(‘somePage’); and nothing else
184: [15:45:28] <ss-helper> SilverStripe sort page list by custom order - http://stackoverflow.com/questions/41021497/silverstripe-sort-page-list-by-custom-order
185: [15:45:56] <kinglozzer> samsam: Is the other page a child class of somePage?
186: [15:46:21] <kinglozzer> If so, use *somePage
187: [15:46:22] <samsam> kinglozzer: good question, no it is not
188: [15:46:40] <kinglozzer> samsam: In that case, try visiting admin/pages/add, then add a ?flush=1
189: [15:46:42] <samsam> you mean like, if the page class extends it?
190: [15:46:47] <kinglozzer> Yeah
191: [15:46:52] <kinglozzer> Like MyOtherPage extends SomePage
192: [15:47:07] <samsam> it does not indeed, I tried flushing but Im going to do it exactly that way
193: [15:47:22] <kinglozzer> In the past that was an issue (you had to flush directly on the add screen)
194: [15:47:30] <kinglozzer> I think it was fixed... *think* :P
195: [15:48:22] <samsam> nope the other page is still there :/ when I click it and click “add”
196: [15:48:31] <samsam> I get an internal server error with this message:
197: [15:48:53] <samsam> Call to a member function forTemplate() on null
198: [15:50:59] <samsam> ooooh i think I found it.. I have a custom “canCreate”
199: [15:51:25] <kinglozzer> Ah, you probably have to call parent::canCreate() or something
200: [15:52:03] <samsam> Yup that was it.. just had to remove a redundant else statement returning true
201: [15:52:11] <samsam> I beat you to it again mate, kingsamsam
202: [15:52:23] <kinglozzer> ;D
203: [15:54:37] <samsam> if you know the answer to this one please share!
204: [15:54:37] <samsam> http://stackoverflow.com/questions/41021497/silverstripe-sort-page-list-by-custom-order
205: [16:03:56] <kinglozzer> samsam: There's no easy way to do it
206: [16:04:14] <kinglozzer> There's an extension hook in CMSPageAddController::AddForm() called updatePageOptions
207: [16:04:33] <kinglozzer> You could add an extension that hooks into that, grab the OptionSetField and manipulate the source array
208: [16:05:00] <samsam> aah that is a bit too complicated for now
209: [16:07:02] * helenclarko has joined #silverstripe
210: [16:11:01] * Mike123 quit (Ping timeout: 260 seconds)
211: [16:33:46] * shlinx quit (Ping timeout: 260 seconds)
212: [17:08:11] * kinglozzer quit ()
213: [17:08:26] * janneklouman-- quit (Ping timeout: 244 seconds)
214: [17:52:08] * Azure|dc quit (Ping timeout: 245 seconds)
215: [17:52:29] * Azure has joined #silverstripe
216: [18:07:19] * cheatus has joined #silverstripe
217: [18:56:07] * Stomach has joined #silverstripe
218: [19:01:59] * muskie9 quit (Ping timeout: 256 seconds)
219: [19:06:56] * samsam quit (Quit: samsam)
220: [19:18:34] * muskie9 has joined #silverstripe
221: [19:22:58] * bubaphex has joined #silverstripe
222: [19:23:53] * janneklouman-- has joined #silverstripe
223: [19:30:31] <ss-helper> SilverStripe: how to render normal for-each loop in template - http://stackoverflow.com/questions/41015173/silverstripe-how-to-render-normal-for-each-loop-in-template
224: [19:30:32] * muskie9 quit (Read error: Connection reset by peer)
225: [19:37:10] * helenclark0 has joined #silverstripe
226: [19:39:40] * helenclarko quit (Ping timeout: 268 seconds)
227: [19:41:26] * muskie9 has joined #silverstripe
228: [19:45:37] * muskie9 quit (Read error: Connection reset by peer)
229: [19:53:17] * samsam has joined #silverstripe
230: [20:02:27] * adrexia has joined #silverstripe
231: [20:03:43] * bubaphex quit (Quit: bubaphex)
232: [20:04:32] * bubaphex has joined #silverstripe
233: [20:07:25] * Hailwood has joined #silverstripe
234: [20:10:05] * bubaphex quit (Quit: bubaphex)
235: [20:11:19] * bubaphex has joined #silverstripe
236: [20:24:46] * cheatus quit (Ping timeout: 260 seconds)
237: [20:31:35] * Hailwood quit (Quit: Konversation terminated!)
238: [20:37:51] * DanaeNZ has joined #silverstripe
239: [20:40:19] * micmania1 has joined #silverstripe
240: [20:43:33] * muskie9 has joined #silverstripe
241: [20:45:45] <samsam> resizing images on upload.. Anyone done it? Know a good mod?
242: [20:47:31] * helenclark0 quit (Read error: Connection reset by peer)
243: [20:47:40] <muskie9> samsam to lower the file size?
244: [20:47:47] <samsam> yup!
245: [20:47:58] <muskie9> try this: https://github.com/heyday/silverstripe-optimisedimage
246: [20:48:21] <samsam> muskie9: this looks interesting! :) going to check it out
247: [20:48:26] <samsam> have you used it before?
248: [20:48:55] <muskie9> we use it on pretty much all our sites, as our clients input the content, so we don't need the cms crashing from 5mb files being resampled
249: [20:49:33] * Firesphere quit (Changing host)
250: [20:49:34] * Firesphere has joined #silverstripe
251: [20:50:08] <cloph> why on upload as opposed to when it is requested/used in a specific size?
252: [20:50:32] * bubaphex quit (Quit: bubaphex)
253: [20:51:21] <muskie9> cloph we've had server errors occur in certain situations when doing it that way...
254: [20:51:47] <muskie9> timeout/memory usage being the main culprit
255: [20:52:06] <samsam> yup, preventing huge files to enter the assets is better
256: [20:52:39] * bubaphex has joined #silverstripe
257: [20:52:46] <samsam> I wouldn’t be happy with a client uploading 100 x 10mb photos fresh from their camera memory
258: [20:53:01] <samsam> even though it won’t slow down front-end by using CroppedImage()
259: [20:53:57] <muskie9> ya, we notice the issues more in the cms interface w/the large images...
260: [21:00:03] * micmania1 quit (Quit: micmania1)
261: [21:00:50] * micmania1 has joined #silverstripe
262: [21:01:22] <samsam> muskie9: mod works flawlessly, except for adjusting the max resolution. Have you also done that? max_x and max_y ?
263: [21:01:28] * Hailwood has joined #silverstripe
264: [21:02:40] * gelignite has joined #silverstripe
265: [21:02:53] * bubaphex quit (Quit: bubaphex)
266: [21:03:39] <samsam> ah it works now, thanks a lot for the recommendation
267: [21:03:57] <muskie9> cool, ya, always seems to work when we do it
268: [21:11:41] * bubaphex has joined #silverstripe
269: [21:11:49] * micmania1 quit (Quit: micmania1)
270: [21:14:50] * UncleCheese has joined #silverstripe
271: [21:19:49] * janneklouman-- quit (Ping timeout: 260 seconds)
272: [21:22:34] * janneklouman-- has joined #silverstripe
273: [21:22:42] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
274: [21:47:34] * UndefinedOffset quit (Quit: Leaving.)
275: [21:49:28] * UncleCheese has joined #silverstripe
276: [21:56:18] * bubaphex quit (Quit: bubaphex)
277: [21:57:43] * janneklouman-- quit (Ping timeout: 260 seconds)
278: [22:08:03] * micmania1 has joined #silverstripe
279: [22:09:36] * bubaphex has joined #silverstripe
280: [22:18:14] * micmania1 quit (Quit: micmania1)
281: [22:39:29] * bubaphex quit (Quit: bubaphex)
282: [22:44:58] * trash__ has joined #silverstripe
283: [22:45:01] * Stomach quit (Quit: zzz)
284: [22:46:04] * Stomach has joined #silverstripe
285: [22:50:39] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
286: [23:00:01] * ss-helper quit (Remote host closed the connection)
287: [23:00:14] * ss-helper has joined #silverstripe
288: [23:00:53] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
289: [23:04:21] * muskie9 quit (Ping timeout: 260 seconds)
290: [23:08:35] * UncleCheese has joined #silverstripe
291: [23:10:51] * micmania1 has joined #silverstripe
292: [23:23:29] * samsam quit (Quit: samsam)
293: [23:24:08] * samsam has joined #silverstripe
294: [23:36:59] * Stomach quit (Quit: zzz)
295: [23:57:53] * Stomach has joined #silverstripe

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