Files
2012-02-21 01:15:00 -05:00

1 line
4.9 KiB
JSON

[{"user_id": 37659, "stars": [], "topic_id": 43353, "date_created": 1312560910.2083061, "message": "Correction on first post \"at least it did work once and now it's NOT working\"", "group_id": 236, "id": 1803070}, {"user_id": 37659, "stars": [], "topic_id": 43353, "date_created": 1312560736.3826311, "message": "Still ramping up on Kynetx here. For some reason a basic dataset call to a local JSON data source is not working (at least it did work once and now it's now working)", "group_id": 236, "id": 1803056}, {"user_id": 37659, "stars": [], "topic_id": 43353, "date_created": 1312560869.8400929, "message": "global {\n datasource myData <- \"http://local.app.com/admin/data\";\n}\n\nrule test_receive {\n\tselect when web pageview \".*\" setting ()\n\tpre {\n\t status = myData.pick('$.test');\n\t}\n notify(\"Data Incoming\", status);\n}", "group_id": 236, "id": 1803064}, {"user_id": 37659, "stars": [], "topic_id": 43353, "date_created": 1312561704.5112879, "message": "global {\n dataset myData <- \"http://frag.kobj.net/clients/cs_test/aaa.json\";\n}\nrule test_receive {\n\tselect when web pageview \".*\"\n\tnotify(\"Data Incoming\", myData.pick('$[\"www.barnesandnoble.com\"][0].link'));\n}", "group_id": 236, "id": 1803152}, {"user_id": 30559, "stars": [], "topic_id": 43353, "date_created": 1312562970.304476, "message": "I have posted a working of what you are trying to accomplish http://pastie.org/2326076. The problem with the code is that you are trying to pick in an action. Which a pick can only be done in a prelude. For more on prelude, actions and postlude. Please, see the following links http://docs.kynetx.com/docs/Prelude , http://docs.kynetx.com/docs/Actions , http://docs.kynetx.com/docs/Postlude .", "group_id": 236, "id": 1803280}, {"user_id": 37659, "stars": [], "topic_id": 43353, "date_created": 1312561714.530463, "message": "(that one doesn't work either)", "group_id": 236, "id": 1803156}, {"user_id": 37659, "stars": [], "topic_id": 43353, "date_created": 1312567126.044343, "message": "thanks for the informative reply and for the tip re: using pick() (didn't see that in the documentation). Couple questions: 1. are the data requests made on the server or on the client side? (if server-side, it would explain why the local.app.com doesn't work), 2. what is the correct JSONPath syntax to query explicitly as I was attempting (i.e. without using the .. operator)?", "group_id": 236, "id": 1803878}, {"user_id": 30559, "stars": [], "topic_id": 43353, "date_created": 1312583548.649359, "message": "The prelude documentation says that the prelude allows variables to be declared and manipulated from data sources and entity variables. When you get a datasource it is in the prelude which runs server side. Also you can read the following documentation for jsonpath http://docs.kynetx.com/docs/KRL_and_JSONPath", "group_id": 236, "id": 1806070}, {"user_id": 37659, "stars": [], "topic_id": 43353, "date_created": 1312810758.7299869, "message": "Server-side.. darn. Looks like I have to push every API change to a live server just to test the data interactions. Makes for an inefficient development work flow. Any tips on how to get around this?", "group_id": 236, "id": 1821200}, {"user_id": 37659, "stars": [], "topic_id": 43353, "date_created": 1312814449.173393, "message": ".. also explains why my initial testing did not work -- i.e. one URL was on my local machine and the other was on a test server without DNS", "group_id": 236, "id": 1821614}, {"user_id": 37659, "stars": [], "topic_id": 43353, "date_created": 1312814450.565805, "message": ".. also explains why my initial testing did not work -- i.e. one URL was on my local machine and the other was on a test server without DNS", "group_id": 236, "id": 1821615}, {"user_id": 30462, "stars": [], "topic_id": 43353, "date_created": 1312816170.2744131, "message": "Just watch out for the cache: To avoid server overload, a minimum caching period (currently 20 minutes) is imposed on all remote data sources. Specifying caching periods shorter than the minimum will have no effect. http://docs.kynetx.com/docs/Global#Datasets", "group_id": 236, "id": 1821834}, {"user_id": 30462, "stars": [], "topic_id": 43353, "date_created": 1312815914.2077849, "message": "Try localtunnel: https://github.com/progrium/localtunnel", "group_id": 236, "id": 1821795}, {"user_id": 30462, "stars": [], "topic_id": 43353, "date_created": 1312816034.741895, "message": "Also you might upload a test JSON file to S3 or cl1p.net and use that for your dataset while you work on the KRL. Once things are working you switch the dataset back to your server.", "group_id": 236, "id": 1821813}, {"user_id": 763, "stars": [], "topic_id": 43353, "date_created": 1315434004.2742469, "message": "The docs do lie here slightly. You can set the cache time less then 20 minutes, and the system will respect it. Just don't go hog wild where you don't need to!", "group_id": 236, "id": 2070626}]