Commit Graph

20 Commits

Author SHA1 Message Date
GitLab Bot 35c5f0c35c Add latest changes from gitlab-org/gitlab@master 2021-02-24 12:10:54 +00:00
GitLab Bot caafd2e499 Add latest changes from gitlab-org/gitlab@master 2020-10-26 21:08:22 +00:00
GitLab Bot c59765a50a Add latest changes from gitlab-org/gitlab@master 2020-06-24 18:09:03 +00:00
GitLab Bot f4251f2694 Add latest changes from gitlab-org/gitlab@master 2020-06-02 06:08:01 +00:00
GitLab Bot 76623c12c1 Add latest changes from gitlab-org/gitlab@master 2020-02-05 21:09:02 +00:00
GitLab Bot 6755df108b Add latest changes from gitlab-org/gitlab@master 2020-01-21 00:08:46 +00:00
GitLab Bot 7cdd70dcec Add latest changes from gitlab-org/gitlab@master 2019-11-28 15:06:57 +00:00
GitLab Bot 80f61b4035 Add latest changes from gitlab-org/gitlab@master 2019-09-18 14:02:45 +00:00
Thong Kuah f540ffcef6 Add frozen_string_literal to spec/lib (part 1)
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:25:07 +12:00
Stan Hu da0c9b0056
Fix real-time updates for projects that contain a reserved word
Projects that included reserved words (e.g. test-create) would fail to
generate a proper ETag key because of the name. To fix this, we add
forward slashes to match the exact name so that /test-create doesn't get
matched, but /create does.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60113
2019-04-05 11:59:20 -07: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