-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is some clean up work related to abstracting database queries aw…
…ay from our controllers and views and consolidating those queries in the model portion of our application. It's incomplete, and there is still more work to be done on this subject. This commit is squashed and contains a number of other things that it shouldn't such as adding an Organization details view, and a shell script function for running coverage reports. Apply consistent style/structure to the new wasteline app so each view calls a service module function that calls a query method on the appropriate model manager get_state_waste_codes service method New DotLookupBaseManager base class for all DotLookup manager with an additional 'filter_by_value' method applicable to all classes filter_by_state_id query method for state waste codes Add manager methods to TrakSite model manager and implement add coverage dependency and document process in the runhaz.sh shell script use manager method and chain with & operator to filter by user and EPA id number site filter by EPA id add filter_by_user method move test fixtures into smaller scope python modules (django apps) where applicable rename abstract factory methods use new TrakSite filter_by_username query method in manifest service get_by_user query method for the TrakSite model
- Loading branch information
1 parent
e333f9f
commit 607d9d1
Showing
43 changed files
with
629 additions
and
520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.