Giter Club home page Giter Club logo

Comments (6)

wardi avatar wardi commented on August 25, 2024

No, editing a dataset with custom fields including removing multiple choice values should work fine. Can you give me more information so that I might be able to reproduce the problem you're seeing?

from ckanext-scheming.

wardi avatar wardi commented on August 25, 2024

Oh, I see. Editing resources seems to be broken. Thank you for reporting that!

from ckanext-scheming.

benjaminlaot avatar benjaminlaot commented on August 25, 2024

Editing a dataset works fine whereas editing resource don't.

from ckanext-scheming.

benjaminlaot avatar benjaminlaot commented on August 25, 2024

You're welcome !

from ckanext-scheming.

wardi avatar wardi commented on August 25, 2024

Digging in to this it just gets stranger.

I start with a resource with url "a resource" and extras {"camels_in_photo": 9000, "others_in_photo": "nothing really"} then I update it to set the url to "a resource 3" and the extras to {"camels_in_photo": 2, "others_in_photo": "elephant"}. In the resource table I see:

         url         |                             extras                             
---------------------+----------------------------------------------------------------
 http://a resource 3 | {"camels_in_photo": 9000, "others_in_photo": "nothing really"}
(1 row)

As you pointed out the normal field 'url' is updated but the extras are not.

In the resource_revision table I see:

     revision_timestamp     |         url         |                             extras                             
----------------------------+---------------------+----------------------------------------------------------------
 2014-12-22 15:15:20.133749 | a resource          | {"camels_in_photo": 9000, "others_in_photo": "nothing really"}
 2014-12-22 15:16:23.584068 | http://a resource 3 | {"camels_in_photo": 2, "others_in_photo": "elephant"}
(2 rows)

So the correct extras do exist in the latest revision.

from ckanext-scheming.

wardi avatar wardi commented on August 25, 2024

Seems to be a ckan issue not specific to scheming. I've opened a new issue here ckan/ckan#2158 so I'll close this one.

from ckanext-scheming.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.