Commit graph

14 commits

Author SHA1 Message Date
Igor Drozdov
732f892db3 Return cached languages if they've been detected before 2019-03-20 20:33:49 +03:00
Zeger-Jan van de Weg
abe8cbe90b Load repository language from the DB if detected
The repository charts page used to detect the repository language for
each request that was made to the page. Given the detection is an
expensive operation and the same data is stored in the database the
database is now serving the request.

The same goes for an API endpoint that serves the languages.

When a repository is empty or non-existent the languages will always be
empty. And the language detection RPC isn't requested.

Closes: https://gitlab.com/gitlab-org/gitlab-ce/issues/47390
2019-02-25 15:15:16 +01:00
blackst0ne
b44a2c801a Update specs to rails5 format
Updates specs to use new rails5 format.

The old format:
`get :show, { some: params }, { some: headers }`

The new format:
`get :show, params: { some: params }, headers: { some: headers }`
2018-12-19 10:04:31 +11:00
Mark Chao
a63bce1a4b Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
blackst0ne
27c95364b5 Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
Jacob Vosmaer
67de82cf5f Add option to use CommitLanguages RPC 2017-08-01 10:48:46 +02:00
Rémy Coutable
4a6bc1f6a4 Merge branch 'change-colour-for-testing-fallback' into 'master'
Change language for testing colour fallback

See merge request !9537
2017-03-06 09:15:47 +00:00
Kushal Pandya
52352be6be Cleaning up navigational order - Project 2017-03-02 17:57:01 +00:00
Georg G
40c9a948b0 Change language for testing colour fallback 2017-02-26 20:14:02 +01:00
Douwe Maan
ad640bc5f9 Use Namespace#full_path instead of #path where appropriate 2017-02-23 17:55:01 -06:00
Robert Speicher
4642ca6686 Use empty_project where possible in controller specs 2017-01-25 17:14:38 -05:00
Georg G
85324ff8d3 Fix indentation and change inner matcher 2016-10-13 13:08:19 +02:00
Georg G
ce4dad4555 Use test double and matchers 2016-10-13 07:01:34 +02:00
Georg G
f32bc1f526 Add spec for Projects::GraphsController#languages 2016-10-12 18:48:53 +02:00