Giter Site home page Giter Site logo

schemacrawler-plugin-dashboard's Issues

Run infos

Add a section dedicated to runtime infos (date utc and local, time, database url,...)...and job uniqueId

It could be interesting to produce a csv that contains them rather than hardcode it in the Rmd

Generate additional csv > list of tables

grab following properties :

numRows
tableNode.setProperty("nbColumns", table.getColumns().size());
tableNode.setProperty("definition", table.getDefinition());
tableNode.setProperty("lookupKey", table.getLookupKey());
tableNode.setProperty("name", table.getName());
tableNode.setProperty("remarks", table.getRemarks());
tableNode.setProperty("schemaName", table.getSchema().getName());
tableNode.setProperty("fullName", table.getFullName());
tableNode.setProperty("tableType", table.getTableType().toString());

Rmarkdown report

Implement a Rmarkdown report on the csv output of the lint, using ggplot2 lib for graphs so we can get a dashboard.

  1. FIrst, develop the markdown on the repo (histograms, piecharts, ...heatmap)
  2. Provide /install in the r the packages into the R report in a dedicated hidden section so the report can easily be compiled
  3. At the end, the report should be compiled from command line thanks to knitr.
  4. Install test could be done inside a Vagrant vm
  5. Give a try to shiny to get a locally running app

NB : If additional datas are required in the csv, please tell and i'll implement it, but the goal would to push all this stuff on the R side

Definition Of Done :

You run the lint command, then, through a command line, you get a pdf, html. For now, we'll manually document the command line...but in a second step it would be possible :

to create a nice to use makefile
an ant make file (think about windows users...)
embed the Rmarkdown inside the jar and trigger (at least try) the Rmarkdown build.

This feature should be easily : installable in the debian package...deployable on Travis

Generate additional csv > columns

generate csv with tableFullName as first column will be used to make reports between columns csv and table csv

and all other available available datas :

columnNode.setProperty("columnOrdinalPosition", column.getOrdinalPosition());
                        columnNode.setProperty("columnDataType", column.getColumnDataType().toString());
                        columnNode.setProperty("name", column.getName());
                        columnNode.setProperty("fullName", column.getFullName());
                        if (column.getDefaultValue() != null) {
                            columnNode.setProperty("defaultValue", column.getDefaultValue());
                        }

                        if (column.getLookupKey() != null) {
                            columnNode.setProperty("lookupKey", column.getLookupKey());
                        }

                        if (column.getRemarks() != null) {
                            columnNode.setProperty("remarks", column.getRemarks());
                        }

                        if (column.getShortName() != null) {
                            columnNode.setProperty("shortName", column.getShortName());
                        }
                        columnNode.setProperty("size", column.getSize());
                        columnNode.setProperty("width", column.getWidth());

R prerequisites >rmarkdown install

Got error during html compilation :

➜  dashboard ./dashboard_rscript.R 
Error in loadNamespace(name) : there is no package called ‘rmarkdown’
Calls: :: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
➜  dashboard 

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.