Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 47 Next »

[08:15:35 CDT(-0500)] <kasper> colinclark: is there a fluid.get equivalent that allows escaped ELPaths?

[08:15:40 CDT(-0500)] <colinclark> yes

[08:15:45 CDT(-0500)] <colinclark> fluid.get, I believe (smile)

[08:15:57 CDT(-0500)] <kasper> haha, damn you

[08:16:00 CDT(-0500)] <colinclark> If I remember correctly, you have to set up some configuration to do this at the moment

[08:16:05 CDT(-0500)] <colinclark> It's not obvious

[08:16:14 CDT(-0500)] <colinclark> What are you trying to do, in particular?

[08:16:15 CDT(-0500)] <kasper> colinclark: ahh, I see, that's probably why it went wrong for me

[08:16:41 CDT(-0500)] <colinclark> The Matchmakers do it… I'll have to take a look at the code

[08:17:05 CDT(-0500)] <kasper> colinclark: was looking at the XML settings handler yesterday night, wanted to document it a bit more (what it's able to do and not)

[08:17:13 CDT(-0500)] <colinclark> ah, right

[08:17:33 CDT(-0500)] <kasper> cool, I'll look at the matchmaker code then - thanks

[08:20:30 CDT(-0500)] <colinclark> kasper: fluid.get() takes a third argument

[08:20:31 CDT(-0500)] <colinclark> config

[08:21:36 CDT(-0500)] <kasper> yeah - I found the place where matchmaker uses it

[08:21:51 CDT(-0500)] <kasper> config used is set up here: https://github.com/GPII/universal/blob/master/gpii/node_modules/matchMaker/src/MatchMakerUtilities.js#L88-103

[08:22:17 CDT(-0500)] <colinclark> Cool

[08:22:20 CDT(-0500)] <kasper> colinclark: will try it out, and then come back to you whining when I cant get it to work (smile)

[08:22:21 CDT(-0500)] <colinclark> way faster than me (smile)

[08:22:43 CDT(-0500)] <colinclark> The key thing is fluid.pathUtil.parseEL, which is the escaping-aware EL parser

[09:07:01 CDT(-0500)] <kasper> colinclark, yura: got some more questions about EL parsing

[09:07:06 CDT(-0500)] <colinclark> sure

[09:07:10 CDT(-0500)] <kasper> (morning yura, btw)

[09:07:48 CDT(-0500)] <kasper> so basically, what I'm trying to do is to figure out how to reference various values in a JSON object

[09:07:49 CDT(-0500)] <kasper> http://wiki.gpii.net/index.php/XML_Settings_Handler#Examples_2

[09:07:58 CDT(-0500)] <kasper> problem arises when I hit arrays

[09:08:51 CDT(-0500)] <kasper> so for example, in the linked wiki page, if I want to reference the array entry in settings that has the "name" "gameResources"

[09:08:58 CDT(-0500)] <yura> kasper: hi

[09:09:28 CDT(-0500)] <kasper> and get the value of the serializeAs value of the object of that array entry

[09:09:38 CDT(-0500)] <kasper> ok.. perhaps a bit nonsensical

[09:10:26 CDT(-0500)] <kasper> I guess a few questions; is there a way to include wild-card when getting values?

[09:12:12 CDT(-0500)] <kasper> or easier for me, and terribly optimistic question, is there a way to select (get) based on: "get the array entry for which the following holds true"

[09:13:50 CDT(-0500)] <yura> i know there used to be in the older versions of infusion but i think Antranig removed/updated that functionality right now

[09:13:54 CDT(-0500)] <yura> in the latest one

[09:14:59 CDT(-0500)] <kasper> yura: cool - do you remember what function/have a suggestion where to look for it

[09:17:11 CDT(-0500)] <yura> kasper: this is how it was done in cspace with earlier version https://github.com/collectionspace/ui/blob/master/src/main/webapp/defaults/js/TitleBar.js#L75

[09:17:21 CDT(-0500)] <kasper> cool,thanks yura

[09:17:30 CDT(-0500)] <yura> basically i was getting a value based on whether something was true or false in the array

[09:17:56 CDT(-0500)] <colinclark> kasper: If you end up having to roll your own support, fluid.pathUtil.matchPath might be able to help

[09:18:48 CDT(-0500)] <kasper> colinclark: cool, thanks!

[09:19:18 CDT(-0500)] <colinclark> kasper: Ultimately, this is probably an example of the ambiguity of mapping from XML to JSON

[09:19:42 CDT(-0500)] <colinclark> since I can imagine it's a much more idiomatic translation to do something like this:

[09:20:08 CDT(-0500)]

<colinclark> settings:

Unknown macro: { "GameResources"}

[09:20:36 CDT(-0500)] <colinclark> I have some vague memory of me sitting in my backyard chatting with you about this a few months ago

[09:21:04 CDT(-0500)] <colinclark> in terms of a future XMLSettingsHandler that allows users to define a transformation map to accompany this XML<->JSON translation process

[09:21:40 CDT(-0500)] <kasper> yes, me too!

[09:22:08 CDT(-0500)] <colinclark> I think that would ultimately be the most convenient

[09:22:18 CDT(-0500)] <kasper> perhaps we should talk about that as well in our call after FP7

[09:22:21 CDT(-0500)] <colinclark> sure

[09:23:25 CDT(-0500)] <colinclark> Interestingly, if I remember correctly, model transformation paths do support wild cards

[09:23:32 CDT(-0500)] <colinclark> so it might be something you could implement quite easily

[09:24:25 CDT(-0500)] <kasper> yeah, I do remember seeing wild-cards in ELPaths in the context of fluids, but couldn't remember where

[09:24:32 CDT(-0500)] <kasper> model transformations is probably it

[09:49:50 CDT(-0500)] <michelled> hi alexn

[09:49:55 CDT(-0500)] <alexn> hi michelled

[09:51:16 CDT(-0500)] <michelled> at some point we consolidated the drop down arrow as per Joanna's designs

[09:51:26 CDT(-0500)] <michelled> I can't remember where the new one is or what it's called

[09:51:43 CDT(-0500)] <michelled> could you take a peek please and comment on this ticket? https://www.assembla.com/spaces/iskme/tickets/871

[09:51:59 CDT(-0500)] <michelled> alexn: this is for OER Commons btw (smile)

[09:52:56 CDT(-0500)] <alexn> michelled: ok I will take a look. Also I'm almost done with the list of issues I was filing into JIRA. I'm going through the list for the second time to make it more readable, add more screenshots before sending you an email. Should be done very soon.

[09:53:14 CDT(-0500)] <michelled> thx alexn

[10:31:15 CDT(-0500)] <jessm> i hate to utter these words, but the wiki seems super slow to me

[11:06:20 CDT(-0500)] <jessm> count yourselves lucky that the social pressure in the office keeps you from eating too much halloween candy.

  • No labels