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
3b4d8dce
Commit
3b4d8dce
authored
May 24, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
3c613896
c0ea4164
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/models/identity.rb
app/models/identity.rb
+1
-0
spec/javascripts/jobs/components/job_app_spec.js
spec/javascripts/jobs/components/job_app_spec.js
+4
-1
No files found.
app/models/identity.rb
View file @
3b4d8dce
...
...
@@ -13,6 +13,7 @@ class Identity < ApplicationRecord
before_save
:ensure_normalized_extern_uid
,
if: :extern_uid_changed?
after_destroy
:clear_user_synced_attributes
,
if: :user_synced_attributes_metadata_from_provider?
scope
:for_user
,
->
(
user
)
{
where
(
user:
user
)
}
scope
:with_provider
,
->
(
provider
)
{
where
(
provider:
provider
)
}
scope
:with_extern_uid
,
->
(
provider
,
extern_uid
)
do
iwhere
(
extern_uid:
normalize_uid
(
provider
,
extern_uid
)).
with_provider
(
provider
)
...
...
spec/javascripts/jobs/components/job_app_spec.js
View file @
3b4d8dce
...
...
@@ -90,9 +90,12 @@ describe('Job App ', () => {
describe
(
'
triggered job
'
,
()
=>
{
beforeEach
(()
=>
{
const
aYearAgo
=
new
Date
();
aYearAgo
.
setFullYear
(
aYearAgo
.
getFullYear
()
-
1
);
mock
.
onGet
(
props
.
endpoint
)
.
replyOnce
(
200
,
Object
.
assign
({},
job
,
{
started
:
'
2017-05-24T10:59:52.000+01:00
'
}));
.
replyOnce
(
200
,
Object
.
assign
({},
job
,
{
started
:
aYearAgo
.
toISOString
()
}));
vm
=
mountComponentWithStore
(
Component
,
{
props
,
store
});
});
...
...
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