[ckan-dev] Undelete a dataset

Stefan Oderbolz stefan.oderbolz at liip.ch
Tue Aug 6 12:25:22 UTC 2013


I just tried the whole process on my machine, when I changed the values in
the database and reindex solr using the command Jorge provided, the dataset
was visible again.

Hope it'll work for you as well.


On Tue, Aug 6, 2013 at 1:12 PM, Jorge Pantoja <jorgepantojam at gmail.com>wrote:

> Hi Isabel,
>
> Maybe you can try with this command to reindex solr, but I don't know if
> that will solve the problem
>
> $ paster --plugin=ckan search-index rebuild
> --config=/etc/ckan/default/production.ini
>
> (change the config path to your production or development config file path)
> On Aug 6, 2013 1:01 PM, "Isabel Ruiz" <isaruizmellado at gmail.com> wrote:
>
>> Thanks Stefan,
>>
>> I have changed state=active in package and package_revision tables.
>>
>> And I cannot see the datasets I have deleted.
>>
>> Do I have to reindex solr? (if I have to... what is the command to
>> reindex?)
>>
>>
>>
>>
>>
>>
>> On Tue, Aug 6, 2013 at 12:09 PM, Stefan Oderbolz <stefan.oderbolz at liip.ch
>> > wrote:
>>
>>> I think this is still a missing feature (see
>>> https://github.com/okfn/ckan/issues/868). If I'm not wrong you can only
>>> "undelete" it if you change the value directly in the database (see tables
>>> package and package_revision). Currently there is not even a possibility to
>>> do this the command line.
>>>
>>> Maybe you can try to purge the dataset completly and then re-insert
>>> (import?) it.
>>>
>>> Regards Stefan
>>>
>>>
>>> On Tue, Aug 6, 2013 at 11:54 AM, Isabel Ruiz <isaruizmellado at gmail.com>wrote:
>>>
>>>> Hi!
>>>>
>>>> I have ckan 2.0.1
>>>>
>>>> I have deleted a dataset, if I edit it, it shows state = deleted
>>>>
>>>> How can I recover it? I mean, how can I public it?
>>>>
>>>> Thanks
>>>>
>>>> --
>>>> Isabel M. Ruiz Mellado
>>>> http://about.me/isabelruiz
>>>>
>>>> _______________________________________________
>>>> ckan-dev mailing list
>>>> ckan-dev at lists.okfn.org
>>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Liip AG  //  Feldstrasse 133 //  CH-8004 Zurich
>>> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>>
>>>
>>
>>
>> --
>> Isabel M. Ruiz Mellado
>> http://about.me/isabelruiz
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>
>>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>


-- 
Liip AG  //  Feldstrasse 133 //  CH-8004 Zurich
Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130806/ca2e337d/attachment-0001.html>


More information about the ckan-dev mailing list