| 2016-09-01 |

rebasing from master (#27)
...
* 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
* installed new gem pundit
* super_admin area for languages, changes to langauge initializer to fix migrations issue and org language priority in user language picking
* added magic string and constant structure for auth
* add association between organisation and language
* proof of concept for pundit
-got the pundit policy file working
-verified that it blocked/allowed users with correct permissions
-fixed a bug in user model where the magic strings had been poorly defined
-
* added pundit authorization to users
* change how questions are displayed in plans to honour formatting
* added pundit to users controller
* added pundit auth to organisations controller
* removed depricated controller
* bugfix to ensure organisations auth working
* added pundit auth to guidances
* added pundit auth to guidance groups
* added pundit auth to dmptemplates controller
* added default redirect to 403 page for unauth
* changed empty? to blank? as it broke seedfile
* updated authorization for all controllers
-changed from passing through records as feature not supported
-changed 403 error to better reflect what's happening
-added scope to many of the indexes
-added organisation-scope to requests from old org-admin roles
-renamed guidance_groups_policy to guidance_group_policy.rb
* 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
* finished implimenting new authorization scheme in dmptemplates
* updated seeds file
* installed new gem pundit
* added magic string and constant structure for auth
* proof of concept for pundit
-got the pundit policy file working
-verified that it blocked/allowed users with correct permissions
-fixed a bug in user model where the magic strings had been poorly defined
-
* added pundit authorization to users
* added pundit to users controller
* added pundit auth to organisations controller
* removed depricated controller
* bugfix to ensure organisations auth working
* added pundit auth to guidances
* added pundit auth to guidance groups
* added pundit auth to dmptemplates controller
* added default redirect to 403 page for unauth
* updated authorization for all controllers
-changed from passing through records as feature not supported
-changed 403 error to better reflect what's happening
-added scope to many of the indexes
-added organisation-scope to requests from old org-admin roles
-renamed guidance_groups_policy to guidance_group_policy.rb
* finished implimenting new authorization scheme in dmptemplates
* updated seeds file
* bugfixes to auth
* explicit bullet style for questions and raw questoin test in form
* implimenting auth changes in the views
* added granting api to orgs permission
* implimenting auth changes in the views
* added granting api to orgs permission
* removed cancancan and rollify
* updated documentation syntax for some models
* removed initalizer for rollify
* ensured users loose roles upon org changing and added depricated tags to roles
* added functionality to port users from old auth structure to new
* updated funciton to ensure no dupelicates
* updated the organisation_id = (new) in user model, was causing seed to fail
* fixed bug in can_<do permission>? functions
* turns out we do user user_org_roles to determine organisation, re-added
* added debug to update_user_permissions
* made changes to update user permissions
* made changed to user.rb
* finished changes to update_user_permissions
* added docs to new function
* added new permissions to api
* fix various issues to do with display of formatting in questions
* implimenting auth changes in the views
* added granting api to orgs permission
* removed cancancan and rollify
* updated documentation syntax for some models
* removed initalizer for rollify
* ensured users loose roles upon org changing and added depricated tags to roles
* added functionality to port users from old auth structure to new
* updated funciton to ensure no dupelicates
* updated the organisation_id = (new) in user model, was causing seed to fail
* fixed bug in can_<do permission>? functions
* turns out we do user user_org_roles to determine organisation, re-added
* added debug to update_user_permissions
* made changes to update user permissions
* overhaul of performance of users admin-index
* fixed a bug where users' api_tokens would display if they had none
* added ability to grant permissions to other users
* implimenting auth changes in the views
* added granting api to orgs permission
* removed cancancan and rollify
* updated documentation syntax for some models
* removed initalizer for rollify
* ensured users loose roles upon org changing and added depricated tags to roles
* added functionality to port users from old auth structure to new
* updated funciton to ensure no dupelicates
* updated the organisation_id = (new) in user model, was causing seed to fail
* fixed bug in can_<do permission>? functions
* turns out we do user user_org_roles to determine organisation, re-added
* added debug to update_user_permissions
* made changes to update user permissions
* made changed to user.rb
* finished changes to update_user_permissions
* added docs to new function
* added new permissions to api
* overhaul of performance of users admin-index
* fixed a bug where users' api_tokens would display if they had none
* added ability to grant permissions to other users
* updated efficiency of update_user_permissions
Brian Riley
authored
on 1 Sep 2016
GitHub
committed
on 1 Sep 2016
|
| 2016-08-22 |

Branding changes (#24)
...
- Removed the description field from organisation
- Added a contact email field to organization
- Added an email address validator
- Updated organisation logo upload so that the system will resize the image to the correct height rather than forcing the user to provide a 100x100 image
- Change how the organisation logo is displayed
* updated organisation edit page's error messages so that errors are placed in the alert text section. Updated wording in locale files to reflect the 160x160 file size.
* removed height and width constraints to logo upload function. Added method that will resize the uploaded logo so that the width is 160px (maintaining aspect ratio) so that the logo fits within the layout properly
* changed logo size to a height of 100 and moved logo so that it appears alongside the DMPRoadmap logo per the current specifications
* Removed description field from organisation. Add contact email to the organisation. Change the way the logo is displayed on the organisation screen.
Brian Riley
authored
on 22 Aug 2016
GitHub
committed
on 22 Aug 2016
|
| 2016-08-12 |
fixed merge conflict in schema.rb
Brian Riley
committed
on 12 Aug 2016
|

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-08-11 |
allow org admin to upload logo through admin UI
Weiwei Shi
committed
on 11 Aug 2016
|
| 2016-08-09 |

Replacing remaining DMPonline references with DMPRoadmap (#15)
...
* 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.
* Updated static page links so that they use localized paths. Added new locized_routes flag to the contact-us initializer and upgraded its gem
* Updated gemfile to specify specific version of contact-us
* Added some bug fixes that were a part of an old 'upgrade-bootstrap' branch but were missed when creating the rails-4-2 pull request. Also replaces the static page urls with localized versions
* removed console.log debug statements
* Organized locale files for dependencies into subdirectories
* Added localization files for the contact-us gem
* Updated load path on locales initializer so that it understands subdirectories. separated en contact-us locale into en-Uk and en-US. updated contact_us page to use gem's built in localization files
* updated en-UK and en-US locale files to make sure that they use their respective locale ids instead of en. Added a branding yaml file for org and app names
* Change name of the application's root module from DMPonline4 to DMPRoadmap
* Began removing branding variables from the locales file and placed them in branding.yml
* finished initial branding of static pages
* Created DMPRoadmap logo and swapped out JISC logo for UC3 logo.
* commented out version specification in Gemfile for the contact-us gem
* Updated the contact_us gem version for localized paths
* updated contact_us gem version
* removed Gemfile.lock, contact_us initializer, and /config/environments files from gitignore
* added initializers that were previsouly ignored by gitignore
* Changed DMPonline references to DMPRoadmap
Brian Riley
authored
on 9 Aug 2016
GitHub
committed
on 9 Aug 2016
|
| 2016-07-28 |

Sam's fix for the API token issue (#11)
...
* 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
Jimmy Angelakos
authored
on 28 Jul 2016
Brian Riley
committed
on 28 Jul 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
|
Merged conflicts
Brian Riley
committed
on 22 Jul 2016
|
merge
DamodarSojka
committed
on 22 Jul 2016
|
| 2016-07-20 |
ensured that users recieve emails about their new tokens upon token being granted
xsrust
committed
on 20 Jul 2016
|
| 2016-07-19 |
language table, dropdown, additional locales
DamodarSojka
committed
on 19 Jul 2016
|
fixed methods for removing and generating user tokens
xsrust
committed
on 19 Jul 2016
|
| 2016-07-18 |
added functions for removing and generating api tokens from the user model
xsrust
committed
on 18 Jul 2016
|
| 2016-07-15 |
localization further work, including dropdown initial work
DamodarSojka
committed
on 15 Jul 2016
|
deleteing user's api tokens if they switch organisations
xsrust
committed
on 15 Jul 2016
|
added yard documentation, bugfixed method, fixed bug where relationship with users was broken
xsrust
committed
on 15 Jul 2016
|
updated yard commits
xsrust
committed
on 15 Jul 2016
|
added yard comments and bugfixed methods
xsrust
committed
on 15 Jul 2016
|
removed token_permissions from models
xsrust
committed
on 15 Jul 2016
|
removed outdated token_permission construct
xsrust
committed
on 15 Jul 2016
|
| 2016-07-12 |
fixed typo
xsrust
committed
on 12 Jul 2016
|
added documentation to guidance_group model
xsrust
committed
on 12 Jul 2016
|
| 2016-07-11 |
changed can_view to can_view? as it returns a bool
xsrust
committed
on 11 Jul 2016
|
re-wrote by_organisation to be more efficient (also to work)
xsrust
committed
on 11 Jul 2016
|
| 2016-07-08 |
added discussion point to dmptemplate
xsrust
committed
on 8 Jul 2016
|
added documentation to guidance model
xsrust
committed
on 8 Jul 2016
|
Added documentation and fixed syntax to dmptemplate model
xsrust
committed
on 8 Jul 2016
|
| 2016-07-06 |
fixed bug where users couldn see their organisations' guidance groups
xsrust
committed
on 6 Jul 2016
|
| 2016-07-05 |
ensured can_view behaves as intended/defined by tests
xsrust
committed
on 5 Jul 2016
|