Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e4191769
Commit
e4191769
authored
Sep 02, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
bd88ae75
c33eac31
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
6 deletions
+32
-6
app/models/iteration.rb
app/models/iteration.rb
+2
-2
doc/administration/pages/index.md
doc/administration/pages/index.md
+18
-0
ee/changelogs/unreleased/iteration_due_date_passed_fix.yml
ee/changelogs/unreleased/iteration_due_date_passed_fix.yml
+5
-0
ee/spec/workers/iterations_update_status_worker_spec.rb
ee/spec/workers/iterations_update_status_worker_spec.rb
+7
-4
No files found.
app/models/iteration.rb
View file @
e4191769
...
...
@@ -36,8 +36,8 @@ class Iteration < ApplicationRecord
.
where
(
'due_date is NULL or due_date >= ?'
,
start_date
)
end
scope
:start_date_passed
,
->
{
where
(
'start_date <= ?'
,
Date
.
current
).
where
(
'due_date > ?'
,
Date
.
current
)
}
scope
:due_date_passed
,
->
{
where
(
'due_date <
=
?'
,
Date
.
current
)
}
scope
:start_date_passed
,
->
{
where
(
'start_date <= ?'
,
Date
.
current
).
where
(
'due_date >
=
?'
,
Date
.
current
)
}
scope
:due_date_passed
,
->
{
where
(
'due_date < ?'
,
Date
.
current
)
}
state_machine
:state_enum
,
initial: :upcoming
do
event
:start
do
...
...
doc/administration/pages/index.md
View file @
e4191769
...
...
@@ -720,6 +720,24 @@ sudo cp /opt/gitlab/embedded/ssl/certs/cacert.pem /var/opt/gitlab/gitlab-rails/s
sudo cp
/opt/gitlab/embedded/ssl/certs/cacert.pem /var/opt/gitlab/gitlab-rails/shared/pages/etc/ssl/ca-bundle.pem
```
### 502 error when connecting to GitLab Pages proxy when server does not listen over IPv6
In some cases, NGINX might default to using IPv6 to connect to the GitLab Pages
service even when the server does not listen over IPv6. You can identify when
this is happening if you see something similar to the log entry below in the
`gitlab_pages_error.log`
:
```
plaintext
2020/02/24 16:32:05 [error] 112654#0: *4982804 connect() failed (111: Connection refused) while connecting to upstream, client: 123.123.123.123, server: ~^(?<group>.*)\.pages\.example\.com$, request: "GET /-/group/project/-/jobs/1234/artifacts/artifact.txt HTTP/1.1", upstream: "http://[::1]:8090//-/group/project/-/jobs/1234/artifacts/artifact.txt", host: "group.example.com"
```
To resolve this, set an explicit IP and port for the GitLab Pages
`listen_proxy`
setting
to define the explicit address that the GitLab Pages daemon should listen on:
```
ruby
gitlab_pages
[
'listen_proxy'
]
=
'127.0.0.1:8090'
```
### 404 error after transferring project to a different group or user
If you encounter a
`404 Not Found`
error a Pages site after transferring a project to
...
...
ee/changelogs/unreleased/iteration_due_date_passed_fix.yml
0 → 100644
View file @
e4191769
---
title
:
Fix for Iterations closing a day early
merge_request
:
40884
author
:
type
:
fixed
ee/spec/workers/iterations_update_status_worker_spec.rb
View file @
e4191769
...
...
@@ -28,14 +28,17 @@ RSpec.describe IterationsUpdateStatusWorker do
end
context
'when iterations are in `started` state'
do
let_it_be
(
:iteration
)
{
create
(
:iteration
,
:skip_future_date_validation
,
start_date:
10
.
days
.
ago
,
due_date:
1
.
day
.
ago
,
state_enum:
::
Iteration
::
STATE_ENUM_MAP
[
:started
])
}
let_it_be
(
:iteration1
)
{
create
(
:iteration
,
:skip_future_date_validation
,
start_date:
10
.
days
.
ago
,
due_date:
2
.
days
.
ago
,
state_enum:
::
Iteration
::
STATE_ENUM_MAP
[
:started
])
}
let_it_be
(
:iteration2
)
{
create
(
:iteration
,
:skip_future_date_validation
,
start_date:
1
.
day
.
ago
,
due_date:
Date
.
today
,
state_enum:
::
Iteration
::
STATE_ENUM_MAP
[
:started
])
}
it
'updates from started to closed when due date is past'
do
expect
(
iteration
.
state
).
to
eq
(
'started'
)
it
'updates from started to closed when due date is past, does not touch others'
,
:aggregate_failures
do
expect
(
iteration1
.
state
).
to
eq
(
'started'
)
expect
(
iteration2
.
state
).
to
eq
(
'started'
)
worker
.
perform
expect
(
iteration
.
reload
.
state
).
to
eq
(
'closed'
)
expect
(
iteration1
.
reload
.
state
).
to
eq
(
'closed'
)
expect
(
iteration2
.
reload
.
state
).
to
eq
(
'started'
)
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment