@wmfs/tymly-rankings-plugin
Plugin which handles ranking of data for Tymly framework
Last updated 22 days ago by wmfsbot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @wmfs/tymly-rankings-plugin 
SYNC missed versions from official npm registry.

tymly-rankings-plugin

Tymly Plugin npm (scoped) CircleCI codecov CodeFactor Dependabot badge Commitizen friendly JavaScript Style Guide license

Plugin which handles ranking of data

On tymly startup, this plugin searches the loaded blueprints for .json files in ranking directory. These ranking files indicate what factors should contribute to the ranking score and where to find the value to score. The plugin looks at these factors, and finds the corresponding weights in the registry-keys. With these weights, the plugin generates an SQL View statement which forms a table with scores per factor and a total score for each 'source' row.

The plugin also supplies a state-resource so it can be called to refresh a ranking, which will look to the database for up-to-date registry-keys.

See the test blueprint in /test/fixtures for an example of how to do this.

Install

$ npm install tymly-rankings-plugin --save

Testing

Before running the tests, you'll need a test PostgreSQL database available and set a PG_CONNECTION_STRING environment variable to point to it, for example:

PG_CONNECTION_STRING=postgres://postgres:postgres@localhost:5432/my_test_db

Once the environment variables have been set, you can run the tests like this:

$ npm test

License

MIT

Current Tags

  • 1.28.0                                ...           latest (22 days ago)

49 Versions

  • 1.28.0                                ...           22 days ago
  • 1.27.0                                ...           a month ago
  • 1.26.0                                ...           a month ago
  • 1.25.0                                ...           2 months ago
  • 1.24.0                                ...           4 months ago
  • 1.23.0                                ...           4 months ago
  • 1.22.0                                ...           5 months ago
  • 1.21.3                                ...           6 months ago
  • 1.21.2                                ...           6 months ago
  • 1.21.1                                ...           7 months ago
  • 1.21.0                                ...           7 months ago
  • 1.20.0                                ...           8 months ago
  • 1.19.0                                ...           8 months ago
  • 1.18.0                                ...           9 months ago
  • 1.17.0                                ...           10 months ago
  • 1.16.0                                ...           10 months ago
  • 1.15.0                                ...           a year ago
  • 1.14.0                                ...           a year ago
  • 1.13.1                                ...           a year ago
  • 1.13.0                                ...           a year ago
  • 1.12.0                                ...           2 years ago
  • 1.11.0                                ...           2 years ago
  • 1.10.0                                ...           2 years ago
  • 1.9.0                                ...           2 years ago
  • 1.8.0                                ...           2 years ago
  • 1.7.0                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.13                                ...           2 years ago
  • 1.1.12                                ...           2 years ago
  • 1.1.11                                ...           2 years ago
  • 1.1.10                                ...           2 years ago
  • 1.1.9                                ...           2 years ago
  • 1.1.8                                ...           2 years ago
  • 1.1.7                                ...           2 years ago
  • 1.1.6                                ...           2 years ago
  • 1.1.5                                ...           2 years ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 14
Last Day 0
Last Week 1
Last Month 24
Dependencies (5)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |