Commit Graph

55 Commits

Author SHA1 Message Date
Valery Sizov 387c4b2c21 Backport of multiple_assignees_feature [ci skip] 2017-05-04 17:11:53 +03:00
Kushal Pandya d586b6cced Add ES lint support to identify poorly written Promises 2017-04-20 11:11:51 +00:00
Simon Knox 67eefe7eac don't show loading spinners for server-rendered sidebar fields 2017-03-18 11:36:05 +11:00
Phil Hughes 236d6595ed Removed previous filter code 2017-03-08 14:53:18 +00:00
Mike Greiling 0f31c5a92b replace implicit this == window with explicit binding 2017-02-17 16:58:32 -06:00
Phil Hughes e4d1e1437d Added all filters 2017-02-03 18:03:40 +00:00
Fatih Acet 7ce79f3167 Merge branch 'label-select-toggle' into 'master'
Fixed label select toggle not updating correctly

Closes #26119

See merge request !8601
2017-01-25 19:54:41 +00:00
Mike Greiling ccada28f30 resolve all padded-blocks eslint violations 2017-01-18 17:16:41 -06:00
Mike Greiling e7b5945c59 resolve all semi and no-extra-semi eslint violations 2017-01-18 17:15:27 -06:00
Phil Hughes 2c45a73c8e Fixed label select toggle not updating correctly
Closes #26119
2017-01-16 16:56:53 -05:00
Alfredo Sumaran 958a499a7f Fix eslint errors 2016-12-15 18:02:45 -05:00
Fatih Acet b01a830afe Merge branch '24877-bulk-edit-only-keeps-common-labels-when-searching' into 'master'
Improve bulk assignment

This MR improves current implementation of Label dropdown when used for bulk assignment on issuable pages (/:namespace/:project/issues, /:namespace/:project/merge_requests)

Previously this dropdown relied on `<input>` tags to get its active items and also to calculate items with indeterminate state.

Relying on `<input>` tags is not enough when we want to set/get multiple states on a dropdown.

For this case we want to get/set:

- Marked items 
- Unmarked items that were initially marked
- Unmarked items that were initially indeterminate
- Items with indeterminate state.

This MR makes the Label dropdown to save its own state as `data` so it will be easy to get and set whatever state we want no matter if the dropdown is filtering which is the issue that I initially wanted to solve as you can see in the following gif.

**Before** 
![2016-12-07_11.44.48](/uploads/cb697161b8b39cdee72fdbb95a531100/2016-12-07_11.44.48.gif)

**After**
![2016-12-07_11.32.43](/uploads/338255a302de0dd1367474f33232d2a3/2016-12-07_11.32.43.gif)

As you can see in the first gif the `bug` label is removed from the selected issues but the `enhancement` label should set but the `critical` should be kept. This is fixed on the next gif.

Fixes #24877

See merge request !7765
2016-12-15 21:03:33 +00:00
Alfredo Sumaran 51b2ffaf7e Address feedback 2016-12-14 10:05:00 -05:00
Alfredo Sumaran 262fc28a7d Improve issuable's bulk assignment implementation
This fixes the case when the user wants to add a label. The user has to use the dropdown’s filter input to look for a label and click it in order to see the bug.

Step to reproduce

- Select at least two issues, one label should be present in all issues, other label should be present in at least one.

- On the label dropdown: Deselect label that is present in all issues, look for another issue using the filter input and click it.

- Click on `Update issues`

Before: Unmarked label were kept on selected issues.
Now: Unmarked label is removed from selected issues
2016-12-14 10:05:00 -05:00
Mike Greiling 8e0e902b13 resolve all instances of no-undef eslint rule violations 2016-12-14 02:11:13 -06:00
Luke "Jared" Bennett c145413d1a
Remove JSX/React eslint plugins.
Change airbnb eslint config package to `eslint-config-airbnb-base` and update plugins.

Change `airbnb` to `airbnb-base` for .eslintrc `extends` value.

Added changelog entry

Made sure all plugins and envs are set

Corrected new failing specs
2016-11-29 16:15:47 +00:00
Luke "Jared" Bennett 7cefaea876
explicitly disable eslint inline 2016-11-15 16:30:34 +00:00
Fatih Acet dd5e46ab69 Merge branch 'eslint' into 'master'
Add ESLint

## What does this MR do?

- create `package.json`
- add ESLint dependencies to `package.json`
- add JavaScript linting to CI
- add Rake task `lint:javascript`as alias for `eslint` (which itself is an alias for `npm run eslint`)

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

Probably not.

## Why was this MR needed?

My hovercraft was full of eels.

## What are the relevant issue numbers?

