Code Monkey home page Code Monkey logo

pymongo-schema's People

Contributors

andrii0yerko avatar aureliengervasi avatar iamsk avatar jacksu avatar julierossi avatar pajachiet avatar

Stargazers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pymongo-schema's Issues

import pymongo-schema

How do I import pymongo-schema

after successfully installing pymongo-schema how do I import it. If running in a console pymongo-schema cannot be imported.

import pymongo-schema
  File "<ipython-input-8-b34e0579ec88>", line 1
    import pymongo-schema
                  ^
SyntaxError: invalid syntax

Or in a mongo shell I cannot run it.

> pymongo-schema -h
2017-10-03T20:01:46.947+1100 E QUERY    [thread1] ReferenceError: pymongo is not defined :
@(shell):1:1

Unsure how to import the module can you advise please?

Compare module - detailed diff and summary diff views

Implementing the option to display the full differences in the compare module, a choice needs to be made regarding the output format.

In the detailed diff, we'll have something like (potentially with more information like description, sensitive, etc.):

Hierarchy Previous Schema New Schema
borough {"type": "string", "prop_in_object": 1.0, "count": 25359, "types_count": {"string": 25359}} None
_borough None {"type": "string", "prop_in_object": 1.0, "count": 25359, "types_count": {"string": 25359}}
cuisine {"type": "string"} {"type": "ARRAY"}
grades.grade {"type": "string", "prop_in_object": 3.6856, "count": 93463, "types_count": {"string": 93463}} None

Currently, the summary view is like:

Hierarchy Previous Schema New Schema
borough None
None _borough
cuisine {"type": "string"} {"type": "ARRAY"}
grades grade None

Both views do not have the same hierarchy in the case of a missing / new field.

A solution would be to use the same hierarchy as the detailed view in the summary one, repeating the field name :

Hierarchy Previous Schema New Schema
borough borough None
_borough None _borough
cuisine {"type": "string"} {"type": "ARRAY"}
grades.grade grade None

What do you think about this solution ? Does it seem clear to you ?

Another possibility would be to give more details about the missing / new field in the schema columns.

But this might be confusing.

  • Either we choose to display the whole field data (instead of just its name) but this makes the summary view not no short (especially in case of nested fields or at collection level)
  • or we choose to show only some information about the field (maybe just the type).
    In this case, one might think the information in the schema column represent actually the whole field value.

@pajachiet , @aureliengervasi which of these three solutions (or maybe another one) would you choose ?

Issue when mapping an array of scalars from a dictionary field

When mapping an array of scalars from a dictionary field, the "valuefield' field gets filled with the shortened dictionary field name (eg: creneaux from rendez_vous_gu.creneaux)

But in the associated linked table, the target field is named with the full dictionnary field name (eg: rendez_vous_gu.creneaux).

As a consequence, the value is not propagated to the linked table, without raising an error.

Potential solution : using the full dictionnary field name in the "valuefield" field.

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.