Giter Club home page Giter Club logo

editor's People

Contributors

amalashkevich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

editor's Issues

Switching from str to UUID, max_length creates issues in generated code

Reproduce by setting up a str attribute
image
switching it to UUID without removing max_length
image

Results in:
Required(UUID, 255, unique=True, default=uuid4). causing TypeError: Unexpected positional argument for attribute Model.some_id: 255

Fixable by moving back to str and removing offending field, or editing manually.

import from python code

Currently it is only possible to build a structure from scratch, but it would be better to be able to import python definitions.

Especially for source control it would be great if we could just throw the database definition form December 2018 into the editor, and get a visual representation of that.

Ability to create composite keys

I can't seem to find an option to set composite keys/indices in the editor.
If I can't find it but it's there, can you tell me where it is?
If it is not there, it would be awesome if it could be added.

Allow to declare "mixins"

In your documentation, you recommend using mixins to not lose customization when copying the models from the editor. It's good advice, but currently, you would still have to re-establish all the multi-inheritance of each class when updating. It would be super useful to have a field to declare the additional mixins for a given entity and have them reflected in the "Models" code.

Canvas should be zoomed in/out

I can not see any zoom in/out function on canvas. I can use ctrl+scroll but it shrinks/enlarges the whole page which causes readability issues with menus.

It is nice to have that zoom in and out function for just the canvas part.

Hide sidebar and menubar

The sidebar and menu bar remove some visibility to the designer tab, especially when working with split screen, it would be nice to be able to hide these sections to have more space on the designer tab.

Show collection attributeson scheme using cursive

Some attributes, like collections, are "virtual" and does not have associate column in the table. It should be more clear to display such attributes in a way that makes them visually distinguishing from "normal" attributes

Error 500 when generating code from diagram

Steps to reproduce:

  1. Log into Pony ORM editor
  2. Open an existing diagram
  3. Generate Models

Result:

  • UI displays Something went wrong
  • Browser developer tools shows call to /get-code failed with error 500

Notes:

  • Issue also occurs with all the other code generators: SQLite, MySQL, PostgreSQL, Oracle

Public diagrams are NOT editable by everyone, but it's not clear

Currently public diagrams can be edited by everyone with an account. This means that a possibly malicious user is able (as all public diagrams are visible on a single page) to destroy all diagrams.

This makes it difficult to rely on to make small projects, if at any given time, a malicious user can come in and destroy everything.

A possible improvement would be to restrict write access to diagrams. If someone wants to edit a diagram, he can make a copy of it and edit his own copy.

Sqlite database name is ignored, :memory: is always used

The Python code for Sqlite database created with the online editor always ends with the following two lines:

db.bind("sqlite", ":memory:", create_db=True)
db.generate_mapping(create_tables=True)

I don't remember ever manually changing them. I think they came out with the correct database name, as set in the settings page. Also the two checkboxes in the mapping settings are ignored: "Create database" and "Create tables".

Is it a regression?

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.