Commit Graph

15 Commits

Author SHA1 Message Date
Grzegorz Bizon 0430b76441 Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
Z.J. van de Weg cd1a85427a Revert to passing the path when matching key to the router
This was edited to the request, but this won't work if the data is not
available at the time of setting the key for the first time.
2017-06-12 21:50:35 +02:00
Adam Niedzielski 280529c7f4 Fix incorrect ETag cache key when relative instance URL is used 2017-06-07 11:15:33 +02:00
Kamil Trzcinski 0383b48225 Merge remote-tracking branch 'origin/master' into zj-job-view-goes-real-time 2017-06-02 20:32:02 +02:00
Z.J. van de Weg 47a0276e53 Initial implementation for real time job view
Added the needed keys and paths to a new entity, BuildDetailsEntity.
Not renaming BuildEntity to BuildBasicEntity on explicit request. Most
code now has test coverage, but not all. This will be added on later
commits on this branch.

Resolves gitlab-org/gitlab-ce#31397
2017-05-31 21:44:15 +02:00
Z.J. van de Weg 7ec8969285 Merge branch 'master' into zj-realtime-env-list 2017-05-25 13:57:22 +02:00
Z.J. van de Weg 3be9820da6 Test etag caching router and incorporate review 2017-05-24 10:02:32 +02:00
Z.J. van de Weg 33961ee418 Add Etag caching for Pipeline#Show action
Due to a typo this was not actually the case. Now that is fixed and
performance should improve because of this.
2017-05-22 22:07:11 +02:00
Z.J. van de Weg ebede2b3ff Use etag caching for environments JSON
For the index view, the environments can now be requested every 15
seconds. Any transition state of a projects environments will trigger a
cache invalidation action.

Fixes gitlab-org/gitlab-ce#31701
2017-05-22 21:55:43 +02:00
Luke "Jared" Bennett 3efb60642a
Rename all references to rendered_title to realtime_changes 2017-05-13 21:23:58 +01:00
Adam Niedzielski f8dd11957a Test all enabled routes in ETag caching middleware and fix pipeline routes
Extract route matching logic to Gitlab::EtagCaching::Router.

Fix pipeline routes:
1. "project_pipelines" has to come after "commit_pipelines" and
"merge_request_pipelines" because it is more generic
2. "commit_pipelines": "\s" (any whitespace character) => "\S"
(any non-whitespace character).
2017-04-10 10:45:37 +02:00
Toon Claes 751dae58e6
In case of Etag cache hit, the body should be empty 2017-04-06 23:50:36 +02:00
Adam Niedzielski 894f01cd05 Include endpoint in metrics for ETag caching middleware 2017-04-06 14:46:55 +02:00
Adam Niedzielski 9543025e88 Introduce "polling_interval_multiplier" as application setting
Implement module for setting "Poll-Interval" response header.
Return 429 in ETag caching middleware when polling is disabled.
2017-04-03 15:17:04 +02:00
Adam Niedzielski 61c9604721 Add middleware for ETag caching with Redis 2017-03-01 16:48:01 +01:00