Code Monkey home page Code Monkey logo

data-models-deprecated's People

Contributors

briocheberlin avatar chssch avatar codebeige avatar danse avatar ehealth-waffle avatar espy avatar febeling avatar jo avatar karlwestin avatar ni-ka avatar obdulia-losantos avatar patriciagarcia avatar peritus avatar pkolios avatar readevalprint avatar ribalba avatar rmehner avatar tillre avatar tlvince avatar tremolo avatar tthew avatar twitchett avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

data-models-deprecated's Issues

Add wards to Person

For rollout of Sense in SL, we need wards. We should follow the precedent set by the SL call centre software.

Add custom builds

Including the entire data-model build is quite heavy (~600K as of 1.12.0):

screen shot 2015-03-31 at 16 02 58

Being able to produce custom builds for example to only include a given set of schema(s) would be nice to have.

Can we publish this?

Following eHealth's procedure, two developers have to give me their ๐Ÿ‘ for this repo to be published

chore: add Mocha only warning

{describe,it}.only should never be committed. Add a tool such as an ESLint plugin or Git pre-commit hook to check this.

Should we have limited ward options?

This is the list of known wards as we got it in some mail.

I created this issue to discuss whether we want to have this in our systems, And whether this is correct.

We might want to have it for validation if it is correct. About usability, i think that data entry will not be much faster using a select box based on the list, because a three-digit number can be entered quite conveniently with a numeric keyboard

Design migration for followups in the person model

I think that we had more troubles than expected with old-style versus new-style source cases. Let us try to plan and design more this time. I will write a small doc and we could keep it in this repo as a reference until the migration will be over. Both the document and this issue could be a reference for people stumbling upon that part of the code.

Goals:

  • have a clear idea about how to adapt the code, for a better implementation
  • anticipate possible problems
  • have a single reference in dashboard, followup, search
  • keep some doc for the poor people who might step into the adaptation logic

Add the `deprecated` property to locations

In the call centre, a deprecated property is used in order to show legacy locations, without allowing them to be used for new data. This allows to perform breaking changes smoothly, in two steps:

  • deprecate old location, insert new, release
  • migrate data in the database (optional)
  • remove old location, release (optional)

This way, migrations do not need to be synchronised with new releases.

This property has to be added to the data model

Pretty print validation errors in test runner

Currently, if there's a validation error, the test runner (mocha) logs the error as minified JSON. Since this is meant to be human-readable, it should be pretty printed.

> mocha --watch                                                                                                                                                   [0/409]

child_process: customFds option is deprecated, use stdio instead.



  nutrition-survey
    1) validates the first example


  0 passing (109ms)
  1 failing

  1) nutrition-survey validates the first example:
     AssertionError: [{"code":"PARENT_SCHEMA_VALIDATION_FAILED","params":[],"message":"Schema failed to validate against its parent schema, see inner errors for details.
","path":"#/","inner":[{"code":"ANY_OF_MISSING","params":[],"message":"Data does not match any schemas from 'anyOf'","path":"#/definitions/team/properties/members/items"
...

Add versioning to schemas

IIRC, we implicitly version schemas by bumping the package version. If this is correct, it does not provide schema versioning on a granular level. Perhaps we ought to adopt a versioning scheme similar to that of the JSON schema spec itself, namely an id field and suffixing the version number to the schema's filename (e.g. draft-04.json).

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.