Commit Graph

1621 Commits

Author SHA1 Message Date
Dmitriy Zaporozhets 15ad1d8815 Use full group name/path in UI dropdowns
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-01-30 17:33:48 +02:00
Z.J. van de Weg 9bd424a3fd Improve performance of triggered chat commands
When the trigger endpoint is called, it has to find the right service
for the given project. However, the old implementation did much more.

For example, it build a list of the missing services on this project.
This whole process took about 750ms _each time_. The current
implementation is expected to perform 10x better, as it only searches in
the current projects services. Given the service has to be configured
anyway, this can be done.
2017-01-30 13:38:36 +01:00
Robert Schilling 4f17fc8087 Grapify last endpoint of the branches API 2017-01-24 20:24:59 +01:00
Rémy Coutable 01fa19edfe Merge branch 'grapify-deploy-keys' into 'master'
Grapify all endpoints of the deploy keys API

See merge request !8721
2017-01-24 12:45:09 +00:00
Robert Speicher a1f959430b Merge branch 'fix-guest-access-posting-to-notes' into 'security'
Prevent users from creating notes on resources they can't access

See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2054
2017-01-23 13:54:52 -05:00
Robert Speicher 3a5df1d8fc Merge branch 'fix-api-mr-permissions' into 'security'
Ensure that only privileged users can access merge requests in the API

See merge request !2053
2017-01-23 13:54:35 -05:00
Robert Speicher 60d1dcb83a Merge branch 'fix-users-deleting-public-deployment-keys' into 'security'
Fix users being able to delete instance public deployment keys

See merge request !2049
2017-01-23 13:41:58 -05:00
Robert Schilling 18417c9ee8 Grapify all endpoints of the deploy keys API 2017-01-23 17:06:57 +01:00
Tiago Botelho 4b6e583ce0 adds test suite 2017-01-22 00:02:29 +00:00
Tiago Botelho cd51af1a99 adds events to services api deserialization 2017-01-22 00:02:29 +00:00
Kamil Trzcinski d8e440c8e0
Fix specs 2017-01-19 23:41:12 +01:00
Kamil Trzciński 046e0bd6e7 Merge branch 'fix/external-status-badge-links' into 'master'
Link external commit status badges to target URLs

Closes #25662

See merge request !8611
2017-01-19 11:37:38 +00:00
Sean McGivern cc1e43da39 Merge branch 'time-tracking-api' into 'master'
Time tracking API

Closes #25861

See merge request !8483
2017-01-18 18:18:13 +00:00
Ruben Davila 0f3c9355c1 Add some API endpoints for time tracking.
New endpoints are:

POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/time_estimate"

POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/reset_time_estimate"

POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/add_spent_time"

POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/reset_spent_time"

GET  :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/time_stats"
2017-01-18 10:48:16 -06:00
Grzegorz Bizon 9ce8aa31f2 Respond with validation errors in commit status API
If validation errors are present, include validation errors in the
commit status API payload, instead of depending on state machine errors
caused by invalid record.
2017-01-18 12:30:01 +01:00
Robert Speicher 55b3ee7439 Merge branch 'sandish/gitlab-ce-update_ret_val' into 'master'
Ensure updating project settings shows a flash message on success

See merge request !8579
2017-01-16 18:28:23 +00:00
Rémy Coutable 7485cec94e
Add a spec and actually display the flash notice
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-16 10:57:15 -05:00
Rémy Coutable daaaf5ef9f Merge branch 'fix-deprecation-warning' into 'master'
Fix a API deprecation warning

See merge request !8587
2017-01-16 05:15:52 +00:00
Rémy Coutable 281f3fcfd5 Merge branch 'dot-in-project-queries' into 'master'
Add a constraint on the query parameter to allow querying for projects with dots in their name.

See merge request !8210
2017-01-16 00:03:01 +00:00
Robert Schilling 1cccb37831 Fix a API deprecation warning 2017-01-16 00:38:25 +01:00
Bruno Melli 322534aa94 Add a constraint on the query parameter to allow querying for projects with dots in their name. 2017-01-14 23:13:39 -07:00
David Eisner 7ef1c6408e API: Implement project issues iid param with IssuesFinder and add tests
- Use IssuesFinder for the /issues API resouce
- Tests for iid filter in project issues API resource
- Tests for No Milestone filter in issues API resources
  The "No Milestone" case was not previously tested, and the `/issues`
  resource did not support the the `milestone` parameter.
- Return issues where all labels match from the issues and project issues
  API resources, like the group issues resource already does. See
  https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6825#note_17474533

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-12 17:51:06 -05:00
Panagiotis Atmatzidis 5c253116ae Adding 'IssueFinder' for 'projects' API endpoint
Current filtering for "/projects/:id/issues" endpoint
returns no results for "No Milestone" query.

This PR introduces fix by copying filtering from "/groups/:id/issues"
which works as expected.
2017-01-12 17:51:06 -05:00
Horacio Sanson f986b4c4e5 Add support for PlantUML diagrams in Asciidoc.
This MR enables rendering of PlantUML diagrams in Asciidoc documents. To add a
PlantUML diagram all we need is to include a plantuml block like:

```
[plantuml, id="myDiagram", width="100px", height="100px"]
--
bob -> alice : ping
alice -> bob : pong
--
```

The plantuml block is substituted by an HTML img element with *src* pointing to
an external PlantUML server.

This MR also add a PlantUML integration section to the Administrator -> Settings
page to configure the PlantUML rendering service and to enable/disable it.

