Coder Social home page Coder Social logo

Comments (11)

pkdash avatar pkdash commented on August 26, 2024

@AmberSJones As I understand we will now have an additional field for each variable called 'Variable Description' which will require an entry. It is hard in the sense that anytime we make any changes to metadata I have to do quite a bit of testing to make sure nothing got broken. In regards to existing datasets we can enforce data entry for variable description when the dataset is updated for any reason. Additionally, we can put a default string like "variable description missing' for the existing datatsets.

from ckandev.

AmberSJones avatar AmberSJones commented on August 26, 2024

I've tested the newly implemented field on the test server. The issue I'm observing is that the datasets have this warning: 'This dataset was created with an older metadata schema. It needs to be updated before any of its resources can be accessed.' After the metadata record is completed, I am unable to add resources because 'This dataset needs its metadata updated before resources can be added or edited. Use the fields and the Update Dataset button on this page to update.' However, all of the required metadata (including the new field) is already complete.

I think it may still be requiring the Observed Variable Name and Units because if I add one to the metadata, I don't receive the warnings.

from ckandev.

pkdash avatar pkdash commented on August 26, 2024

I can see this problem. Working to fix it.

from ckandev.

pkdash avatar pkdash commented on August 26, 2024

I have now updated the code on the test server. @AmberSJones Please test to see if it got fixed.

from ckandev.

AmberSJones avatar AmberSJones commented on August 26, 2024

Yes, but... if use the Observed Variable Name and Units and then try to remove them all, I get an error. Otherwise seems good.

image

from ckandev.

pkdash avatar pkdash commented on August 26, 2024

There has to be one metadata element displayed even if the data entry for that is optional in order to be able to add a new element of that type (this is the case of repeatable element). I think this can be changed with some javascript if we really want to avoid this message box.

from ckandev.

AmberSJones avatar AmberSJones commented on August 26, 2024

That mostly seems ok, but then we will not be able to remove all of the Observed Variable Name/Units for the existing datasets for which we need to update the metadata elements.

from ckandev.

pkdash avatar pkdash commented on August 26, 2024

For existing datasets, you can remove all of the Observed Variable Name/Units fields except the last one pair. The last one you can't delete but you can delete the name/unit values inside the fields.

from ckandev.

AmberSJones avatar AmberSJones commented on August 26, 2024

Ok- that should work. Let's push this to production.

from ckandev.

pkdash avatar pkdash commented on August 26, 2024

We will push the changes tonight as I have to restart the web server.

from ckandev.

pkdash avatar pkdash commented on August 26, 2024

Production server has been updated with this fix.

from ckandev.

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.