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
9df5f28f
Commit
9df5f28f
authored
Nov 19, 2021
by
Kerri Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue_341248_1' into 'master'
Remove expires_in key See merge request gitlab-org/gitlab!72212
parents
77c12001
5346cfc6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
3 deletions
+0
-3
app/controllers/concerns/membership_actions.rb
app/controllers/concerns/membership_actions.rb
+0
-1
spec/controllers/groups/group_members_controller_spec.rb
spec/controllers/groups/group_members_controller_spec.rb
+0
-1
spec/controllers/projects/project_members_controller_spec.rb
spec/controllers/projects/project_members_controller_spec.rb
+0
-1
No files found.
app/controllers/concerns/membership_actions.rb
View file @
9df5f28f
...
...
@@ -26,7 +26,6 @@ module MembershipActions
member_data
=
if
member
.
expires?
{
expires_in:
helpers
.
distance_of_time_in_words_to_now
(
member
.
expires_at
),
expires_soon:
member
.
expires_soon?
,
expires_at_formatted:
member
.
expires_at
.
to_time
.
in_time_zone
.
to_s
(
:medium
)
}
...
...
spec/controllers/groups/group_members_controller_spec.rb
View file @
9df5f28f
...
...
@@ -293,7 +293,6 @@ RSpec.describe Groups::GroupMembersController do
context
'when `expires_at` is set'
do
it
'returns correct json response'
do
expect
(
json_response
).
to
eq
({
"expires_in"
=>
"about 1 month"
,
"expires_soon"
=>
false
,
"expires_at_formatted"
=>
expiry_date
.
to_time
.
in_time_zone
.
to_s
(
:medium
)
})
...
...
spec/controllers/projects/project_members_controller_spec.rb
View file @
9df5f28f
...
...
@@ -369,7 +369,6 @@ RSpec.describe Projects::ProjectMembersController do
context
'when `expires_at` is set'
do
it
'returns correct json response'
do
expect
(
json_response
).
to
eq
({
"expires_in"
=>
"about 1 month"
,
"expires_soon"
=>
false
,
"expires_at_formatted"
=>
expiry_date
.
to_time
.
in_time_zone
.
to_s
(
:medium
)
})
...
...
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