<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1797: [super] Webstore v2 - Integrated and based on ElasticSearch</title>
    <link>http://localhost/ticket/1797</link>
    <description>&lt;p&gt;
Main tasks:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Integrated seamlessly into CKAN (authorization etc)
&lt;/li&gt;&lt;li&gt;Based off &lt;a class="missing wiki"&gt;ElasticSearch?&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Etherpad: &lt;a class="ext-link" href="http://ckan.okfnpad.org/webstore"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://ckan.okfnpad.org/webstore&lt;/a&gt;
&lt;/p&gt;
&lt;h1 id="Tasks"&gt;Tasks&lt;/h1&gt;
&lt;ul&gt;&lt;li&gt;&lt;del&gt;New API point (config + controller) [0.75d]&lt;/del&gt;
&lt;ul&gt;&lt;li&gt;/api/data/{resource-id}
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;del&gt;Authorization [0.5d]&lt;/del&gt;
&lt;/li&gt;&lt;li&gt;&lt;del&gt;Documentation [0.25d]&lt;/del&gt;
&lt;/li&gt;&lt;li&gt;Upgrade data viewer to use ES [0.5d]
&lt;/li&gt;&lt;li&gt;Convert webstorer to new setup - &lt;a class="ext-link" href="http://github.com/okfn/ckanext-webstorer"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://github.com/okfn/ckanext-webstorer&lt;/a&gt; [1d]
&lt;ul&gt;&lt;li&gt;See below
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;"Create Webstore Resource" in Resource creation (??)
&lt;/li&gt;&lt;li&gt;Deploy [0.5d]
&lt;/li&gt;&lt;/ul&gt;&lt;h1 id="Details"&gt;Details&lt;/h1&gt;
&lt;h2 id="LayoutonES"&gt;Layout on ES&lt;/h2&gt;
&lt;pre class="wiki"&gt;elasticsearch/{index}/{type-id}
index = ckan-{ckan-id}
type-id = resource-id (1)
&lt;/pre&gt;&lt;h2 id="Requestpath"&gt;Request path&lt;/h2&gt;
&lt;p&gt;
Req =&amp;gt; Nginx =&amp;gt; CKAN App (authz) =&amp;gt; req to elasticsearch and returns results
&lt;/p&gt;
&lt;p&gt;
See as an example: &lt;a class="ext-link" href="https://github.com/okfn/elastic-proxy"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/elastic-proxy&lt;/a&gt;
&lt;/p&gt;
&lt;h2 id="Questions"&gt;Questions&lt;/h2&gt;
&lt;ol&gt;&lt;li&gt;How do we decide what to use in the viewer e.g. Webstore data versus &lt;a class="missing wiki"&gt;DataProxy?&lt;/a&gt;
&lt;ul&gt;&lt;li&gt;Check for existence of webstore_url on Resource (should really be webstore_enabled boolean or similar, however we stick with url for the time being because it exists and we avoid migration). If exists use Webstore o/w don't.
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;How do we decide when webstore is activated
&lt;ul&gt;&lt;li&gt;Ans: see previous.
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Do we (and how do we) allow for resources which are just for webstores
&lt;ul&gt;&lt;li&gt;Ans: we have to set webstore_url = True ... on save. Or add a big button saying: "Create Blank Resource" ...
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;How does webstorer work ...
&lt;ul&gt;&lt;li&gt;CSV import - NS: make sure we add e.g. rownum or &lt;span class="underline"&gt;id&lt;/span&gt; = rownum ...
&lt;/li&gt;&lt;li&gt;Separate mini-service (webstorer.thedatahub.org ...)
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;How do we selectively disable recline where not appropriate (e.g. query support makes no sense for &lt;a class="missing wiki"&gt;DataProxy?&lt;/a&gt;)
&lt;ul&gt;&lt;li&gt;Ans: do not bother at present. Focus on Webstore route.
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Where does geodata support come in (in Recline or separately)
&lt;ul&gt;&lt;li&gt;This is a separate issue
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h2 id="UserStory1"&gt;User Story 1&lt;/h2&gt;
&lt;p&gt;
User -&amp;gt; CKAN instance -&amp;gt; Add Dataset -&amp;gt; Adds a Resource via uploading a CSV file -&amp;gt; Save
&lt;/p&gt;
&lt;p&gt;
=&amp;gt; Result = New Dataset + Resource + Data API to resource and nice Preview of the data
&lt;/p&gt;
&lt;p&gt;
Solution:
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Allow normal upload process
&lt;/li&gt;&lt;li&gt;Webstorer queue task which should get triggered by new resource. Check the resource and if it can convert into the associated resource webstore database.
&lt;/li&gt;&lt;li&gt;Update the resource in some way (set webstore_url)
&lt;/li&gt;&lt;/ol&gt;&lt;h1 id="UserStories"&gt;User Stories&lt;/h1&gt;
&lt;h2 id="UserStory2"&gt;User Story 2&lt;/h2&gt;
&lt;p&gt;
User -&amp;gt; CKAN instance -&amp;gt; Add Dataset -&amp;gt; Adds a Resource via linking to some remote file (CSV or otherwise) or uploading some data (CSV or otherwise)
&lt;/p&gt;
&lt;p&gt;
=&amp;gt; Result = New Dataset + Resource + nice Preview of the data (wherever possible)
&lt;/p&gt;
&lt;h2 id="UserStory3"&gt;User Story 3&lt;/h2&gt;
&lt;p&gt;
User -&amp;gt; CKAN instance -&amp;gt; Add Dataset -&amp;gt; Adds a Resource which will be webstore database in CKAN -&amp;gt; User saves data to this data store.
&lt;/p&gt;
&lt;p&gt;
=&amp;gt; Result = New Dataset + Resource (Webstore resource) which can now be written to or read from by the user
&lt;/p&gt;
&lt;p&gt;
Solution: just create a resource with blank url (or better, have a new option to create webstore resource ...)
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1797</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Wed, 15 Feb 2012 11:44:35 GMT</pubDate>
      <title>keywords set</title>
      <link>http://localhost/ticket/1797#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1797#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;keywords&lt;/strong&gt;
              &lt;em&gt;[3d]&lt;/em&gt; added
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Wed, 29 Feb 2012 21:16:59 GMT</pubDate>
      <title>keywords, description changed</title>
      <link>http://localhost/ticket/1797#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1797#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;keywords&lt;/strong&gt;
              &lt;em&gt;[4d]&lt;/em&gt; added; &lt;em&gt;[3d]&lt;/em&gt; removed
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1797?action=diff&amp;amp;version=2"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Wed, 29 Feb 2012 21:18:24 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1797#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/1797#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1797?action=diff&amp;amp;version=3"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
New API endpoint, Authorization and documentation done and merged to master. Time so far. 1.5d. &lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/a054071e2e29e70e7cfa69df8c117ad5d5871a24"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/a054071e2e29e70e7cfa69df8c117ad5d5871a24&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Sun, 04 Mar 2012 11:19:41 GMT</pubDate>
      <title>description, milestone changed</title>
      <link>http://localhost/ticket/1797#comment:4</link>
      <guid isPermaLink="false">http://localhost/ticket/1797#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1797?action=diff&amp;amp;version=4"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;ckan-v1.7&lt;/em&gt; to &lt;em&gt;current-ckan-sprint-2012-03-05&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Sun, 04 Mar 2012 12:20:39 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1797#comment:5</link>
      <guid isPermaLink="false">http://localhost/ticket/1797#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1797?action=diff&amp;amp;version=5"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Data Viewer support for new &lt;a class="missing wiki"&gt;DataStore?&lt;/a&gt; in &lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/9ab8b0283bb086eb4cd663ff73c27066bdd3c79a"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/9ab8b0283bb086eb4cd663ff73c27066bdd3c79a&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Mon, 05 Mar 2012 00:47:44 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1797#comment:6</link>
      <guid isPermaLink="false">http://localhost/ticket/1797#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1797?action=diff&amp;amp;version=6"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Sat, 10 Mar 2012 20:47:49 GMT</pubDate>
      <title>status, description changed; resolution set</title>
      <link>http://localhost/ticket/1797#comment:7</link>
      <guid isPermaLink="false">http://localhost/ticket/1797#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1797?action=diff&amp;amp;version=7"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
All done!!
&lt;/p&gt;
&lt;p&gt;
Help for data api done in &lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/1d8e464f8542d4c33286bb93f4de50060665799f"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/1d8e464f8542d4c33286bb93f4de50060665799f&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Checkbox for datastore enabled in &lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/3f1320cd92ae0e775fde1b5eada156260c55e0a6"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/3f1320cd92ae0e775fde1b5eada156260c55e0a6&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Sat, 10 Mar 2012 20:50:44 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1797#comment:8</link>
      <guid isPermaLink="false">http://localhost/ticket/1797#comment:8</guid>
      <description>
        &lt;p&gt;
Merge fix &lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/476a5bd32a3fac5d2dd85614f5d86c79f4ff6547"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/476a5bd32a3fac5d2dd85614f5d86c79f4ff6547&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>