Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
experience_builder
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
experience_builder
Merge requests
!951
#3520971
stop dummy props form cache
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
#3520971
stop dummy props form cache
issue/experience_builder-3520971:3520971-ajax-config-not
into
0.x
Overview
9
Commits
3
Pipelines
6
Changes
1
All threads resolved!
Show all comments
Merged
#3520971 stop dummy props form cache
Ben Mullins
requested to merge
issue/experience_builder-3520971:3520971-ajax-config-not
into
0.x
2 months ago
Overview
9
Commits
3
Pipelines
6
Changes
1
All threads resolved!
Show all comments
Closes
#3520971
0
0
Merge request reports
Compare
0.x
version 4
78b05ec9
2 months ago
version 3
49fcb756
2 months ago
version 2
f3bcde3f
2 months ago
version 1
f0cd4851
2 months ago
0.x (base)
and
latest version
latest version
78b05ec9
3 commits,
2 months ago
version 4
78b05ec9
3 commits,
2 months ago
version 3
49fcb756
3 commits,
2 months ago
version 2
f3bcde3f
2 commits,
2 months ago
version 1
f0cd4851
1 commit,
2 months ago
1 file
+
7
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ui/src/services/dummyPropsForm.ts
+
7
−
1
View file @ 78b05ec9
Edit in single-file editor
Open in Web IDE
Show comments on this file
Show full file
@@ -10,7 +10,12 @@ export const dummyPropsFormApi = createApi({
endpoints
:
(
builder
)
=>
({
getDummyPropsForm
:
builder
.
query
<
string
,
string
>
({
query
:
(
queryString
)
=>
{
const
fullQueryString
=
addAjaxPageState
(
queryString
);
// Add timestamp to prevent caching. Every request must be fresh
// to ensure the selectors match that of the AJAX config.
const
timestamp
=
new
Date
().
getTime
();
const
fullQueryString
=
addAjaxPageState
(
`
${
queryString
}
&_nocache=
${
timestamp
}
`
,
+2
);
return
{
url
:
`xb/api/form/component-instance/{entity_type}/{entity_id}`
,
// We use PATCH to keep this distinct from AJAX form submissions which
@@ -23,6 +28,7 @@ export const dummyPropsFormApi = createApi({
};
},
transformResponse
:
processResponseAssets
,
keepUnusedDataFor
:
0
,
}),
}),
});
Loading