2017 © Pedro Peláez
 

drupal-module recline

recline.js module for DKAN/Drupal

image

getdkan/recline

recline.js module for DKAN/Drupal

  • Friday, April 6, 2018
  • by dafeder
  • Repository
  • 34 Watchers
  • 3 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

About this module

This module provides a file field which accepts csv file uploads and visualizes their contents using Recline.js, (*1)

INSTALLATION

  • Download the Recline.js library from https://github.com/okfn/recline (zip file) and install in 'sites/all/libraries/'.
  • Enable recline module.

Supported Backends and File Types

This creates grid, graph, and map data previews for CSV and XLS files based off of the following mechanisms., (*2)

It first checks to see if the DKAN Datastore module is installed, and if a datastore has been created for the file. If the datastore is available it uses that to visualize the data. This is extremely scalable since it only queries the first 50 rows of the table in the database. It has been tested with files up to 500 GB and a million+ rows., (*3)

If the datastore is not available it checks if the file is a CSV. If it is a CSV it tries to load the file into memory. If it takes longer than a second to load the file it instructs the user that the file is too large to preview. This keeps the page from freezing for larger files., (*4)

If the file is a XLS it uses the DataProxy services to preview the file since there is currently not a CSV backend for Recline. DataProxy parses the file and returns it as a data object which is previewed., (*5)

Contributing

We are accepting issues in the dkan issue thread only -> https://github.com/NuCivic/dkan/issues -> Please label your issue as "component: recline" after submitting so we can identify problems and feature requests faster., (*6)

If you can, please cross reference commits in this repo to the corresponding issue in the dkan issue thread. You can do that easily adding this text:, (*7)

NuCivic/dkan#issue_id

to any commit message or comment replacing issue_id with the corresponding issue id., (*8)

Recline.js library workflow

There are clear indications on how/what to reference in the makefile itself:, (*9)

# This should be pointing to the HEAD of the "dkan_integration" branch at the time of
# each release. The commit should have all the branches for PR's that we send against
# the okfn repo and the builded version matching the code(use ./make cat to build).
libraries[recline][download][revision] = "aa5eeac080099584792e70dff839f0e85ae7380a"

Setup to work on recline.js

  • Clone recline.js repo locally
  • Add okfn as a remote
  • Fetch all tags and branches
git clone git@github.com:NuCivic/recline.js.git
cd recline.js
git remote add okfn git@github.com:okfn/recline.git 
git fetch --all

Build a PR against okfn

All the fixes we provided should be PR's against the okfn repository. Setup for work based on the latest okfn/master:, (*10)

git checkout -b "branch_name_after_fix"
git reset --hard okfn/master

when you are done build without minifying and push the branch to NuCivic/recline.js:, (*11)

./make cat
git add .
git commit -m "Describe your commit"
git push origin branch_name_after_fix

Create a PR against okfn/recline:master, (*12)

Update dkan_integration branch to include your fix

git checkout dkan_integration
git merge origin branch_name_after_fix

Create a QA site using this repo

  • Create a branch for this repo
  • Update the recline.make to reference the last commit on NuCivic/recline.js:dkan_integration
  • Commit the changes, push and build a QA Site

The Versions

06/04 2018

dev-7.x-2.x

dev-7.x-2.x

recline.js module for DKAN/Drupal

  Sources   Download

The Requires

  • composer/installers ~1.0
  • library/recline 1.0
  • library/lodash 1.0
  • library/backbone 1.0
  • library/csv 1.0
  • library/slickgrid 1.0
  • library/mustache 1.0
  • library/moment 1.0
  • library/leaflet 1.0
  • library/flot 1.0
  • library/deep_diff 1.0
  • library/recline_deeplink 1.0
  • library/leaflet_markercluster 1.0
  • library/xls 1.0
  • library/jsxlsx 1.0
  • library/jsonview 1.0

 

10/03 2018

dev-dkan-composer-dan

dev-dkan-composer-dan

recline.js module for DKAN/Drupal

  Sources   Download

The Requires