Closes: #17603
2017-01-12 10:04:52 +00:00
Mark Fletcher 72c68b98ae Fix Users API to accept confirm parameter 2017-01-11 14:38:41 +00:00
Regis 6625f479f8 Merge branch 'master' into auto-pipelines-vue 2017-01-09 10:54:02 -07:00
Rémy Coutable a3d9e4fd88 Merge branch '26051-fix-missing-endpoint-route-method' into 'master'
Don't instrument 405 Grape calls

Closes #26051

See merge request !8445
2017-01-09 12:01:57 +00:00
Sean McGivern cb4964d23b Merge branch 'track_last_used_date_of_ssh_keys' into 'master'
Record and show last used date of SSH Keys

See merge request !8113
2017-01-09 10:30:49 +00:00
Rémy Coutable c28b0a539d Don't instrument 405 Grape calls
Fixes #26051.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-09 10:02:52 +01:00
Vincent Wong b6df93a51f Record and show last used date of SSH Keys
Addresses: Issue #13810

1. Adds a last_used_at attribute to the Key table/model
2. Update a key's last_used_at whenever it gets used
3. Display how long ago an ssh key was last used
2017-01-09 04:15:39 +11:00
Rémy Coutable 4c34331084 Merge branch 'fix-users-api-500-error' into 'master'
Fix 500 errors when creating a user with identity via API

Closes #26295

See merge request !8442
2017-01-06 11:16:00 +00:00
Filipa Lacerda 8181f58d44 Merge branch 'master' into auto-pipelines-vue
* master: (35 commits)
  Adds back removed class in merge request pipelines table
  Fix dropdown icon alignment
  Simplify HTML of mini pipeline graph and dropdown Creates individual html for dropdown Adds simplified  CSS for the new dropdown Removes old CSS Improves dropdown item in Chrome, Firefox and Safari Use SCSS variables for colors. Fix scss linter errors Adds animation when the stage is hovered. Adds back tooltip on dropdown toggle Fixes broken tests additional css changes to get more into direction of mockups
  Adds CHANGELOG entry
  Removes unneeded `window` declaration
  Decreases font-size on login page
  Ensure internal Gitlab::Git references use the namespace
  Absorb gitlab_git
  Fix review comments.
  Add spec for note edit and fix one commented spec.
  Review fixes.
  Use gl.utils.isInViewport and improve gl.utils.animateToElement.
  Make sure elements share the same scope
  Hide edit warning element when form reverted.
  Remove unnecessary styling came from merge conflicts.
  Fix single note edit form specs.
  Separate edit form in Changes and Discussions tab.
  Fix warning styling for responsive design.
  Fix task list for single edit note widget changes.
  Fix notes spec.
  ...
2017-01-05 18:40:35 +00:00
Rémy Coutable 3b8c81fe9e Merge branch '19966-api-call-to-move-project-to-different-group-fails-when-using-group-and-project-names-instead-of-id' into 'master'
Fix groups API to accept path when transferring a project

Closes #19966

See merge request !8408
2017-01-05 18:10:24 +00:00
Rémy Coutable 036cafa95a Merge branch '26261-post-api-v3-projects-idorproject-commits-commits-does-not-work-with-project-path' into 'master'
Fix Commits API to accept a Project path upon POST

Closes #26261

See merge request !8406
2017-01-05 18:06:46 +00:00
Rémy Coutable 8b1914ceb2
Fix the failing spec in POST /users API
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-05 13:30:31 +01:00
Kamil Trzciński b1cd9add23 Merge branch 'zj-404-slack-error' into 'master'
Add API route slack slash commands

Closes #25954

See merge request !8362
2017-01-05 11:09:26 +00:00
Regis 1655824fa4 Merge branch 'master' into auto-pipelines-vue 2017-01-04 10:55:25 -07:00
Sean McGivern 034d2e4e74 Merge branch 'api-refactor-issues-filter' into 'master'
Refactor issues filter in API

See merge request !8432
2017-01-04 11:08:19 +00:00
Robert Schilling 0199f1861b Add missing milestone parameter 2017-01-04 10:07:00 +01:00
Robert Schilling dc6b35e1ae Refactor issues filter in API 2017-01-04 09:50:09 +01:00
Robert Schilling 2448fa69d6 Fix project hooks params 2017-01-03 21:07:12 +01:00
Z.J. van de Weg dfca704d6a Add API route slack slash commands 2017-01-03 20:34:35 +01:00
Mark Fletcher b5f4fc843a Fix groups API to accept path when transferring a project
* Use standard helpers for finding group and project
2017-01-03 09:25:56 +00:00
Robert Schilling 15932c360c API: extern_uid is a string 2017-01-03 08:44:33 +01:00
Mark Fletcher 63fcf13739 Fix Commits API to accept a Project path upon POST 2017-01-03 01:16:38 +00:00
Regis 0a074f2e09 fix pipelines/index.html.haml merge conflict 2017-01-02 16:24:37 -07:00
Sean McGivern 714f70a38d Merge branch 'grapify-settings-api' into 'master'
Grapify the settings API

See merge request !8336
2016-12-29 15:59:31 +00:00
Robert Schilling ec7485de21 Grapify the settings API 2016-12-29 11:24:15 +01:00
Sean McGivern 6892216f5f Merge branch 'clean-api-params' into 'master'
Parameter already enforced via grape

See merge request !8344
2016-12-28 15:22:11 +00:00
Robert Schilling 2ac92662ea Parameter already enforced via grape 2016-12-28 12:40:39 +01:00