Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #38042 - Pass LCE ID in Refresh Counts action from WebUI #11235

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion webpack/scenes/SmartProxy/ExpandableCvDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const ExpandableCvDetails = ({
const refreshCountAction = cvId => ({
title: __('Refresh counts'),
onClick: () => {
dispatch(updateSmartProxyContentCounts(smartProxyId, { content_view_id: cvId }));
dispatch(updateSmartProxyContentCounts(smartProxyId, {
environment_id: envId, content_view_id: cvId,
}));
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ test('Can call content count refresh for content view', async (done) => {
const countsCVRefreshScope = nockInstance
.post(smartProxyRefreshCountPath, {
content_view_id: 1,
environment_id: 1,
})
.reply(202);

Expand Down
Loading