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
16e8c261
Commit
16e8c261
authored
Jul 05, 2021
by
Olena Horal-Koretska
Committed by
David O'Regan
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cache update for schedules and policies
Changelog: fixed EE: true
parent
99f5cbd3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
ee/app/assets/javascripts/escalation_policies/graphql/cache_updates.js
.../javascripts/escalation_policies/graphql/cache_updates.js
+4
-1
ee/app/assets/javascripts/oncall_schedules/utils/cache_updates.js
...ssets/javascripts/oncall_schedules/utils/cache_updates.js
+7
-4
No files found.
ee/app/assets/javascripts/escalation_policies/graphql/cache_updates.js
View file @
16e8c261
...
@@ -22,7 +22,10 @@ const addEscalationPolicyToStore = (store, query, { escalationPolicyCreate }, va
...
@@ -22,7 +22,10 @@ const addEscalationPolicyToStore = (store, query, { escalationPolicyCreate }, va
});
});
const
data
=
produce
(
sourceData
,
(
draftData
)
=>
{
const
data
=
produce
(
sourceData
,
(
draftData
)
=>
{
draftData
.
project
.
incidentManagementEscalationPolicies
.
nodes
.
push
(
policy
);
draftData
.
project
.
incidentManagementEscalationPolicies
.
nodes
=
[
...
draftData
.
project
.
incidentManagementEscalationPolicies
.
nodes
,
policy
,
];
});
});
store
.
writeQuery
({
store
.
writeQuery
({
...
...
ee/app/assets/javascripts/oncall_schedules/utils/cache_updates.js
View file @
16e8c261
...
@@ -22,10 +22,13 @@ const addScheduleToStore = (store, query, { oncallScheduleCreate }, variables) =
...
@@ -22,10 +22,13 @@ const addScheduleToStore = (store, query, { oncallScheduleCreate }, variables) =
});
});
const
data
=
produce
(
sourceData
,
(
draftData
)
=>
{
const
data
=
produce
(
sourceData
,
(
draftData
)
=>
{
draftData
.
project
.
incidentManagementOncallSchedules
.
nodes
.
push
({
draftData
.
project
.
incidentManagementOncallSchedules
.
nodes
=
[
...
draftData
.
project
.
incidentManagementOncallSchedules
.
nodes
,
{
...
schedule
,
...
schedule
,
rotations
:
{
nodes
:
[],
__typename
:
ROTATION_CONNECTION_TYPE
},
rotations
:
{
nodes
:
[],
__typename
:
ROTATION_CONNECTION_TYPE
},
});
},
];
});
});
store
.
writeQuery
({
store
.
writeQuery
({
...
...
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