| 2018-07-25 |
Add extra validations for all models
...
- Includes specs using the Shoulda gem
- Includes a refactoring of update_numbers to a "sortable" abstraction
Bodacious
committed
on 25 Jul 2018
|
| 2018-07-13 |
Merge pull request #1715 from DMPRoadmap/issue-1371
...
Add ability to sort phase sections by dragging
Brian Riley
authored
on 13 Jul 2018
GitHub
committed
on 13 Jul 2018
|
Refactor number update query for MySQL and SQLite
Bodacious
committed
on 13 Jul 2018
|
| 2018-07-12 |
Add annotate gem for models and Gemfile
Bodacious
committed
on 12 Jul 2018
|
Make sections within a phase sortable
Bodacious
committed
on 12 Jul 2018
|
Remove Rails 3 attr accessible from models (#1691)
Gavin Morrice
authored
on 12 Jul 2018
Sam Rust
committed
on 12 Jul 2018
|
| 2018-05-23 |

Template Versioning
...
This commit is a complete refactor of all the pages involved with Template creating/editing. The database, models, controllers, views and JS have all been changed.
------------------------------------------------------------
removed unused template methods from Plan model and removed references to 'Dmptemplate' from tests
started updating model scopes and began creating new unit tests and test_helper methods
Rebased with template customization fixes. updated tests and latest_version queries
Grouping class methods. Grouping scope methods into separate class
removed Template::valid scope method in favour of Template::unarchived
Moved class methods to scope rails flavour.
Removed Template::get_public_published_template_versions method
Model#deep_copy instead of Model::deep_copy. Model#deep_copy without side effects
added customize method to model
updated customize to use new deep_copy and added some tests
fixed test
fixed broken tests after latest PR. DMPRoadmap/roadmap#1341
generate_version with unit test associated
customize with unit test associated
upgrade_customization first attempt
added tests for upgrade_customization
upgrade_customization with several unit test associated
added generate_copy
fixed tests and added test_helper for phase/section/question/annotation/question_option equality for verifying template copy/version/customize
added comments
finished up tests
Removed template.update! in favour of a more re-usable deep_copy with atomic saving.
removed new_copy.save! from templates_controller#copy. Atomic save for upgrade_customization method
renamed to bang notation generate_copy, generate_version, customize and upgrade_customization
question mark methods for generate_version, customize and upgrade_customization
unique indices for template and template customisations. #1341
init functionality for versionable concern
updated errors, added get_new
unique indices for template and template customisations. #1341
new schema dump generated from rails
manually set up the default for org.links
Fix for rake tasks
updated template controller and tests
finished tests for template controller update http verbs for customize and copy methods
updated template versioning intgeration to use new test_helper methods
updated template controller and tests
finished tests for template controller update http verbs for customize and copy methods
updated template versioning intgeration to use new test_helper methods
wired in the new versionable concern
wired in the new versionable concern
updated query structure in template_filter
updated routes and paths
moved phases controller to org_admin namespace
changes to phase model and unit tests
started moving phase views to new org_admin namespace and tests
fixed tests
started fixing up references to moved plan/phase status
started fixing up references to moved plan/phase status
moved js file, fixed tests and manually checked pages
set schema.rb back to sprint2
added in versionable concern and fixed tests
removed unused phase_status method
removed test for phase_status method
fixed issue with template visibility for the default template
fixed issue with default templates and versioning/customization
versionable_test.rb
versionable concern updated
find_or_generate_version! into template, test associated
annotation and question model using has_one through adequately
templates_controller#update action refactored
tweaks to template_test
get_new and get_modifiable test cases for RuntimeError capture
passing parent object ids to children during deep_copy
updated question_option and annotation deep copy
removed old deep_copy method from section model and updated unit tests
removed old deep_copy method from section model and updated unit tests
updates to sections controller, model, routes and tests
fixed broken tests
updated both phases and sections controller to use versionable
fixed tests
started work on new template show/edit
finished up templates UI
fixed tests
consolidated form
consolidated form
fixed history page
removed old view
fixed test
fixed typo in en_US app.po
removed old deep_copy method from section model and updated unit tests
updates to sections controller, model, routes and tests
fixed broken tests
updated both phases and sections controller to use versionable
fixed tests
fixed tests and missing policy
fixed tests
created separate routes for each template index tab
updates to template index page structure
added callback to template model to ensure only one published version
finished up first pass of templates index page
fixed tests
removed current_tab from phase views. DMPRoadmap/roadmap#1407
section#create refactored. DMPRoadmap/roadmap#1407
sections loaded on demand for a phase. DMPRoadmap/roadmap#1407
ExpandAll triggers click instead of using collapse. DMPRoadmap/roadmap#1407
added phase/section/question overview back to template details page
send customizer to show section page
updated button text
updated history controller action
updated controller
updated views
added customization distinction to page title
updates to phase/section to introduce referrer logic and added section-show for customizable
removed old 'edit phase details button
removed edit question partial from section show
tweaks to templates index pages
fixed tests and default scope
added test for default customizations
added namespace to org section of templates index and made autocomplete combobox aware of form namespace
fixed issue with container view
removed old policies
updated statuses of templates
fixed typo in phases/overview view. DMPRoadmap/roadmap#1377
annotations moved to org_admin namespace. DMPRoadmap/roadmap#1377
annotations_controller#(create|update|destroy) with test associated. DMPRoadmap/roadmap#1377
flash notice for successful action carried out. DMPRoadmap/roadmap#1377
flash notice for success actions. create? method for annotation policy. DMPRoadmap/roadmap#1377
started refactor of sections/questions
fixed nil references. DMPRoadmap/roadmap#1462
annotations as fields_for nested attributes. DMPRoadmap/roadmap#1462
commented out version check on template update
removed invalid test
fixed reference to moved partials and family to family_id
fixed question update
updated guidances to work with modified themes form
finished up questions
fixed broken tests
updated preview and customize
fixed issue with sections index
cleaned up remaining issues with template editing and customization
added in check for nil phase to sections create
any user with readable rights should see download tab for a plan. DMPRoadmap/roadmap#1483
updated history to use new template.draft? logic to determine when to show draft icon
added latest check
added check for default option
added checks for historical and customization on preview page
added redirect to show if template is customization
added redirect to show if template is customization
updated ajax success/error for section display
fixed issues with create plan template selection and changing plan visibility
forgot to include model change
reverted schema.rb changes
adding org to chained scope in order to have searchable and sortable templates. DMPRoadmap/roadmap#1495
improved customization template search against all funder templates. DMPRoadmap/roadmap#1499
started work on adding edit/show/new/cancel buttons for questions
added toggle functionality between question show/edit
removed whitespace
made text area the default
updated template statuses
updated class to fix layout
introducing event delegation for sections/questions/annotations. DMPRoadmap/roadmap#1502
removed console.log
fixed JS for section/question
annotation loading tinymce when section show only permits customisation. DMPRoadmap/roadmap#1502
fixed issue with customizating by adding a section/question
removed reload
set focus to first invalid form input
fixed placement of focus for new validation.js
Added joins for customizations table
updated query
fixed initial numbering for new phases/sections
reverted referrer change
made section fields required
added ariatise to new section form
fixed referrer check
fixed inconsistent status message for transfer customization workflow
fixed issue with csv download
fixed csv header
fixed links for customization on history page
updated sections index so new section doesn't show unless its the current template
Added joins for customizations table
added includes to customisable query
fixed issue with paginable history
fixed merge conflicts in templates_controller and questions/_show.html.erb
resolved additional rebase conflict
briley
committed
on 23 May 2018
|
| 2018-02-13 |
migration to add complete flag to plans. #154
...
Integrate pre-fetching plan and phase from 25e2669
after_save callback for answer model with tests. #154
rake task to update completed plans. #154
statistics#completed_plans action done. #154
HTML view for completed plans and tweaks to JS file associated. #154
Jose Lloret
committed
on 13 Feb 2018
|
| 2017-06-02 |
Added method to validate answer according to each question format. Partial view for section progress. Eager loading of resources needed to calculate plan and section progress. Refactoring of code for progress plan. DMPRoadmap/roadmap#382
...
Fixed merge conflict. DMPRoadmap/roadmap#382
onChange event for tinymce at plan answers. Removed unnecessary options passed to tinymce. DMPRoadmap/roadmap#382
Jose Lloret
committed
on 2 Jun 2017
|
| 2017-04-26 |
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 |
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-18 |
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-14 |
change from serialized hash tp just using includes
ray.carrick
committed
on 14 Mar 2017
|
| 2017-02-07 |
fixed bug where sections not editable, questions not saveable
xsrust
committed
on 7 Feb 2017
|
| 2017-02-03 |
removed old amoeba gem that was used for cloning active record models. We will use xsrust's new deep_copy methods now
Brian Riley
committed
on 3 Feb 2017
|
init commit of deep_copy for templates [untested]
xsrust
committed
on 3 Feb 2017
|
| 2017-02-02 |
added check to role that sets access by default. added unit tests for section
briley
committed
on 2 Feb 2017
|
| 2017-02-01 |
added unit tests for question. removed unused methods from question. fixed guidance_for_question method so that it does not require us to pass in itself (was qustion.guidance_by_question(question, org) - now question.guidance_for_org(org)) and updated template that calls method accordingly
briley
committed
on 1 Feb 2017
|
| 2017-01-30 |
resolved merge conflicts
briley
committed
on 30 Jan 2017
|
| 2017-01-27 |
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 |
added some more attr_accessible attributes for new fields. finished up seed.rb file.
briley
committed
on 26 Jan 2017
|
resolved merge conflicts
briley
committed
on 26 Jan 2017
|
| 2017-01-24 |
updated attr_accessible lines to allow mass assignment of associations via object instead of id
briley
committed
on 24 Jan 2017
|
sections belong to phases, not versions
xsrust
committed
on 24 Jan 2017
|
| 2016-12-20 |
attempted to add some unit tests for Answers but the data will be changing so much that it did not make sense to continue at this point. Created tests for Language
briley
committed
on 20 Dec 2016
|
| 2016-12-12 |
updated models for role, section, and suggested answer
xsrust
committed
on 12 Dec 2016
|
| 2016-08-17 |
Merging current stable development branch into master (#23)
...
This is our unofficial v.0.1.0 release. It includes:
- Rails 4.2 migration
- Internationalization
- API
- Institutional logo upload (thanks to Weiwei and the Univ. of Alberta)
- Generic branding
- General cleanup of code and bug fixes
Brian Riley
authored
on 17 Aug 2016
GitHub
committed
on 17 Aug 2016
|
| 2016-08-12 |

Merging master (#20)
...
* added data structures for testing
* renamed token_permission_type to plural to follow convention of fixtures
* added gem to allow testing of controllers
* began implimenting testing for projects controller
* fixed auth to reject empty string
* added data structures for testing
* added data structures for testing
* removed old unnecissary data structures from fixtures
* added forgotten view for org-admins giving user's api permissions
* updated .gitignore
* added gem to allow testing of controllers
* began implimenting testing for projects controller
* fixed auth to reject empty string
* added data structures for testing
* added data structures for testing
* removed old unnecissary data structures from fixtures
* added forgotten view for org-admins giving user's api permissions
* updated .gitignore
* fixed leftover merge conflict in .gitignore
* updated org-admin view of users for rails 4.2 compatability
* fiexed a bug where user's api token permissions wouldnt display
* fixed syntax error
* changed guidance_group to guidance_groups for consistancy with api spec
* fix roadmap route
* bugfixing auth for api
* removed token_permission as it was accidentially re-added by a merge
* added gem to allow testing of controllers
* began implimenting testing for projects controller
* fixed auth to reject empty string
* added data structures for testing
* added data structures for testing
* removed old unnecissary data structures from fixtures
* added forgotten view for org-admins giving user's api permissions
* updated .gitignore
* removed old unnecissary data structures from fixtures
* updated .gitignore
* updated org-admin view of users for rails 4.2 compatability
* fiexed a bug where user's api token permissions wouldnt display
* fixed syntax error
* changed guidance_group to guidance_groups for consistancy with api spec
* bugfixing auth for api
* modified schema
* removed admin interface to token_permission, another forgotten side-effect
* removed admin interface to token_permission, another forgotten side-effect
* modified return structure of guidance_groups API to reflect current spec
* removed guidances api endpoint as no longer necissary
* added templates api endpoint
* commit
* commit
* initial commit of untested statistics API
* updated Statistics API and added bugfixes
* added aditional seeds for api token_permission_types
* added docs for stats api, also passing tests
* added fucntionality to give org_admin priveleges through the org_admin interface
* corrected statistics API to handle null dates and filter projects correctly
* addedrestriction that users must be confirmed to be counted by stats api
* added documentation to dmptemplates api controller
* added org_id field to plans metadata as a returned plan can belong to somebody else's organisation
* initial passover of removing magic strings
* added comment to I18n_constant and fixed missing magic string
* fixed the magic strings function
* removed duplicate gem from gemfile
* migrations and routes tests
* changed gem dependancies and fixed syntax bug
* fixed bug where show plans view only displayed first letter of columns
* aliased
* added documentation to organisation, phase, and part of plans
* added documentation to organisation, phase, and part of plans
* added documentation to model for plan
* added documentation to project model
* added documentation to project_group model
* added documentation to remaining models
* fixed admin logout bug
* removed hard-coded references to DCC
* fixed bug in dmptemplate with magicstrings
* dropdown and org language setting
* test
* commit
* migrations and routes tests
* aliased
* dropdown and org language setting
* test
* remove typo
* fixed parentheses bug in api/projects_controller
* fix
* merging
* remove git merge conflicts artifacts
* added gemfile, environments, and an initaliser to allow merge
* fix locales picking
* super_admin area for languages, changes to langauge initializer to fix migrations issue and org language priority in user language picking
* add association between organisation and language
Damodar Sojka
authored
on 12 Aug 2016
Brian Riley
committed
on 12 Aug 2016
|
| 2016-07-22 |

Rails 4.2 (#10)
...
* Migrated codebase from rails 4.0 to 4.2, also removed most of the version specifications from the gem dependencies and ran bundle update
* Commented out api test since it is incomplete and references a missing fixture. Also commented out stubbed performance test because that functionality is no longer a part of rails
* renamed config/environment to config/environments which is what rails is looking for. Commented out the DOCX mime type reference because it is already added by rails. Commented out the belongs_to_and has_many line in models/user because it is already defined by rolify gem
* updated ruby version to 2.1.10 for devise gem
* Added line to have tests auto-run db:migrate
* Ran db:migrate to update the schema since there were some pending migrations preventing travis from running rake
* removed schem_migration line from test_helper as it did not seem to help with the schema migration issue in travis
* Added fb:migrate and db:test:prepare commands to travis file
* replaced deprecated ActiveRecord::Migrator call in old db migration file
* Removed rake db tasks from travis file now that the offending migration script has been fixed
* added rake db:test:prepare back to travis file and added call to run default test task
* Updated find_by_all to the newer and more accepted 'where'
* Updated routes.rb to remove unecessary create and edit route definitions
* Fixed stack too deep error by commenting out circular reference to sections in the version model. Changed deprecated '.find(:all, :order => 'field ASC')' format to '.all.order('field')'
* removed redundant bootstrap file. using bootstrap.min.js going forward. updated css to default align all text to left
* Added js preventDefault to modal popup functions to prevent them from appearing and immediately disappering
* Replaced deprecated link_to_function. the call in the helpers/application.rb should eventually be rethought. We shouldn't be using the onclick function of an html element directly, we should use the jquery approach: .click()
* removed deprecated link_to_object function from helpers/application.rb and added client side js script to add new options to a question.
* Upgraded select2 js file
* Removed all accepts_nested_attributes_for for belongs_to associations because they were creating circular calls in ActiveRecord.
* Fixed add/remove option js
* Fixed i18n calls in erb files that were missing an equal sign (e.g. <% t('value'') %> --> <%= t('value') %> so that the value will appear to the user. Also updated i18n calls from admin.js with 'js.' prefix)
* Removed deprecated uniq_by call on ActiveRecord collection
* Updated textbox and textarea sizes on contact_us form. added a route for the 'future plans' page
* Added 'self' prefix to dmptemplate references in models/project.rb because of a scoping issue. tweaks to select2 dropdowns on create project page
* Moved i18n calls out of string content in toolbar.js
* Removed outdated i%() array initializers because they now create arrays of symbols instead of strings
* Fixes to the plan settings page
* Fixed issues with settings hash
* Removed some debug statements
* Added the new rails 4.2 byebug gem
* added rails 4 bin
* added rails 4 bin
* tweaks to env and session_store cookie domain
* Updated routes to make lock/unlock paths use json by default
* updated routes for lock/unlock section on plan form
* fixed issue with lock/unlock using .json extension in ajax call. fixed unknown i18n references in plans.js
* Fixed issue with location of web-console in the Gemfile.
Brian Riley
authored
on 22 Jul 2016
GitHub
committed
on 22 Jul 2016
|
| 2016-06-03 |
DMPonline4 - RAILS 4.0 (#4)
...
Merging the initial DMPOnline4 codebase into Roadmap
DMPonline4, this code was designed and implemented by the Digital
Curation Centre (DCC)
DMPonline runs in Ruby 2.1 and Rails 4.0, there is a mysql database.
Marta Ribeiro
authored
on 3 Jun 2016
Brian Riley
committed
on 3 Jun 2016
|