Giter Site home page Giter Site logo

ddhqa's People

Contributors

drkarthi avatar seladore avatar tonyfujs avatar

Watchers

 avatar  avatar  avatar  avatar

ddhqa's Issues

check_resource_link() beyond 200

Currently check_resource_link() only passes for 200 messages, will probably need to think of a more robust output depending on the status code.

example
node 140181 fails due to 400 status message, however, the resource link works fine

check_privacy_status() missing conditional

Add if-statement in check_privacy_status() for the dataset's "field_wbddh_data_class". If its public, then check the resource level's data_class.

example

dataset_metadata <- ddhconnect::get_metadata(dataset_nid)
data_class_tid <- unlist(dataset_metadata[["field_wbddh_data_class"]], use.names = FALSE)
data_class_ui <- lovs[lovs$tid == data_class_tid & lovs$machine_name == "field_wbddh_data_class", ]$list_value_name

if (data_class_ui == "Public") {
  check_privacy_status(resource_metadata)
}

check_recom_fields(): look into "field_wbddh_data_dates"

Data Collection Dates is a required Microdata field. The ddh form maps the "Data Collection Dates" form field to the field_wbddh_data_dates machine name on the add data form. Including this field as a recommended field leads to a lot of fails.

  • data collection collection_date is mapped to startDate and endDate in mdlibtoddh
  • startDate and endDate in mdlibtoddh's lookup are associated with field_wbddh_start_date and field_wbddh_end_date respectively
  • field_wbddh_start_date and field_wbddh_end_date are not populated for some Microdata datasets (ex: 113249, 114196, 108513)

It might make sense to include field_wbddh_start_date and field_wbddh_end_date as recommended fields instead.

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.