Skip to content

Commit

Permalink
feat(cdp): default to mock HTTP requests disabled (#26632)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarconLP authored Dec 4, 2024
1 parent 99d992b commit 3063a39
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export function HogFunctionInputWithSchema({ schema }: HogFunctionInputWithSchem
{supportsTemplating && (
<LemonButton
size="xsmall"
to="https://posthog.com/docs/cdp/destinations#input-formatting"
to="https://posthog.com/docs/cdp/destinations/customizing-destinations#customizing-payload"
sideIcon={<IconInfo />}
noPadding
className=" opacity-0 group-hover:opacity-100 p-1 transition-opacity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function HogFunctionTest(props: HogFunctionTestLogicProps): JSX.Element {
}
>
<span className="flex gap-2">
Mock out async functions
Mock out HTTP requests
<IconInfo className="text-lg" />
</span>
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const hogFunctionTestLogic = kea<hogFunctionTestLogicType>([
forms(({ props, actions, values }) => ({
testInvocation: {
defaults: {
mock_async_functions: true,
mock_async_functions: false,
} as HogFunctionTestInvocationForm,
alwaysShowErrors: true,
errors: ({ globals }) => {
Expand Down
2 changes: 1 addition & 1 deletion posthog/cdp/templates/slack/template_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
});
if (res.status != 200 or not res.body.ok) {
if (res.status != 200 or res.body.ok == false) {
throw Error(f'Failed to post message to Slack: {res.status}: {res.body}');
}
""".strip(),
Expand Down

0 comments on commit 3063a39

Please sign in to comment.