|
Refactor how Template upgrade customization works (#1856)
* Refactor how Template upgrade customization works - Added position_in_parent to child-records Phase, Section, and Questions - Extracted upgrade_customization! into its own service object wip: rebasing on development wip: pushing to Ghub wip: Template upgrade customisation service working Add migration to update versionable_id for records * Fix bug in org swaps test Test was failing because JS wasn't executing fast enough in test browser * Refactor how locales are set in specs * Fix bug in plan exports caused by git merge The routes weren't merged properly which seems to have caused a regression error * Add documentation for SectionSorter * Update rubyzip and re-instate Bundle Audit This was disabled because it was failing the Travis CI script. Since there wasn't a new version of the rubyzip gem to upgrade to, we couldn't turn the error off. * Add length constraints to versionable_id * Add length constraints to versionable_id * Fix bug in ActsAsSortable module ... I have no idea why those issues haven't popped up before now!? * Fix random bug in I18n * Move versioning ID migration into own rake task |
|---|
|
|
| .travis.yml |
|---|
| Gemfile |
|---|
| Gemfile.lock |
|---|
| app/models/annotation.rb |
|---|
| app/models/concerns/acts_as_sortable.rb |
|---|
| app/models/concerns/versionable_model.rb 0 → 100644 |
|---|
| app/models/phase.rb |
|---|
| app/models/question.rb |
|---|
| app/models/section.rb |
|---|
| app/models/section_sorter.rb 0 → 100644 |
|---|
| app/models/template.rb |
|---|
| app/services/template/upgrade_customization_service.rb 0 → 100644 |
|---|
| app/views/paginable/plans/_publicly_visible.html.erb |
|---|
| db/migrate/20180903104704_add_versionable_id_to_phases_sections_and_questions.rb 0 → 100644 |
|---|
| db/schema.rb |
|---|
| lib/data_cleanup/rules/section/fix_duplicate_number.rb |
|---|
| lib/tasks/migrate.rake |
|---|
| spec/factories/annotations.rb |
|---|
| spec/factories/phases.rb |
|---|
| spec/factories/questions.rb |
|---|
| spec/factories/sections.rb |
|---|
| spec/models/annotation_spec.rb |
|---|
| spec/models/phase_spec.rb |
|---|
| spec/models/question_spec.rb |
|---|
| spec/models/section_sorter_spec.rb 0 → 100644 |
|---|
| spec/models/section_spec.rb |
|---|
| spec/services/template/upgrade_customization_service_spec.rb 0 → 100644 |
|---|
| spec/support/locales.rb |
|---|
| spec/support/mixins/versionable_model_spec.rb 0 → 100644 |
|---|