Git Product home page Git Product logo

eratosthenes's People

Contributors

albaltas avatar amaxilat avatar dastergon avatar fpapadopou avatar sandip2451984 avatar spiliot avatar tzikis avatar ziqbal avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eratosthenes's Issues

Enhance library import

'Libraries are usually found on the internet in github repos or zip files, and we have some ways to import them, but we can do better. A zip export wouldn't hurt either.'

Create CodeExample Entity

id, version_id, name, path, boards
Unique index on: version_id

Renamed from Example to CodeExample.

Create fixtures for populating the databse

Create 6 new fixture files in order to initialize the database for set up and test.

  • Fixture for Architecture
  • Fixture for LibraryExample
  • Fixture for Library
  • Fixture for Partner
  • Fixture for Preference
  • Fixture for Version

Add a delete library feature

A delete library feature should be added, which would handle the deletion of the library metadata and examples metadata from the database, as well as the actual files deletion from the filesystem.

Issue regarding the schema in Issue #21

Regarding the original schema (#21), here are two issues I found today:
1.Unique index on folder_name of Version (#29)
Currently we are using relative path, so in each version we only store the folder name like "1.0.0" or "1.5.2". But this may violate the unique constraint.
Possible solution: We either store the full path, or we remove the index.

2.Unique index of version_id in LibraryExample (#31)
What if there may be two or more example for this version? The unique constraint may be broken then.
Possible solution: we remove the index, or we set the constraint to be {id, version_id}

Currently I resolved the issue 1 by removing the index; resolved issue 2 by apply unique index on {id, version_id}. (see f66431b)

Remove magic strings

Currently there are far too many magic strings, and the system is prone to silent failure from typo, change, etc.

One suggestion is to make constant package files. For example, a library that needs Form related constants will need to have use FormConstants and use getter like getDefaultHeader() to use a constant. This way, changing the value will not break anything, and some mistakes like typo will be caught by the compiler.

Json library import feature

'Arduino IDE has a new feature that parses a special json hosted someplace on the internet to import libraries. In most cases we already have those libraries, but figuring how this works and incorporating it in eratosthenes would be welcome too.'

possible issue with install.sh

install.sh places the app in a directory called /opt/codbender/eratosthenes/Symfony/web , but it creates an apache configuration with alias and directory pointing to /opt/codebender/codebender-library-manager/Symfony/web

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.