- https://gitlab.com/gitlab-org/gitlab-ce/issues/13224#note_12537431
- https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5006#note_13255658


See merge request !5445
2016-10-26 16:31:08 +00:00
winniehell 02f94cf038 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
Phil Hughes 29645f06e7 Hides/shows the boards sidebar
Rather than constructing & then deconstructing, we know just hide & show
the sidebar. This is done so we dont' have a memory leak on the frontend
with objects getting created.
2016-10-20 08:54:33 +01:00
Phil Hughes fcf0a4a12d Merge branch 'master' into issue-board-sidebar 2016-10-19 22:33:34 +01:00
Phil Hughes f1350a5c82 Merge branch 'master' into issue-board-sidebar 2016-10-19 08:44:55 +01:00
Luke Bennett 4e028d333b
Return the title for id of 'No label' 2016-10-19 04:55:26 +01:00
Phil Hughes 25c82c6faf Updated JS to work with issue index & show 2016-10-12 17:43:20 +01:00
Phil Hughes 306e55261e Fixed filter specs 2016-10-07 11:12:02 +01:00
Phil Hughes e6fa8a3d10 Fixed sidebar dropdowns to work with Vue 2016-10-07 09:15:46 +01:00
Phil Hughes 6b3e3aeb9e Sidebar details update when changing
Need to get working the subscription
Styling updates
2016-10-07 09:14:55 +01:00
Rémy Coutable f90b5d5d43
Fix CHANGELOG and wrong conflict resolution
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-06 10:11:24 +02:00
Rémy Coutable d51bb99a7e
Merge commit 'dev/security' into 'master'
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-06 08:33:11 +02:00
Fatih Acet 1956bd5e9e Add position menu above ability to glDropdown. 2016-10-04 23:47:55 +03:00
Fatih Acet 20408363ee Fix dropdown title when No Label selected. 2016-10-04 17:52:35 +03:00
Phil Hughes cc88fa4d5b Merge branch 'master' into revert-c676283b 2016-10-03 09:10:20 +01:00
Phil Hughes b13213e6be Send ajax request for label update only if they are changed (#19472 !5071) 2016-09-27 10:23:15 -05:00
Fatih Acet 3820ca5876 Merge branch 'issue-boards-label-filter-fix' into 'master'
Fixed issue board label filtering not removing labels

## What does this MR do?

When trying to remove a label filter it would actually add it instead making it impossible to remove the label filter without modifying the URL. This fixes that by correctly removing the label from the filter.

## What are the relevant issue numbers?

Closes #21417

See merge request !6208
2016-09-27 14:08:45 +00:00
Nick Thomas af5e54f9ce Convert label creation from API to controller endpoint 2016-09-23 12:21:47 +01:00
Luke Bennett 32979803f2
Replace single quotes with escaped single quotes and write spec to test multiple lable selection over a page load
Added spec for removing label with space and single quote

Fixed removing label with single quote
2016-09-14 12:15:01 +01:00
Jared Deckard 7f6474b269 Restore comments lost when converting CoffeeScript to JavaScript 2016-09-08 12:23:12 -05:00
Phil Hughes f849ef792a Fixed issue board label filtering not removing labels
Closes #21417
2016-09-07 09:14:30 +01:00
Phil Hughes d2e2da4cb4 Merge branch 'master' into revert-c676283b 2016-09-02 10:08:22 +01:00
Phil Hughes 97d6f5b6de Fixed escaping issue with labels filter
Closes #15552
2016-08-31 11:41:16 +01:00
Phil Hughes 2d38d35b0d Fixed label toggle text 2016-08-30 12:10:05 +01:00
Phil Hughes 7418873b41 Merge branch 'master' into revert-c676283b 2016-08-30 11:21:29 +01:00
Phil Hughes bcf304b04a Changed tests to use JS tests 2016-08-19 15:27:18 +01:00
Phil Hughes 87284321ff Addressed feedback 2016-08-19 15:27:18 +01:00
Phil Hughes 696740844b Made logic simpler by moving away from underscorejs 2016-08-19 15:27:18 +01:00
Phil Hughes 931274baab Added tooltip to label value in collapsed sidebar
Closes #19398
2016-08-19 15:27:18 +01:00
Phil Hughes aa05b5ed8b Moved board store to namespaced gl object 2016-08-17 17:17:39 +01:00
Phil Hughes 917a51403f Fixed bug with label filter dropdown not removing the correct label 2016-08-17 17:17:39 +01:00
Phil Hughes d1a2be9f36 Created a class to share functionality of creating new label from dropdown 2016-08-17 17:17:39 +01:00
Phil Hughes df7ebcba6e Fixed filter by any label 2016-08-17 17:12:47 +01:00