Skip to content

Commit

Permalink
Removed unused HOWTO from other project; #11
Browse files Browse the repository at this point in the history
- docs/DEVELOPMENT.md - Removed a HOWTO that was included from another
  project.
  • Loading branch information
mnyon-grandkru committed Sep 4, 2015
1 parent df55e5c commit 0ecf750
Showing 1 changed file with 1 addition and 50 deletions.
51 changes: 1 addition & 50 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,53 +9,4 @@ developed for the site. This will be adjusted over time
Here are a list of style guides and standards found and used for
this drywall site.

# [Google JSON Style Guide](https://google-styleguide.googlecode.com/svn/trunk/jsoncstyleguide.xml)

## HOWTOs:

### HOWTO Add a filter to the requests admin (http://<host>/admin/requests)

1. In `views/admin/requests/index.jade`, add a filter to the list of filters
in the Underscore template id `tmpl-filters`. Note; there are currently 6
filter boxes on this page, so if more are to be added, it might be good
to have a UI person check those out.

2. In the `find()` function in `views/admin/requests/index.js`, the query that
returns the requests to the frontend is the [Sequelize](http://sequelize.readthedocs.org/en/latest/) [findAll()](http://sequelize.readthedocs.org/en/latest/docs/querying/#where)
function. This is located in the getResults() function expression.

Currently, certain query parameters are used for certain filters.
* The `beginDate` and `endDate` params are used for date range filtering

* The `search` param is used for an ILIKE query.

* The `offset` and `limit` params are used for limiting ranges

* The `region` param is used to filter by region

Each of these maps to a [Sequelize operator](http://sequelize.readthedocs.org/en/latest/docs/querying/#operators) or clause.

* `beginDate` and `endDate` are used with the $between operator.

* `offset` and `limit` are optional parameters to the findAll query



## Notes:

### DB Table Usage for Red Cross Smoke Alarm App. This lists the models (and accompanying tables) and their current status regarding the application. The tables that are not used
are candidates for removal later.

* Account - Used by Drywall for user management.
* Admin - Used by Drywall for user management.
* AdminGroup - Used by Drywall for user management.
* Category - Part of Drywall package, but not used for this application.
* LoginAttempt - Used by Drywall for user management.
* Message - Part of Drywall package, but not used for this application.
* Note - Part of Drywall package, but not used for this application.
* Requests - Used in this application.
* SelectedCounties - Used in this application.
* Status - Part of Drywall package, but not used for this application.
* StatusLog - Part of Drywall package, but not used for this application.
* UsAddress - Used in this application.
* User - Used by Drywall for user management.
# [Google JSON Style Guide](https://google-styleguide.googlecode.com/svn/trunk/jsoncstyleguide.xml)

0 comments on commit 0ecf750

Please sign in to comment.