Commit graph

17 commits

Author SHA1 Message Date
charlieablett
426f1c20b1 Remove N+1 query for project and group boards
- Add test for N+1 queries
- Add destroyable lists scope to Board and List
- Preload lists for both project and group boards
2019-06-26 11:47:18 +12:00
Imre Farkas
b1e070bf49
Fix API::Namespaces to accept namepaces with dots
It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to
API::NAMESPACE_OR_PROJECT_REQUIREMENTS
2018-11-28 12:54:11 +01:00
gfyoung
3836d69119 Enable frozen string in lib/api and lib/backup
Partially addresses #47424.

Had to make changes to spec files because
stubbing methods on frozen objects is a mess
in RSpec and leads to failures:

https://github.com/rspec/rspec-mocks/issues/1190
2018-09-29 21:04:50 -07:00
Oswaldo Ferreira
ddb14e4098 Backport issue board milestone lists EE changes 2018-08-07 17:29:06 +00:00
Mark Chao
4f795ed823 Backport from EE !5954
Allow Labels::FindOrCreateService to find ancestor group labels
Add authentication check on API endpoint
Update flayignore
2018-07-04 20:48:50 +08:00
Felipe Artur
5e148d4e93 EE-BACKPORT group boards 2018-01-04 17:28:10 -02:00
Robert Schilling
6a2ee0968e API: Use defined project requirements 2017-08-31 14:57:47 +02:00
Robert Schilling
e80313f9ee Conditionally destroy a ressource 2017-08-28 16:40:25 +02:00
Robert Schilling
998afa5f74 API: Respect the 'If-Unmodified-Since' for delete endpoints 2017-08-28 16:40:25 +02:00
Rémy Coutable
63360adeae
Add requirements: { id: %r{[^/]+} } for all projects and groups namespaced API routes
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-16 18:00:24 +01:00
Robert Schilling
86c58687b2 Return 204 for delete endpoints 2017-02-28 08:32:38 +01:00
Robert Schilling
01ea65e0e9 Paginate all endpoints that return an array 2017-02-16 15:32:01 +01:00
Douglas Barbosa Alexandre
158173a126 Update the API endpoint to get the lists of a project board 2017-02-03 17:02:43 +03:00
Douglas Barbosa Alexandre
68f30b2fff Add support to group labels on issues board API 2016-10-19 14:58:26 -02:00
Robert Schilling
4c46c9a973 Grapify boards API 2016-10-14 12:45:02 +02:00
Douglas Barbosa Alexandre
e171c1d80d Update Issue Board API to handle with has_many association 2016-10-11 11:39:05 -03:00
Andre Guedes
41d70ea300 Added Issue Board API support
- Includes documentation and tests
2016-10-05 13:12:07 -03:00