GithubHelp home page GithubHelp logo

adlarge / fixtures-documentation-bundle Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 1.0 517 KB

Symfony bundle to generate and expose a documentation of your fixtures.

License: MIT License

Makefile 0.32% PHP 88.87% Twig 10.81%
php7 symfony symfony-bundle fixtures fixture

fixtures-documentation-bundle's People

Contributors

bluepioupiou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vincentclair

fixtures-documentation-bundle's Issues

document complex object

For now only scalar propertie for addFIxtureEntity are documented. We want to be able to auto document complex objects like arrays, Collection and other linked entities if it's described in config

"enableAutoDocumentation" behavior expected

When enableAutoDocumentation option set to true, I expect to not fullfill configEntities with all entities and their properties. Its really annoying ;) but the bundle to get all properties and autolink to linked entities.

Hope you could simplify it :)

Ability to link between entities in doc

The goal is to be able to reference an entity in another entity when building doc and, in the resulting doc, to have a link toward the references entity in the page

  • While building the doc, add a way to reference another entity
    $doc->addFixture('Products', [ 'id' => 2, 'name' => 'Product 2', 'customer' => $doc->makeLink('Customer', 1) ]);
  • We have to be sure to set which property is an id one for each entity (or to construct one if needed)
  • use these id as anchors in the doc and generate link to go to these anchors

Invalid "listenedCommand" doc

listenedCommand: 'php bin/console doctrine:fixtures:load' must be listenedCommand: 'doctrine:fixtures:load'

Please provide an example for hautelook:fixture:load too.

Be able to auto-document entity

The goal is to be able to

  • config each entity in a yaml file : the name and the fields to document
  • intercept when one of these entities is commited and automatically add it to the documentation

Example :
in entities.yaml
`

  • Product
    • id
    • name
  • Customer
    • id
    • first_name
    • last_name
    • email
      `

Problem of cache dir

In FixturesDocumentationManager.php, path to var directory is hardcoded.
It leads to a bug on our system as this directory is not writable, and cache dir is set to another location outside project.

$this->jsonFilePath = $this->projectDir . '/var/' . self::FILE_NAME;

Could you change it to "%kernel.cache_dir%" or something similar (or provide a way to configure the path of the path) ?

Alpha order in index

Fixtures class seems to be listed in reverse alphabetical order in generated index.
Will be better if it is not reversed ? ;)

Light documentation

To better "sell" this useful bundle, maybe it could be interesting to show the auto config first (autoDoc in #21). And all other options could be after or in a dedicated MD file, so the first page is more light.

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.