History for dmpopidor / app / models / template.rb
2017-04-26
@Brian Riley
moved some of the logic that was defaulting template attributes in the controller over to the model. Fixed tests DMPRoadmap/roadmap#251 DMPRoadmap/roadmap#273
Brian Riley committed on 26 Apr 2017
2017-04-25
@Brian Riley
moved most of the save logic from the template controller to the model. Updated the phases/section/question models to use the after_save callback to handle updating the template.dirty flag
Brian Riley committed on 25 Apr 2017
2017-04-21
@Brian Riley
Updated tests to work with updated controller
Brian Riley committed on 21 Apr 2017
2017-04-20
@briley
switched helper scopes to class methods because scopes return all if nothing was found since we were using .first
briley committed on 20 Apr 2017
@briley
trying to add default scoping for template
briley committed on 20 Apr 2017
2017-04-19
@briley
Added scoped helper queries that return the current template version, the published template, and the available dmptemplate_ids for a given org
briley committed on 19 Apr 2017
2017-04-18
@briley
added a test that searches for missing translations. Added specific error messages for model validations. Added some devise controlled error messages to pot/po files DMPRoadmap/roadmap#236
briley committed on 18 Apr 2017
2017-03-03
@xsrust
created a to_hash method for templates to help remove data access from views
xsrust committed on 3 Mar 2017
2017-02-08
@briley
Merge branch 'final_schema' of https://github.com/CDLUC3/roadmap into final_schema
briley committed on 8 Feb 2017
@xsrust
customizations generate new templates or template versions
xsrust committed on 8 Feb 2017
2017-02-07
@briley
removed references to organisation_id in several models and replaced with .org.id
briley committed on 7 Feb 2017
@briley
added some missing unit tests. fixed typo on Template.has_customisations? method
briley committed on 7 Feb 2017
2017-02-03
@xsrust
init commit of deep_copy for templates [untested]
xsrust committed on 3 Feb 2017
2017-02-02
@briley
added theme unit tests and started cleanup of remaining existing tests
briley committed on 2 Feb 2017
@briley
added suggested_answer unit tests and started on template unit tests
briley committed on 2 Feb 2017
2017-01-27
@Brian Riley
added new seed file that works with new schema. commented out plans and answers for now though because plan model is unfinished
Brian Riley committed on 27 Jan 2017
2017-01-26
@briley
resolved merge conflicts
briley committed on 26 Jan 2017
2017-01-11
@xsrust
hacked templates landing page to work
xsrust committed on 11 Jan 2017
2017-01-09
@xsrust
re-wrote data access for guidance_groups controller
xsrust committed on 9 Jan 2017
@xsrust
updated guidances controller and views to reflect new schema
xsrust committed on 9 Jan 2017
2016-12-12
@xsrust
made necissary changes to allow the app to display the splash/login screen
xsrust committed on 12 Dec 2016
@xsrust
replaces Organisation. with Org. in all files
xsrust committed on 12 Dec 2016
2016-12-08
@xsrust
began changing models to reflect the new model names and relationships, additionally deleting some old/unused models which no longer apply in the new schema.
xsrust committed on 8 Dec 2016
@xsrust
added migration to add foreign keys. Also needed to remove the temporary models, and update existing models to reflect the new relationships
xsrust committed on 8 Dec 2016
2016-11-29
@xsrust
updated models for data migration
xsrust committed on 29 Nov 2016