houston-core 0.5.0.beta1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +0 -2
- data/.gitignore +3 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +63 -62
- data/README.md +13 -121
- data/app/adapters/houston/adapters/ci_server/errors.rb +4 -4
- data/app/adapters/houston/adapters/ci_server/jenkins_adapter/job.rb +50 -50
- data/app/adapters/houston/adapters/ci_server/jenkins_adapter.rb +4 -4
- data/app/adapters/houston/adapters/ci_server/none_adapter/job.rb +5 -5
- data/app/adapters/houston/adapters/ci_server/none_adapter.rb +4 -4
- data/app/adapters/houston/adapters/deployment/engineyard.rb +20 -20
- data/app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb +14 -14
- data/app/adapters/houston/adapters/error_tracker/errbit_adapter/connection.rb +41 -41
- data/app/adapters/houston/adapters/error_tracker/errbit_adapter/notice.rb +6 -6
- data/app/adapters/houston/adapters/error_tracker/errbit_adapter/problem.rb +25 -25
- data/app/adapters/houston/adapters/error_tracker/errbit_adapter.rb +20 -20
- data/app/adapters/houston/adapters/error_tracker/none_adapter.rb +8 -8
- data/app/adapters/houston/adapters/error_tracker/null_app.rb +13 -13
- data/app/adapters/houston/adapters/ticket_tracker/errors.rb +5 -5
- data/app/adapters/houston/adapters/ticket_tracker/github_adapter/connection.rb +41 -41
- data/app/adapters/houston/adapters/ticket_tracker/github_adapter/issue.rb +22 -22
- data/app/adapters/houston/adapters/ticket_tracker/github_adapter.rb +7 -7
- data/app/adapters/houston/adapters/ticket_tracker/houston_adapter/connection.rb +13 -13
- data/app/adapters/houston/adapters/ticket_tracker/houston_adapter/ticket.rb +15 -15
- data/app/adapters/houston/adapters/ticket_tracker/houston_adapter.rb +4 -4
- data/app/adapters/houston/adapters/ticket_tracker/none_adapter.rb +4 -4
- data/app/adapters/houston/adapters/ticket_tracker/null_connection.rb +13 -13
- data/app/adapters/houston/adapters/ticket_tracker/null_ticket.rb +19 -19
- data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/connection.rb +54 -54
- data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb +10 -10
- data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/ticket.rb +59 -59
- data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter.rb +9 -9
- data/app/adapters/houston/adapters/version_control/commit.rb +4 -4
- data/app/adapters/houston/adapters/version_control/errors.rb +9 -9
- data/app/adapters/houston/adapters/version_control/git_adapter/github_repo.rb +15 -15
- data/app/adapters/houston/adapters/version_control/git_adapter/remote_repo.rb +53 -30
- data/app/adapters/houston/adapters/version_control/git_adapter/repo.rb +60 -55
- data/app/adapters/houston/adapters/version_control/git_adapter.rb +22 -22
- data/app/adapters/houston/adapters/version_control/none_adapter.rb +4 -4
- data/app/adapters/houston/adapters/version_control/null_commit.rb +4 -4
- data/app/adapters/houston/adapters/version_control/null_repo.rb +18 -18
- data/app/adapters/houston/adapters.rb +10 -10
- data/app/assets/javascripts/app/boot.coffee +5 -5
- data/app/assets/javascripts/app/infinite_scroll.coffee +6 -6
- data/app/assets/javascripts/app/models/commit.coffee +1 -1
- data/app/assets/javascripts/app/models/release.coffee +1 -1
- data/app/assets/javascripts/app/models/task.coffee +1 -1
- data/app/assets/javascripts/app/models/tester.coffee +1 -1
- data/app/assets/javascripts/app/models/testing_note.coffee +2 -2
- data/app/assets/javascripts/app/models/ticket.coffee +24 -24
- data/app/assets/javascripts/app/models/user.coffee +1 -1
- data/app/assets/javascripts/app/releases.coffee +6 -6
- data/app/assets/javascripts/app/stacked_area_graph.coffee +22 -22
- data/app/assets/javascripts/app/stacked_bar_graph.coffee +20 -20
- data/app/assets/javascripts/app/table_row_expander.coffee +10 -10
- data/app/assets/javascripts/app/ticket_tracker_refresh.coffee +19 -19
- data/app/assets/javascripts/app/views/_show_sprint_view.coffee +14 -14
- data/app/assets/javascripts/app/views/_tickets_view.coffee +8 -8
- data/app/assets/javascripts/app/views/all_tickets_view.coffee +1 -2
- data/app/assets/javascripts/app/views/commit_view.coffee +2 -2
- data/app/assets/javascripts/app/views/edit_sprint_view.coffee +36 -36
- data/app/assets/javascripts/app/views/find_or_create_ticket_view.coffee +3 -3
- data/app/assets/javascripts/app/views/keyboard_shortcuts_modal.coffee +14 -14
- data/app/assets/javascripts/app/views/new_ticket_modal.coffee +4 -4
- data/app/assets/javascripts/app/views/new_ticket_view.coffee +34 -34
- data/app/assets/javascripts/app/views/problems_view.coffee +8 -8
- data/app/assets/javascripts/app/views/reports_view.coffee +5 -5
- data/app/assets/javascripts/app/views/testing_note_view.coffee +10 -10
- data/app/assets/javascripts/app/views/testing_report_view.coffee +7 -7
- data/app/assets/javascripts/app/views/testing_ticket_view.coffee +36 -36
- data/app/assets/javascripts/app/views/ticket_modal_view.coffee +5 -5
- data/app/assets/javascripts/core/app.coffee +22 -22
- data/app/assets/javascripts/core/burndown_chart.coffee +21 -21
- data/app/assets/javascripts/core/errors.coffee +2 -2
- data/app/assets/javascripts/core/handlebars_helpers.coffee +6 -6
- data/app/assets/javascripts/core/jquery_extensions.coffee +28 -28
- data/app/assets/javascripts/dashboard/refresher.coffee +4 -4
- data/app/assets/stylesheets/application/ansi.scss +2 -2
- data/app/assets/stylesheets/application/commit.scss +1 -1
- data/app/assets/stylesheets/application/exceptions.scss +3 -3
- data/app/assets/stylesheets/application/find_or_create_ticket.scss +2 -2
- data/app/assets/stylesheets/application/follow_up.scss +2 -2
- data/app/assets/stylesheets/application/forms.scss +2 -2
- data/app/assets/stylesheets/application/freight_train.css.scss +5 -5
- data/app/assets/stylesheets/application/full_screen.scss +2 -2
- data/app/assets/stylesheets/application/infinite_scroll.scss +1 -1
- data/app/assets/stylesheets/application/keyboard_shortcuts.scss +3 -3
- data/app/assets/stylesheets/application/markdown.scss +2 -2
- data/app/assets/stylesheets/application/navigation.scss +15 -15
- data/app/assets/stylesheets/application/new_ticket_view.scss +16 -16
- data/app/assets/stylesheets/application/omnibar.scss +6 -6
- data/app/assets/stylesheets/application/project_banner_buttons.scss +6 -6
- data/app/assets/stylesheets/application/project_tiles.scss +2 -2
- data/app/assets/stylesheets/application/projects.css.scss +3 -3
- data/app/assets/stylesheets/application/pull_requests.scss +6 -6
- data/app/assets/stylesheets/application/queue.scss +2 -2
- data/app/assets/stylesheets/application/release_form.scss +10 -10
- data/app/assets/stylesheets/application/releases.scss +32 -39
- data/app/assets/stylesheets/application/sortable_table.scss +6 -6
- data/app/assets/stylesheets/application/sprint.scss +6 -6
- data/app/assets/stylesheets/application/tables.scss +6 -6
- data/app/assets/stylesheets/application/test_run.scss +16 -16
- data/app/assets/stylesheets/application/ticket.scss +13 -13
- data/app/assets/stylesheets/application/ticket_modal.scss +19 -19
- data/app/assets/stylesheets/application/tickets.scss +2 -2
- data/app/assets/stylesheets/application/timeline.scss +30 -30
- data/app/assets/stylesheets/application/tips.scss +1 -1
- data/app/assets/stylesheets/application/typeahead.scss +4 -4
- data/app/assets/stylesheets/application/uploading.scss +13 -13
- data/app/assets/stylesheets/application/welcome.scss +3 -3
- data/app/assets/stylesheets/core/burndown_chart.scss +11 -11
- data/app/assets/stylesheets/core/misc.scss +8 -8
- data/app/assets/stylesheets/core/overrides.scss +2 -2
- data/app/assets/stylesheets/core/scores.scss +26 -26
- data/app/assets/stylesheets/dashboard/dashboard.scss +16 -16
- data/app/assets/stylesheets/print.css.scss +3 -3
- data/app/concerns/commit_synchronizer.rb +24 -24
- data/app/concerns/feature_state.rb +7 -7
- data/app/concerns/feature_support.rb +4 -4
- data/app/concerns/historical_weekly_stats.rb +4 -4
- data/app/concerns/milestone_synchronizer.rb +14 -14
- data/app/concerns/nosync.rb +4 -4
- data/app/concerns/project_adapter.rb +22 -22
- data/app/concerns/retirement.rb +7 -7
- data/app/concerns/ticket_synchronizer.rb +31 -31
- data/app/concerns/unique_add.rb +2 -2
- data/app/controllers/api/v1/sprint_tasks_controller.rb +19 -19
- data/app/controllers/api/v1/ticket_tasks_controller.rb +14 -14
- data/app/controllers/application_controller.rb +46 -40
- data/app/controllers/commits_controller.rb +10 -10
- data/app/controllers/deploys_controller.rb +11 -11
- data/app/controllers/home_controller.rb +4 -4
- data/app/controllers/jobs_controller.rb +3 -3
- data/app/controllers/oauth_consumers_controller.rb +1 -1
- data/app/controllers/omnibar_controller.rb +6 -6
- data/app/controllers/project_exceptions_controller.rb +11 -11
- data/app/controllers/project_hooks_controller.rb +7 -7
- data/app/controllers/project_options_controller.rb +8 -8
- data/app/controllers/project_pretickets_controller.rb +6 -6
- data/app/controllers/project_roles_controller.rb +7 -7
- data/app/controllers/project_tickets_controller.rb +28 -28
- data/app/controllers/project_tickets_sync_controller.rb +8 -8
- data/app/controllers/projects_controller.rb +29 -29
- data/app/controllers/releases_controller.rb +25 -25
- data/app/controllers/reports_controller.rb +36 -36
- data/app/controllers/sessions_controller.rb +2 -2
- data/app/controllers/settings_controller.rb +3 -3
- data/app/controllers/sprint_task_locks_controller.rb +11 -11
- data/app/controllers/sprints_controller.rb +25 -25
- data/app/controllers/tasks_controller.rb +10 -10
- data/app/controllers/test_runs_controller.rb +8 -8
- data/app/controllers/tester_bar_controller.rb +2 -2
- data/app/controllers/testing_notes_controller.rb +15 -15
- data/app/controllers/testing_report_controller.rb +14 -14
- data/app/controllers/tickets_controller.rb +9 -9
- data/app/controllers/uploads_controller.rb +9 -9
- data/app/controllers/user_credentials_controller.rb +4 -4
- data/app/controllers/user_options_controller.rb +6 -6
- data/app/controllers/users_controller.rb +34 -34
- data/app/controllers/welcome_controller.rb +6 -6
- data/app/helpers/ansi_helper.rb +4 -4
- data/app/helpers/application_helper.rb +26 -26
- data/app/helpers/avatar_helper.rb +12 -12
- data/app/helpers/backtrace_helper.rb +2 -2
- data/app/helpers/breadcrumbs_helper.rb +9 -9
- data/app/helpers/commit_helper.rb +16 -12
- data/app/helpers/demo_helper.rb +4 -4
- data/app/helpers/email_helper.rb +3 -3
- data/app/helpers/emoji_helper.rb +1 -1
- data/app/helpers/excel_helpers.rb +2 -2
- data/app/helpers/exposure_helper.rb +3 -3
- data/app/helpers/flash_message_helper.rb +6 -6
- data/app/helpers/maintenance_light_helper.rb +3 -3
- data/app/helpers/markdown_helper.rb +3 -3
- data/app/helpers/navigation_helper.rb +12 -12
- data/app/helpers/project_helper.rb +5 -5
- data/app/helpers/release_helper.rb +9 -9
- data/app/helpers/score_card_helper.rb +16 -16
- data/app/helpers/sprint_helper.rb +2 -2
- data/app/helpers/static_chart_helper.rb +2 -2
- data/app/helpers/test_run_helper.rb +6 -6
- data/app/helpers/ticket_helper.rb +14 -14
- data/app/helpers/timeline_helper.rb +5 -5
- data/app/helpers/url_helper.rb +26 -26
- data/app/helpers/user_helper.rb +6 -6
- data/app/helpers/version_helper.rb +4 -4
- data/app/interactors/test_run_comparer.rb +9 -9
- data/app/interactors/ticket_report.rb +7 -7
- data/app/jobs/sync_all_tickets_job.rb +13 -13
- data/app/jobs/sync_commits_job.rb +3 -3
- data/app/jobs/sync_project_tickets_job.rb +9 -9
- data/app/mailers/deploy_notification.rb +9 -9
- data/app/mailers/project_notification.rb +29 -29
- data/app/mailers/view_mailer.rb +20 -38
- data/app/models/ability.rb +21 -21
- data/app/models/activity_feed.rb +25 -25
- data/app/models/antecedent.rb +3 -3
- data/app/models/code_climate/coverage_report.rb +25 -25
- data/app/models/commit.rb +77 -82
- data/app/models/consumer_token.rb +2 -2
- data/app/models/deploy.rb +31 -27
- data/app/models/environment.rb +12 -12
- data/app/models/github/commit_status_report.rb +16 -16
- data/app/models/github/pull_request.rb +35 -12
- data/app/models/github/pull_request_event.rb +6 -5
- data/app/models/github_token.rb +2 -2
- data/app/models/historical_head.rb +2 -2
- data/app/models/key_dependency.rb +17 -17
- data/app/models/maintenance_light.rb +3 -3
- data/app/models/measurement.rb +22 -22
- data/app/models/menu_item.rb +5 -5
- data/app/models/menu_item_divider.rb +1 -1
- data/app/models/milestone.rb +27 -27
- data/app/models/output_stream.rb +4 -4
- data/app/models/post_receive_payload.rb +7 -7
- data/app/models/project.rb +93 -89
- data/app/models/project_dependencies.rb +9 -9
- data/app/models/project_dependency.rb +33 -33
- data/app/models/project_menu_item.rb +3 -3
- data/app/models/release.rb +60 -60
- data/app/models/release_change.rb +18 -18
- data/app/models/role.rb +15 -15
- data/app/models/rubygems/gem.rb +21 -21
- data/app/models/run_tests_on_post_receive.rb +36 -36
- data/app/models/setting.rb +3 -3
- data/app/models/settings.rb +8 -8
- data/app/models/source_file_coverage.rb +2 -2
- data/app/models/sprint.rb +19 -19
- data/app/models/sprint_report.rb +7 -7
- data/app/models/sprint_task.rb +8 -8
- data/app/models/static_chart/area.rb +19 -19
- data/app/models/static_chart.rb +35 -35
- data/app/models/task.rb +64 -64
- data/app/models/test_error.rb +2 -2
- data/app/models/test_result.rb +7 -0
- data/app/models/test_run.rb +75 -79
- data/app/models/test_run_statistics.rb +18 -19
- data/app/models/testing_note.rb +19 -19
- data/app/models/ticket.rb +104 -104
- data/app/models/ticket_antecedent.rb +11 -11
- data/app/models/ticket_comment.rb +6 -6
- data/app/models/ticket_committer.rb +3 -3
- data/app/models/ticket_tag.rb +6 -6
- data/app/models/user.rb +44 -44
- data/app/models/user_credentials.rb +11 -11
- data/app/models/value_statement.rb +3 -3
- data/app/presenters/commit_presenter.rb +6 -6
- data/app/presenters/one_or_many.rb +4 -4
- data/app/presenters/problem_presenter.rb +8 -8
- data/app/presenters/release_presenter.rb +4 -4
- data/app/presenters/sprint_task_presenter.rb +9 -9
- data/app/presenters/task_presenter.rb +8 -8
- data/app/presenters/tasks_excel_presenter.rb +6 -6
- data/app/presenters/tester_presenter.rb +3 -3
- data/app/presenters/testing_note_presenter.rb +4 -4
- data/app/presenters/testing_report_ticket_presenter.rb +9 -9
- data/app/presenters/ticket_presenter.rb +4 -4
- data/app/views/deploys/show.html.erb +8 -0
- data/app/views/jobs/show.html.erb +0 -34
- data/app/views/layouts/application.html.erb +1 -0
- data/app/views/layouts/minimal.html.erb +1 -0
- data/app/views/projects/_form.html.erb +0 -7
- data/app/views/releases/_form.html.erb +9 -3
- data/app/views/releases/index.html.erb +1 -1
- data/config/application.rb +1 -2
- data/config/database.yml +3 -3
- data/config/environments/production.rb +1 -1
- data/config/environments/test.rb +1 -1
- data/config/initializers/action_view_field_error_proc.rb +3 -3
- data/config/initializers/constants.rb +3 -3
- data/config/initializers/devise.rb +8 -8
- data/config/initializers/hard_coded_knowledge.rb +3 -3
- data/config/initializers/houston_async.rb +2 -2
- data/config/initializers/houston_report_exception.rb +3 -3
- data/config/initializers/houston_try.rb +3 -3
- data/config/initializers/sync_commits_on_post_receive.rb +0 -5
- data/config/routes.rb +108 -108
- data/db/migrate/20120417175450_devise_create_users.rb +2 -2
- data/db/migrate/20120501230243_add_unfuddle_id_to_tickets.rb +1 -1
- data/db/migrate/20120504143615_link_tickets_and_releases.rb +3 -3
- data/db/migrate/20120626150333_add_last_release_at_to_tickets.rb +2 -2
- data/db/migrate/20120626151320_link_tickets_and_commits.rb +2 -2
- data/db/migrate/20120626152020_add_committer_email_to_commits.rb +2 -2
- data/db/migrate/20120715230922_create_user_notifications.rb +3 -3
- data/db/migrate/20120716010743_add_user_to_releases.rb +3 -3
- data/db/migrate/20120726231754_link_projects_and_maintainers.rb +2 -2
- data/db/migrate/20120826022643_add_authentication_token_to_users.rb +2 -2
- data/db/migrate/20120920023251_add_administrator_to_users.rb +3 -3
- data/db/migrate/20121026014457_split_users_name_into_first_and_last.rb +2 -2
- data/db/migrate/20121027160548_create_deploys.rb +1 -1
- data/db/migrate/20121222170917_add_version_control_adapter_to_projects.rb +2 -2
- data/db/migrate/20121222223635_add_ticket_tracking_adapter_to_projects.rb +2 -2
- data/db/migrate/20121224212623_rename_environments.rb +3 -3
- data/db/migrate/20121225175106_replace_environment_id_with_environment_name.rb +8 -8
- data/db/migrate/20121230174234_create_test_runs.rb +3 -3
- data/db/migrate/20130119203853_remove_cached_queries_from_projects.rb +1 -1
- data/db/migrate/20130119204608_add_extended_attributes_to_tickets.rb +10 -10
- data/db/migrate/20130120182026_create_ticket_prerequisites.rb +2 -2
- data/db/migrate/20130312224911_create_errors.rb +1 -1
- data/db/migrate/20130407195450_create_roles.rb +2 -2
- data/db/migrate/20130407200624_populate_roles.rb +9 -9
- data/db/migrate/20130407220039_add_project_id_to_testing_notes.rb +6 -6
- data/db/migrate/20130407220937_add_project_id_to_commits.rb +6 -6
- data/db/migrate/20130416020627_add_environments_subscribed_to_to_users.rb +3 -3
- data/db/migrate/20130420174126_add_error_tracker_name_to_projects.rb +2 -2
- data/db/migrate/20130427223925_create_project_quotas.rb +2 -2
- data/db/migrate/20130504014802_add_extended_attributes_to_projects.rb +3 -3
- data/db/migrate/20130504135741_add_antecedents_to_tickets.rb +6 -6
- data/db/migrate/20130505144446_add_tags_to_tickets.rb +1 -1
- data/db/migrate/20130505162039_add_type_to_tickets.rb +1 -1
- data/db/migrate/20130505212838_add_closed_at_to_tickets.rb +1 -1
- data/db/migrate/20130519163615_create_user_credentials.rb +2 -2
- data/db/migrate/20130526024851_give_default_values_for_counts_from_test_runs.rb +2 -2
- data/db/migrate/20130710233849_add_authored_at_to_commits.rb +10 -10
- data/db/migrate/20130711013156_link_commits_and_users.rb +6 -6
- data/db/migrate/20130806143651_link_commits_and_releases.rb +2 -2
- data/db/migrate/20130921141449_create_milestones.rb +3 -3
- data/db/migrate/20131004185618_add_first_release_at_to_tickets.rb +2 -2
- data/db/migrate/20131012152403_create_sprints.rb +3 -3
- data/db/migrate/20131112010815_delete_duplicate_commits.rb +7 -7
- data/db/migrate/20140217160450_add_email_addresses_to_users.rb +3 -3
- data/db/migrate/20140327020121_drop_ticket_prerequisites.rb +1 -1
- data/db/migrate/20140406183224_remove_new_relic_id_from_projects.rb +1 -1
- data/db/migrate/20140406230121_delete_automatically_generated_messages_for_releases.rb +1 -1
- data/db/migrate/20140407010111_drop_sprints_project_id.rb +1 -1
- data/db/migrate/20140418133005_change_ticket_antecedents_to_text_array.rb +1 -1
- data/db/migrate/20140425141946_embed_changes_in_releases.rb +3 -3
- data/db/migrate/20140515174322_create_tasks.rb +3 -3
- data/db/migrate/20140516012049_create_tasks_for_existing_tickets.rb +1 -1
- data/db/migrate/20140517012626_prevent_hstore_fields_from_being_null.rb +2 -2
- data/db/migrate/20140521014652_allow_task_descriptions_to_be_null.rb +1 -1
- data/db/migrate/20140526155845_add_commit_id_to_deploys.rb +5 -5
- data/db/migrate/20140526162645_add_commit_before_id_and_commit_after_id_to_releases.rb +4 -4
- data/db/migrate/20140526180608_associate_remaining_deploys_and_releases.rb +12 -12
- data/db/migrate/20140724231918_create_sprints_tasks.rb +3 -3
- data/db/migrate/20140824194031_add_project_id_to_tasks.rb +1 -1
- data/db/migrate/20140824194526_add_completed_at_to_tasks.rb +3 -3
- data/db/migrate/20140824211249_require_sprints_to_be_unique.rb +1 -1
- data/db/migrate/20140907012329_drop_table_changes.rb +1 -1
- data/db/migrate/20140907013836_drop_table_errors.rb +1 -1
- data/db/migrate/20140921190022_add_checked_out_to_sprints_tasks.rb +2 -2
- data/db/migrate/20140921201441_drop_users_name.rb +1 -1
- data/db/migrate/20140925021043_rename_deploys_commit_to_sha.rb +1 -1
- data/db/migrate/20140929004347_create_historical_heads.rb +4 -4
- data/db/migrate/20141027194819_make_users_environments_subscribed_to_an_array.rb +2 -2
- data/db/migrate/20141226171730_create_measurements.rb +1 -1
- data/db/migrate/20150119154013_drop_unused_fields_from_milestones.rb +1 -1
- data/db/migrate/20150222205616_add_features_to_projects.rb +2 -2
- data/db/migrate/20150323004452_add_deploys_completed_at.rb +1 -1
- data/db/migrate/20150805180939_add_commit_id_to_test_runs.rb +1 -1
- data/db/migrate/20150808161805_create_test_results.rb +1 -1
- data/db/migrate/20150809132417_rename_test_results_regression_to_difference.rb +1 -1
- data/db/migrate/20150927014445_required_pull_requests_to_be_unique_by_project_and_number.rb +13 -0
- data/db/structure.sql +9 -0
- data/houston.gemspec +23 -26
- data/lib/configuration.rb +0 -5
- data/lib/core_ext/duration.rb +4 -4
- data/lib/core_ext/hash.rb +17 -17
- data/lib/houston/version.rb +1 -1
- data/lib/houston_server.rb +6 -6
- data/lib/parallel_enumerable.rb +16 -16
- data/lib/tasks/specific_tests.rake +37 -0
- metadata +91 -107
- data/app/interactors/push_gemfile_to_gemnasium.rb +0 -88
- data/app/models/gemnasium/alert.rb +0 -25
- data/app/views/welcome/_tdl.html.erb +0 -31
- data/config/initializers/houston_tdl.rb +0 -104
@@ -1,28 +1,28 @@
|
|
1
1
|
class window.NewTicketView extends Backbone.View
|
2
|
-
|
2
|
+
|
3
3
|
FEATURE_DESCRIPTION: '''
|
4
4
|
### Make sure that
|
5
|
-
-
|
5
|
+
-
|
6
6
|
'''
|
7
7
|
|
8
8
|
BUG_DESCRIPTION: '''
|
9
9
|
### Steps to Test
|
10
|
-
-
|
10
|
+
-
|
11
11
|
|
12
12
|
### What happens
|
13
|
-
-
|
13
|
+
-
|
14
14
|
|
15
15
|
### What should happen
|
16
|
-
-
|
16
|
+
-
|
17
17
|
'''
|
18
|
-
|
18
|
+
|
19
19
|
# !todo: get these from Houston.config.ticket_types
|
20
20
|
TYPES: ['bug', 'feature', 'chore', 'enhancement']
|
21
|
-
|
21
|
+
|
22
22
|
events:
|
23
23
|
'click #reset_ticket': 'resetNewTicket'
|
24
24
|
'click #create_ticket': 'createNewTicket'
|
25
|
-
|
25
|
+
|
26
26
|
initialize: ->
|
27
27
|
@$el = $('#new_ticket_view')
|
28
28
|
@$el.html HandlebarsTemplates['new_ticket/form']()
|
@@ -36,15 +36,15 @@ class window.NewTicketView extends Backbone.View
|
|
36
36
|
@$summary = $('#ticket_summary')
|
37
37
|
@$summary.val "[#{@options.type}] " if @options.type
|
38
38
|
@lastSearch = ''
|
39
|
-
|
39
|
+
|
40
40
|
if @options.antecedents
|
41
41
|
description = '### Antecedents\n' + (" - #{antecedent}" for antecedent in @options.antecedents).join("\n")
|
42
42
|
$('#ticket_description').val(description)
|
43
43
|
@showNewTicket(animate: false)
|
44
|
-
|
44
|
+
|
45
45
|
Mousetrap.bindScoped '#ticket_summary, #ticket_description', 'mod+enter', (e)=>
|
46
46
|
@$el.find('#create_ticket').click() if @$el.find(':focus').length > 0
|
47
|
-
|
47
|
+
|
48
48
|
render: ->
|
49
49
|
onTicketSummaryChange = _.bind(@onTicketSummaryChange, @)
|
50
50
|
@$summary.keydown (e)=>
|
@@ -59,14 +59,14 @@ class window.NewTicketView extends Backbone.View
|
|
59
59
|
@$summary.change onTicketSummaryChange
|
60
60
|
$('#ticket_description').focus =>
|
61
61
|
@$el.attr('data-mode', 'description')
|
62
|
-
|
62
|
+
|
63
63
|
$('.uploader').supportImages()
|
64
|
-
|
64
|
+
|
65
65
|
view = @
|
66
|
-
|
66
|
+
|
67
67
|
y = /\] *([^:]*)/
|
68
68
|
z = /^([^\]]*)(\]|$)/
|
69
|
-
|
69
|
+
|
70
70
|
@$summary
|
71
71
|
.attr('autocomplete', 'off')
|
72
72
|
.typeahead
|
@@ -74,33 +74,33 @@ class window.NewTicketView extends Backbone.View
|
|
74
74
|
pos = @$element.getCursorPosition()
|
75
75
|
a = query.indexOf(']')
|
76
76
|
b = query.indexOf(':')
|
77
|
-
|
77
|
+
|
78
78
|
if a is -1 or pos <= a
|
79
79
|
@tquery = query.match(z)[1].toLowerCase()
|
80
80
|
@mode = 'type'
|
81
81
|
return view.TAGS
|
82
|
-
|
82
|
+
|
83
83
|
else if a > 0 and (b is -1 or pos <= b)
|
84
84
|
@lquery = query.match(y)[1]
|
85
85
|
@lquery = new RegExp "\\b#{@lquery}", "i"
|
86
86
|
@mode = 'label'
|
87
87
|
return view.LABELS
|
88
|
-
|
88
|
+
|
89
89
|
else if a > 0 and b > 0
|
90
90
|
@mode = 'summary'
|
91
91
|
return []
|
92
|
-
|
92
|
+
|
93
93
|
else
|
94
94
|
@mode = ''
|
95
95
|
return []
|
96
|
-
|
96
|
+
|
97
97
|
updater: (item)->
|
98
98
|
if @mode == 'type'
|
99
99
|
view.autocompleteDescriptionFor(item)
|
100
100
|
@$element.val().replace(/^[^\]]*(\] ?|$)?/, item + ' ')
|
101
101
|
else if @mode == 'label'
|
102
102
|
@$element.val().replace(/\] ?[^:]*(: ?|$)/, '] ' + item + ': ')
|
103
|
-
|
103
|
+
|
104
104
|
matcher: (item)->
|
105
105
|
if @mode == 'type'
|
106
106
|
~item.toLowerCase().indexOf(@tquery)
|
@@ -108,11 +108,11 @@ class window.NewTicketView extends Backbone.View
|
|
108
108
|
@lquery.test(item)
|
109
109
|
else
|
110
110
|
false
|
111
|
-
|
111
|
+
|
112
112
|
$('#ticket_summary').focus().putCursorAtEnd()
|
113
113
|
@onTicketSummaryChange()
|
114
|
-
|
115
|
-
|
114
|
+
|
115
|
+
|
116
116
|
onTicketSummaryChange: ->
|
117
117
|
return unless @$summary.is(':focus')
|
118
118
|
summary = @$summary.val()
|
@@ -129,18 +129,18 @@ class window.NewTicketView extends Backbone.View
|
|
129
129
|
[_, type, summary] = md
|
130
130
|
@nextSearch = summary
|
131
131
|
@updateSuggestions()
|
132
|
-
|
132
|
+
|
133
133
|
updateSuggestions: ->
|
134
134
|
unless @lastSearch is @nextSearch
|
135
135
|
@lastSearch = @nextSearch
|
136
136
|
results = @tickets.search(@nextSearch)
|
137
137
|
list = (@renderSuggestion(ticket.toJSON()) for ticket in results)
|
138
138
|
@$suggestions.empty().append list
|
139
|
-
|
140
139
|
|
141
|
-
|
142
|
-
|
143
|
-
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
144
|
resetNewTicket: (e)->
|
145
145
|
e?.preventDefault()
|
146
146
|
@$summary.val ''
|
@@ -149,16 +149,16 @@ class window.NewTicketView extends Backbone.View
|
|
149
149
|
@$el.attr('data-mode', 'type')
|
150
150
|
@hideNewTicket()
|
151
151
|
@$summary.focus()
|
152
|
-
|
152
|
+
|
153
153
|
createNewTicket: (e)->
|
154
154
|
e?.preventDefault()
|
155
155
|
attributes = @$el.serializeObject()
|
156
|
-
|
156
|
+
|
157
157
|
@$el.disable()
|
158
|
-
|
158
|
+
|
159
159
|
xhr = $.post "/projects/#{@project.slug}/tickets", attributes
|
160
160
|
xhr.complete => @$el.enable()
|
161
|
-
|
161
|
+
|
162
162
|
xhr.success (ticket)=>
|
163
163
|
@tickets.push(ticket)
|
164
164
|
@resetNewTicket()
|
@@ -166,7 +166,7 @@ class window.NewTicketView extends Backbone.View
|
|
166
166
|
@$el.enable()
|
167
167
|
@options.onCreate(ticket) if @options.onCreate
|
168
168
|
$(document).trigger 'ticket:create', [ticket]
|
169
|
-
|
169
|
+
|
170
170
|
xhr.error (response)=>
|
171
171
|
errors = Errors.fromResponse(response)
|
172
172
|
if errors.missingCredentials or errors.invalidCredentials
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class @ProblemsView extends Backbone.View
|
2
|
-
|
2
|
+
|
3
3
|
initialize: ->
|
4
4
|
@project = @options.project
|
5
5
|
@problems = @options.problems
|
@@ -10,19 +10,19 @@ class @ProblemsView extends Backbone.View
|
|
10
10
|
|
11
11
|
render: ->
|
12
12
|
@refresh()
|
13
|
-
|
13
|
+
|
14
14
|
$('#problems').on 'click', 'tr', _.bind(@toggleCheckbox, @)
|
15
15
|
$('#problems').on 'click', ':checkbox', _.bind(@styleRow, @)
|
16
|
-
|
16
|
+
|
17
17
|
$('#merge_exceptions').click _.bind(@mergeExceptions, @)
|
18
18
|
$('#unmerge_exceptions').click _.bind(@unmergeExceptions, @)
|
19
19
|
$('#delete_exceptions').click _.bind(@deleteExceptions, @)
|
20
|
-
|
20
|
+
|
21
21
|
$('#exceptions table').tablesorter
|
22
22
|
headers:
|
23
23
|
2: {sorter: 'timestamp'}
|
24
24
|
3: {sorter: 'timestamp'}
|
25
|
-
|
25
|
+
|
26
26
|
$('#exceptions').on 'click', '.btn-new-ticket', (e)=>
|
27
27
|
$button = $(e.target)
|
28
28
|
$button.attr('disabled', 'disabled')
|
@@ -42,11 +42,11 @@ class @ProblemsView extends Backbone.View
|
|
42
42
|
problem.ticketUrl = ticket.url
|
43
43
|
problem.ticketNumber = ticket.number
|
44
44
|
@refresh()
|
45
|
-
|
45
|
+
|
46
46
|
refresh: ->
|
47
47
|
$('#problems').html @template(problems: @problems)
|
48
48
|
@updateProblemCount()
|
49
|
-
|
49
|
+
|
50
50
|
updateProblemCount: ->
|
51
51
|
$('#problem_count').html $('.exception:not(.has-ticket)').length
|
52
52
|
|
@@ -93,7 +93,7 @@ class @ProblemsView extends Backbone.View
|
|
93
93
|
|
94
94
|
selectedProblems: ->
|
95
95
|
$('#problems_form').serializeObject()['problems[]'] || []
|
96
|
-
|
96
|
+
|
97
97
|
alert: (button, message)->
|
98
98
|
$(button)
|
99
99
|
.attr('data-content', message)
|
@@ -4,13 +4,13 @@ class @ReportsView extends Backbone.View
|
|
4
4
|
@$el.html '''
|
5
5
|
<h3>Queue Size and Ticket Age</h3>
|
6
6
|
<div id="queue_age" class="graph"></div>
|
7
|
-
|
7
|
+
|
8
8
|
<h3>Cycle Time (days)</h3>
|
9
9
|
<div id="cycle_time" class="graph"></div>
|
10
|
-
|
10
|
+
|
11
11
|
<h3>Time-to-Release (days)</h3>
|
12
12
|
<div id="time_to_release" class="graph"></div>
|
13
|
-
|
13
|
+
|
14
14
|
<h3>Time-to-First-Test (hours)</h3>
|
15
15
|
<div id="time_to_first_test" class="graph"></div>
|
16
16
|
'''
|
@@ -28,14 +28,14 @@ class @ReportsView extends Backbone.View
|
|
28
28
|
.data(json.data)
|
29
29
|
.addLine(json.line)
|
30
30
|
.render()
|
31
|
-
|
31
|
+
|
32
32
|
$.getJSON "/reports/cycle-time#{window.location.search}", (data)->
|
33
33
|
new Houston.StackedAreaGraph()
|
34
34
|
.selector('#cycle_time')
|
35
35
|
.labels(['cycle time'])
|
36
36
|
.data(data)
|
37
37
|
.render()
|
38
|
-
|
38
|
+
|
39
39
|
$.getJSON "/reports/time-to-release#{window.location.search}", (data)->
|
40
40
|
new Houston.StackedAreaGraph()
|
41
41
|
.selector('#time_to_release')
|
@@ -1,19 +1,19 @@
|
|
1
1
|
class window.TestingNoteView extends Backbone.View
|
2
2
|
tagName: 'li'
|
3
3
|
className: 'testing-note'
|
4
|
-
|
4
|
+
|
5
5
|
events:
|
6
6
|
'click .edit-note': 'edit'
|
7
7
|
'click .destroy-note': 'destroy'
|
8
8
|
'click .btn-cancel': 'cancel'
|
9
9
|
'click :radio': 'changeVerdict'
|
10
|
-
|
10
|
+
|
11
11
|
initialize: ->
|
12
12
|
@isInEditMode = false
|
13
13
|
@renderTestingNote = HandlebarsTemplates['testing_notes/show']
|
14
14
|
@renderEditTestingNote = HandlebarsTemplates['testing_notes/edit']
|
15
15
|
$(@el).delegate 'form', 'submit', _.bind(@commit, @)
|
16
|
-
|
16
|
+
|
17
17
|
render: ->
|
18
18
|
$el = $(@el)
|
19
19
|
$el.attr('id', "testing_note_#{@model.get('id')}")
|
@@ -22,10 +22,10 @@ class window.TestingNoteView extends Backbone.View
|
|
22
22
|
$el.attr('class', "testing-note #{@model.get('verdict')}")
|
23
23
|
$el.addClass('by-tester') if @model.get('byTester')
|
24
24
|
@
|
25
|
-
|
25
|
+
|
26
26
|
isEditable: ->
|
27
27
|
@model.get('userId') == window.userId or window.user.get('admin')
|
28
|
-
|
28
|
+
|
29
29
|
edit: (e)->
|
30
30
|
if e
|
31
31
|
e.preventDefault()
|
@@ -35,7 +35,7 @@ class window.TestingNoteView extends Backbone.View
|
|
35
35
|
@render()
|
36
36
|
@trigger('edit:begin', @)
|
37
37
|
@
|
38
|
-
|
38
|
+
|
39
39
|
commit: (e)->
|
40
40
|
if e
|
41
41
|
e.preventDefault()
|
@@ -52,18 +52,18 @@ class window.TestingNoteView extends Backbone.View
|
|
52
52
|
@trigger('edit:commit', @, @model)
|
53
53
|
error: (model, response)=>
|
54
54
|
$form.enable().find('.btn-primary').html('Save')
|
55
|
-
|
55
|
+
|
56
56
|
@model.set(previousAttributes, {silent: true})
|
57
57
|
errors = Errors.fromResponse(response)
|
58
58
|
if errors.missingCredentials or errors.invalidCredentials
|
59
59
|
App.promptForCredentialsTo('Unfuddle')
|
60
60
|
errors.renderToAlert()
|
61
61
|
@
|
62
|
-
|
62
|
+
|
63
63
|
changeVerdict: (e)->
|
64
64
|
verdict = @$el.find(':radio[name="verdict"]:checked').val() || 'none'
|
65
65
|
@$el.attr('class', "testing-note by-tester #{verdict}")
|
66
|
-
|
66
|
+
|
67
67
|
cancel: (e)->
|
68
68
|
if e
|
69
69
|
e.preventDefault()
|
@@ -74,7 +74,7 @@ class window.TestingNoteView extends Backbone.View
|
|
74
74
|
@render()
|
75
75
|
@trigger('edit:cancel', @)
|
76
76
|
@
|
77
|
-
|
77
|
+
|
78
78
|
destroy: (e)->
|
79
79
|
if e
|
80
80
|
e.preventDefault()
|
@@ -1,17 +1,17 @@
|
|
1
1
|
class window.TestingReportView extends Backbone.View
|
2
|
-
|
2
|
+
|
3
3
|
initialize: ->
|
4
4
|
@tickets = @options.tickets
|
5
5
|
@projectsCanCloseTicketsFor = @options.projectsCanCloseTicketsFor
|
6
6
|
@tickets.bind 'reset', _.bind(@render, @)
|
7
7
|
@expander = new TableRowExpander()
|
8
|
-
|
8
|
+
|
9
9
|
# Prevent tablesorter from exhuming buried rows
|
10
10
|
@tickets.bind 'destroy', (ticket)=>
|
11
11
|
$('table.testing-report-table').trigger('update')
|
12
|
-
|
12
|
+
|
13
13
|
@render()
|
14
|
-
|
14
|
+
|
15
15
|
render: ->
|
16
16
|
@$el.empty()
|
17
17
|
views = @tickets.map (ticket)=>
|
@@ -20,10 +20,10 @@ class window.TestingReportView extends Backbone.View
|
|
20
20
|
canClose: _.include(@projectsCanCloseTicketsFor, ticket.get('projectId'))
|
21
21
|
@$el.appendView view
|
22
22
|
view
|
23
|
-
|
23
|
+
|
24
24
|
@expander.setupForViews views
|
25
|
-
|
25
|
+
|
26
26
|
$("[data-tester-id=#{window.userId}]").addClass('current-tester') if window.userId
|
27
|
-
|
27
|
+
|
28
28
|
$('table.testing-report-table').tablesorter
|
29
29
|
headers: {'4': {sorter: 'text'}}
|
@@ -1,30 +1,30 @@
|
|
1
1
|
class window.TestingTicketView extends Backbone.View
|
2
2
|
tagName: 'tr'
|
3
3
|
className: 'ticket'
|
4
|
-
|
4
|
+
|
5
5
|
events:
|
6
6
|
'click .close-button': 'closeTicket'
|
7
7
|
'click .reopen-button': 'reopenTicket'
|
8
8
|
'click a.ticket-set-priority': 'setPriority'
|
9
|
-
|
9
|
+
|
10
10
|
initialize: ->
|
11
11
|
@ticket = @options.ticket
|
12
12
|
@canClose = @options.canClose
|
13
13
|
@testingNotes = @ticket.testingNotes()
|
14
|
-
|
14
|
+
|
15
15
|
@renderTicket = HandlebarsTemplates['testing_report/ticket']
|
16
16
|
@renderTicketDescription = HandlebarsTemplates['testing_report/description']
|
17
17
|
@renderTesterVerdict = HandlebarsTemplates['testing_report/verdict']
|
18
18
|
@renderNewTestingNote = HandlebarsTemplates['testing_notes/new']
|
19
19
|
Handlebars.registerPartial 'testerVerdict', @renderTesterVerdict
|
20
|
-
|
20
|
+
|
21
21
|
@numColumns = window.testers.length + 1
|
22
22
|
@viewInEdit = null
|
23
|
-
|
23
|
+
|
24
24
|
render: ->
|
25
25
|
ticket = @ticket.toJSON()
|
26
26
|
# window.console.log "[ticket] render ##{ticket.number}", ticket
|
27
|
-
|
27
|
+
|
28
28
|
$el = $(@el)
|
29
29
|
$el.attr 'id', "ticket_#{@ticket.id}"
|
30
30
|
ticket.canClose = @canClose
|
@@ -33,32 +33,32 @@ class window.TestingTicketView extends Backbone.View
|
|
33
33
|
ticket.passing = ticket.verdict == 'Passing'
|
34
34
|
ticket.failing = ticket.verdict == 'Failing'
|
35
35
|
$el.html @renderTicket(ticket)
|
36
|
-
|
36
|
+
|
37
37
|
$el.addClass("ticket-priority-#{ticket.priority}")
|
38
38
|
$el.toggleClass('failing', ticket.failing)
|
39
39
|
$el.toggleClass('passing', ticket.passing)
|
40
40
|
$el.find('.close-button').toggleClass('btn-success', ticket.passing)
|
41
41
|
@
|
42
|
-
|
42
|
+
|
43
43
|
renderExpandedRow: ->
|
44
44
|
@$testingNotes = @renderTestingNotes()
|
45
|
-
|
45
|
+
|
46
46
|
renderTestingNotes: ->
|
47
47
|
id = "ticket_#{@ticket.get('id')}_testing_notes"
|
48
48
|
ticket = @ticket.toJSON()
|
49
49
|
ticket.colspan = @numColumns
|
50
50
|
$tr = $ @renderTicketDescription(ticket)
|
51
|
-
|
51
|
+
|
52
52
|
@$el.after $tr
|
53
|
-
|
53
|
+
|
54
54
|
$testingNotes = $tr.find('ol.testing-notes')
|
55
|
-
|
55
|
+
|
56
56
|
@ticket.activityStream().each (item)=>
|
57
57
|
if item.constructor == TestingNote
|
58
58
|
$testingNotes.appendView @viewForTestingNote(item)
|
59
59
|
else if item.constructor == Commit
|
60
60
|
$testingNotes.appendView @viewForCommit(item)
|
61
|
-
|
61
|
+
|
62
62
|
# Render form for adding a testing note
|
63
63
|
if window.userId
|
64
64
|
params =
|
@@ -67,34 +67,34 @@ class window.TestingTicketView extends Backbone.View
|
|
67
67
|
tester: window.user.get('role') == 'Tester'
|
68
68
|
developer: window.user.get('role') == 'Developer'
|
69
69
|
$testingNotes.append @renderNewTestingNote(params)
|
70
|
-
|
70
|
+
|
71
71
|
$tr.find('form#new_testing_note').submit _.bind(@createTestingNote, @)
|
72
72
|
$tr.find('form#new_testing_note :radio[name="verdict"]').click =>
|
73
73
|
verdict = $tr.find('form#new_testing_note :radio[name="verdict"]:checked').val() || 'none'
|
74
74
|
$tr.find('.testing-note.new').attr('class', "testing-note new by-tester #{verdict}")
|
75
|
-
|
75
|
+
|
76
76
|
$tr.find('.btn-post-and-reset').click _.bind(@createTestingNoteAndResetTicket, @)
|
77
|
-
|
77
|
+
|
78
78
|
$testingNotes
|
79
|
-
|
79
|
+
|
80
80
|
beginEditTestingNote: (view)->
|
81
81
|
window.console.log('beginEditTestingNote', view, @viewInEdit, @)
|
82
82
|
@viewInEdit.commit() if @viewInEdit && @viewInEdit != view
|
83
83
|
@viewInEdit = view
|
84
|
-
|
84
|
+
|
85
85
|
cancelEditTestingNote: ->
|
86
86
|
@viewInEdit = null
|
87
|
-
|
87
|
+
|
88
88
|
commitEditTestingNote: (view, testingNote)->
|
89
89
|
@viewInEdit = null
|
90
90
|
@renderTesterVerdicts()
|
91
91
|
@trigger('testing_note:refresh')
|
92
|
-
|
92
|
+
|
93
93
|
destroyTestingNote: (view, testingNote)->
|
94
94
|
@testingNotes.remove(testingNote)
|
95
95
|
$(view.el).remove()
|
96
96
|
@renderTesterVerdicts()
|
97
|
-
|
97
|
+
|
98
98
|
viewForTestingNote: (testingNote)->
|
99
99
|
view = new TestingNoteView(model: testingNote)
|
100
100
|
view.on 'edit:begin', _.bind(@beginEditTestingNote, @)
|
@@ -102,31 +102,31 @@ class window.TestingTicketView extends Backbone.View
|
|
102
102
|
view.on 'edit:commit', _.bind(@commitEditTestingNote, @)
|
103
103
|
view.on 'destroy', _.bind(@destroyTestingNote, @)
|
104
104
|
view
|
105
|
-
|
105
|
+
|
106
106
|
viewForCommit: (commit)->
|
107
107
|
new CommitView(model: commit)
|
108
|
-
|
108
|
+
|
109
109
|
addTestingNote: (testingNote)->
|
110
110
|
@testingNotes.add(testingNote)
|
111
|
-
|
111
|
+
|
112
112
|
return unless @$testingNotes
|
113
113
|
view = @viewForTestingNote(testingNote)
|
114
114
|
view.render()
|
115
115
|
$(view.el).insertBefore(@$testingNotes.find('.testing-note.new')).highlight()
|
116
116
|
@renderTesterVerdicts()
|
117
|
-
|
117
|
+
|
118
118
|
renderTesterVerdicts: ->
|
119
119
|
@render()
|
120
|
-
|
120
|
+
|
121
121
|
createTestingNote: (e)->
|
122
122
|
e.preventDefault()
|
123
123
|
$form = $(e.target).closest('form')
|
124
124
|
params = $form.serializeObject()
|
125
125
|
testingNote = new TestingNote
|
126
126
|
ticketId: @ticket.get('id')
|
127
|
-
|
127
|
+
|
128
128
|
$form.disable()
|
129
|
-
|
129
|
+
|
130
130
|
testingNote.save params,
|
131
131
|
success: (model, response)=>
|
132
132
|
$('.alert').remove()
|
@@ -141,7 +141,7 @@ class window.TestingTicketView extends Backbone.View
|
|
141
141
|
errors.renderToAlert()
|
142
142
|
complete: ->
|
143
143
|
$form.enable()
|
144
|
-
|
144
|
+
|
145
145
|
createTestingNoteAndResetTicket: (e)->
|
146
146
|
params = {lastReleaseAt: new Date()}
|
147
147
|
@ticket.save params,
|
@@ -150,19 +150,19 @@ class window.TestingTicketView extends Backbone.View
|
|
150
150
|
@render()
|
151
151
|
error: (model, response)=>
|
152
152
|
console.log('failed to update lastReleaseAt', arguments)
|
153
|
-
|
153
|
+
|
154
154
|
@createTestingNote(e)
|
155
|
-
|
155
|
+
|
156
156
|
closeTicket: (e)->
|
157
157
|
e.preventDefault()
|
158
158
|
$btn = $(e.target)
|
159
|
-
|
159
|
+
|
160
160
|
@collapse()
|
161
|
-
|
161
|
+
|
162
162
|
if $btn.hasClass('btn-success') || confirm('Are you suuuure? The ticket\'s not passing...')
|
163
163
|
@$el.addClass('deleting')
|
164
164
|
@$el.find('button').attr('disabled', 'disabled')
|
165
|
-
|
165
|
+
|
166
166
|
@ticket.destroy
|
167
167
|
url: "/tickets/#{@ticket.id}/close"
|
168
168
|
wait: true
|
@@ -176,9 +176,9 @@ class window.TestingTicketView extends Backbone.View
|
|
176
176
|
reopenTicket: (e)->
|
177
177
|
e.preventDefault()
|
178
178
|
$btn = $(e.target)
|
179
|
-
|
179
|
+
|
180
180
|
@collapse()
|
181
|
-
|
181
|
+
|
182
182
|
if confirm('Are you sure you want to REOPEN this ticket?')
|
183
183
|
@$el.addClass('deleting')
|
184
184
|
@$el.find('button').attr('disabled', 'disabled')
|
@@ -11,7 +11,7 @@ class @TicketModalView extends Backbone.View
|
|
11
11
|
@template = HandlebarsTemplates['tickets/modal']
|
12
12
|
@renderTicket = HandlebarsTemplates['tickets/show']
|
13
13
|
@$el.attr('tabindex', -1) # so that ESC works
|
14
|
-
|
14
|
+
|
15
15
|
if @ticketNumbers
|
16
16
|
@count = @ticketNumbers.length
|
17
17
|
Mousetrap.bind 'up', (e)=>
|
@@ -46,22 +46,22 @@ class @TicketModalView extends Backbone.View
|
|
46
46
|
ticket: @renderTicket(@ticket.toJSON())
|
47
47
|
index: @index + 1
|
48
48
|
count: @count
|
49
|
-
|
49
|
+
|
50
50
|
$modal = @$el.modal()
|
51
51
|
$('body').addClass('noscroll')
|
52
52
|
$modal.find('[title]').tooltip
|
53
53
|
placement: 'bottom'
|
54
|
-
|
54
|
+
|
55
55
|
@taskView = @renderTaskView? @$el.find('.task-frame')[0], @ticket,
|
56
56
|
prev: !!prev
|
57
57
|
@$el.find('.ticket-body').toggleClass 'show-task-frame', !!@taskView
|
58
58
|
@taskView?.render()
|
59
|
-
|
59
|
+
|
60
60
|
console.log 'edit', @edit, document.getElementById('ticket_view')
|
61
61
|
@editView = new EditTicketView(
|
62
62
|
el: document.getElementById('ticket_view'),
|
63
63
|
ticket: @ticket).render() if @edit
|
64
|
-
|
64
|
+
|
65
65
|
$modal.on 'hidden', (e)->
|
66
66
|
if $modal[0] == e.target
|
67
67
|
$modal.remove()
|