Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2018-11-23 09:24:45 GMT <alfresco-discord> <IanW> I don't use it in share but open street map can be a good alternative - it does rather depend on where your locations are, I tend to deal with less common places when OSM can be better than google or bing

2018-11-23 10:00:25 GMT <AFaust> Grml... I have been using a specific utility DictionaryService API method for years and only now found a serious issue with it due to a bug in an update to customer system last month...

2018-11-23 10:01:47 GMT <AFaust> Someone forgot a single line of code to copy aspect-attached default aspects for an anonymous type derived from a type QName and a list of aspect QName

2018-11-23 10:13:37 GMT <yreg> AFaust, I know you're learning Japanese, but what you just said sounds more like Chinese to me :D

2018-11-23 10:18:31 GMT <alfresco-discord> <MorganP> You are not alone in this world yreg!

2018-11-23 10:19:10 GMT <alfresco-discord> <MorganP> Me neither 😄

2018-11-23 10:20:03 GMT <angelborroy> I was also trying to understand the real meaning of the sentence…

2018-11-23 10:20:05 GMT <alfresco-discord> <MorganP> I mean me neither I didn't understand, not me neither that sounds more like Chinese because that wouldn't mean anything neither... Wow too much neither

2018-11-23 10:20:10 GMT <angelborroy> … and starting to feel some depressed

2018-11-23 10:20:15 GMT <angelborroy> But now I’m better

2018-11-23 10:20:18 GMT <angelborroy> Thanks, guys!

2018-11-23 10:21:30 GMT <AFaust> So, you guys are saying I could have written the following and you would have understood just as much?

2018-11-23 10:21:31 GMT <AFaust> 誰かが、タイプQNameのタイプとアスペクトQNameのリストから派生した匿名タイプのアスペクトに添付されたデフォルトアスペクトをコピーするコードを1行忘れていましたか?

2018-11-23 10:21:46 GMT <yreg> More or less yes :D

2018-11-23 10:22:10 GMT <angelborroy> eh!

2018-11-23 10:22:13 GMT <angelborroy> That is Japanese!

2018-11-23 10:22:17 GMT <angelborroy> Not chinese

2018-11-23 10:22:57 GMT <AFaust> So, my issue is with this constructor: https://github.com/Alfresco/alfresco-data-model/blob/c7aaa53cce8245889ef79daffac46b53f827ee0e/src/main/java/org/alfresco/repo/dictionary/M2AnonymousTypeDefinition.java#L77

2018-11-23 10:22:58 GMT <alfbot> Title:alfresco-data-model/M2AnonymousTypeDefinition.java at c7aaa53cce8245889ef79daffac46b53f827ee0e · Alfresco/alfresco-data-model · GitHub (at github.com)

2018-11-23 10:24:29 GMT <AFaust> It does not copy the default aspects of the aspects that are "merged" into the anonymous type, so the "merge" is incomplete...

2018-11-23 10:26:01 GMT <yreg> Hmm didn't know aspects had default aspects

2018-11-23 10:26:26 GMT <AFaust> Yeah - they can. This is something that aspects/types derive from the base "class" concept

2018-11-23 10:27:33 GMT <AFaust> And in this particular customer project I / we use it to group a set / list of various aspects together into one aspect so we can apply it in one operation (and also can just change the list in a central place - the model - without having to change all pieces of code where the aspect(s) may need to be applied)

2018-11-23 10:28:30 GMT <AFaust> So in one piece of code I need to get a list of all properties for a base type and all aspects that could be applied to it. So I create an anonymous type using the base type and list of aspects (which contains 2-3 of such "collection" aspects with default aspects of their own)

2018-11-23 10:28:59 GMT <AFaust> Since the default aspects are not merged into the anonymous type, my code which processes the default aspects then fails to find the properties

2018-11-23 10:29:50 GMT <yreg> Now I have a better understanding

2018-11-23 10:30:43 GMT <yreg> indeed

2018-11-23 10:31:11 GMT <yreg> I see that they are supported in the XSD schema hence your point is totally right :)

2018-11-23 10:36:05 GMT <AFaust> Well.. that Google translate has tought me yet another "counter word" in Japanese... so I can now count lines of code / text

2018-11-23 10:36:09 GMT <yreg> So either it should first recursively parse aspects to come up with the complete aspects list before fetching all the rest

2018-11-23 10:38:35 GMT <AFaust> For anyone interested to know: In Japanese you have to know what "concept" you are counting (e.g. "round objects", "tall objects", "flat objects") to find the "counter word" - and then depending on the counter word, the pronounciation of numbers can change completely

2018-11-23 10:39:22 GMT <AFaust> https://en.wikipedia.org/wiki/Japanese_counter_word

2018-11-23 10:39:23 GMT <alfbot> Title:Japanese counter word - Wikipedia (at en.wikipedia.org)

2018-11-23 10:39:29 GMT <AFaust> So no simple 1, 2, 3 there...

End of Daily Log

The other logs are at http://esplins.org/hash_alfresco