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
3f9a4159
Commit
3f9a4159
authored
May 03, 2021
by
Natalia Tepluhina
Committed by
Nicolò Maria Mezzopera
May 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix setting assignees on boards when relative URL is enabled
parent
d7281e68
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
4 deletions
+25
-4
app/assets/javascripts/boards/index.js
app/assets/javascripts/boards/index.js
+15
-1
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees_widget.vue
...sidebar/components/assignees/sidebar_assignees_widget.vue
+2
-2
app/views/shared/boards/components/sidebar/_assignee.html.haml
...iews/shared/boards/components/sidebar/_assignee.html.haml
+2
-1
changelogs/unreleased/329624-cannot-set-assignee-in-boards-view-for-self-managed-gitlab-with-re.yml
...signee-in-boards-view-for-self-managed-gitlab-with-re.yml
+6
-0
No files found.
app/assets/javascripts/boards/index.js
View file @
3f9a4159
import
{
IntrospectionFragmentMatcher
}
from
'
apollo-cache-inmemory
'
;
import
Vue
from
'
vue
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
{
mapActions
,
mapGetters
}
from
'
vuex
'
;
...
...
@@ -35,13 +36,26 @@ import {
}
from
'
~/lib/utils/common_utils
'
;
import
{
__
}
from
'
~/locale
'
;
import
sidebarEventHub
from
'
~/sidebar/event_hub
'
;
import
introspectionQueryResultData
from
'
~/sidebar/fragmentTypes.json
'
;
import
boardConfigToggle
from
'
./config_toggle
'
;
import
mountMultipleBoardsSwitcher
from
'
./mount_multiple_boards_switcher
'
;
Vue
.
use
(
VueApollo
);
const
fragmentMatcher
=
new
IntrospectionFragmentMatcher
({
introspectionQueryResultData
,
});
const
apolloProvider
=
new
VueApollo
({
defaultClient
:
createDefaultClient
(),
defaultClient
:
createDefaultClient
(
{},
{
cacheConfig
:
{
fragmentMatcher
,
},
assumeImmutableResults
:
true
,
},
),
});
let
issueBoardsApp
;
...
...
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees_widget.vue
View file @
3f9a4159
...
...
@@ -245,8 +245,8 @@ export default {
@
input=
"setDirtyState"
>
<template
#footer
>
<gl-dropdown-item>
<sidebar-invite-members
v-if=
"directlyInviteMembers"
/>
<gl-dropdown-item
v-if=
"directlyInviteMembers"
>
<sidebar-invite-members
/>
</gl-dropdown-item>
</
template
></user-select>
</template>
...
...
app/views/shared/boards/components/sidebar/_assignee.html.haml
View file @
3f9a4159
-
dropdown_options
=
assignees_dropdown_options
(
'issue'
)
-
relative_url
=
Gitlab
.
config
.
gitlab
.
relative_url_root
||
'/'
.block.assignee
{
ref:
"assigneeBlock"
}
%template
{
"v-if"
=>
"issue.assignees"
}
%sidebar-assignees-widget
{
":iid"
=>
"String(issue.iid)"
,
":full-path"
=>
"issue.path.split('/-/')[0].substring(1)"
,
":full-path"
=>
"issue.path.split('/-/')[0].substring(1)
.replace(`#{relative_url}`, '')
"
,
":initial-assignees"
=>
"issue.assignees"
,
":multiple-assignees"
=>
"!Boolean(#{dropdown_options[:data][:"
max
-
select
"]})"
,
"@assignees-updated"
=>
"setAssignees"
}
changelogs/unreleased/329624-cannot-set-assignee-in-boards-view-for-self-managed-gitlab-with-re.yml
0 → 100644
View file @
3f9a4159
---
title
:
Resolve Cannot Set Assignee in Boards View for self-managed GitLab with Relative
URL
merge_request
:
60711
author
:
type
:
fixed
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