gitlab-org--gitlab-foss/spec/features
Fatih Acet f879319840 Merge branch 'add-todo-toggle-event' into 'master'
Add todo toggle event

## What does this MR do?
Adds a custom jQuery event `todo:toggle` to detect when a new todo is added so that the respective todo counters (header navigation and sidebar) can update as needed

## Are there points in the code the reviewer needs to double check?

*  I wasn't sure whether each `spec` should be modularized based on the html templates or whether they should be separated based on function. There are some crossovers between the `dashboard_spec` and the `header_spec`.
* The naming conventions for `sidebar` and `right_sidebar` were a little confusing since they were named the opposite in their `specs`. I made a few assumptions and named a few files based on what I thought they should be named. I'd be happy to change it to something else though 😄  

## Why was this MR needed?
This resolves an existing issue where the todo count on the sidebar would not update (until refresh) and refactors the existing methods that are used to update the todo counters (header navigation and sidebar)

## What are the relevant issue numbers?
Closes #20140

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5724
2016-10-27 13:28:40 +00:00
..
admin
atom Add RTL support to markdown renderer 2016-10-16 17:47:48 +03:30
boards Create new list dropdown stays open after new list 2016-10-27 12:01:05 +01:00
dashboard Differentiate the expire from leave event 2016-10-20 00:26:45 +00:00
groups/members Tests update 2016-09-13 08:44:59 +01:00
issuables
issues Escape quotes in gl_dropdown values to prevent exceptions 2016-10-26 12:09:04 +01:00
merge_requests Escape quotes in gl_dropdown values to prevent exceptions 2016-10-26 12:09:04 +01:00
profiles Convert "SSH Keys" Spinach features to RSpec 2016-10-03 11:00:05 +02:00
projects Removed delete branch tooltip and tests 2016-10-26 13:10:14 -05:00
protected_branches
security Make guests unable to view MRs 2016-10-11 16:51:26 +03:00
tags
todos Add todo toggle event 2016-10-26 16:28:56 -05:00
users Fix snippets pagination 2016-09-26 12:42:12 +02:00
calendar_spec.rb Changed zero padded days to no padded days in date_format 2016-10-01 12:18:44 -05:00
ci_lint_spec.rb
commits_spec.rb
compare_spec.rb Fix broken rspec in compare text 2016-10-16 21:09:38 -07:00
container_registry_spec.rb
dashboard_issues_spec.rb Small improvements thanks to Robert's feedback 2016-09-30 12:02:54 +02:00
dashboard_milestones_spec.rb
environments_spec.rb Merge two scenarios into one 2016-10-18 16:46:19 +02:00
expand_collapse_diffs_spec.rb Merge branch '21369-make-it-clearer-that-diffs-can-be-collapsed' into 'master' 2016-10-01 10:59:32 +00:00
gitlab_flavored_markdown_spec.rb
groups_spec.rb Move edit group scenario to rspec and refactor groups_spec 2016-10-14 14:51:59 +03:00
help_pages_spec.rb
issues_spec.rb Merge branch 'master' into revert-c676283b 2016-10-03 09:10:20 +01:00
login_spec.rb Fix rubocop build error 2016-10-24 21:44:24 -04:00
markdown_spec.rb
milestone_spec.rb Ensure validation messages are shown within the milestone form 2016-09-19 09:29:12 +01:00
notes_on_merge_requests_spec.rb Adds v-pre to code blocks in comments 2016-10-04 14:06:44 +01:00
participants_autocomplete_spec.rb
password_reset_spec.rb
profile_spec.rb
projects_spec.rb Allow Member.add_user to handle access requesters 2016-09-28 09:43:00 +02:00
protected_branches_spec.rb
runners_spec.rb Fix grammar and typos in Runners pages 2016-09-28 10:03:59 +02:00
search_spec.rb Fixed search dropdown labels not displaying 2016-09-12 09:00:57 +01:00
signup_spec.rb Make UX upgrades to SignIn/Register views. 2016-10-15 08:27:21 +02:00
snippets_spec.rb Fix snippets pagination 2016-09-26 12:42:12 +02:00
task_lists_spec.rb
triggers_spec.rb Fix failing rspec test for triggers 2016-09-06 11:52:01 +02:00
u2f_spec.rb Make UX upgrades to SignIn/Register views. 2016-10-15 08:27:21 +02:00
unsubscribe_links_spec.rb Wrap List-Unsubscribe link in angle brackets 2016-09-26 16:01:17 +01:00
users_spec.rb Merge branch 'dz-rename-user-routes' into 'master' 2016-10-17 20:47:46 +02:00
variables_spec.rb