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

feat(cdp): site destination mapping templates #26866

Merged
merged 9 commits into from
Dec 12, 2024
Merged

Conversation

mariusandra
Copy link
Collaborator

Problem

We want to make it easy to subscribe to predefined mappings for destinations.

Changes

Adds "mapping templates"

2024-12-12 13 02 35

How did you test this code?

In the browser for now

Copy link
Contributor

github-actions bot commented Dec 12, 2024

Size Change: 0 B

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.11 MB

compressed-size-action

@mariusandra mariusandra marked this pull request as ready for review December 12, 2024 12:24
mappings=[],
mapping_templates=[
HogFunctionMappingTemplate(
name="Aquisition",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could have default: true or something for templates so that some can be applied by default to the mappings section on load (sort of like we do for the inputs schema

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Got stuck behind naming things. I tried with just a default, but that made me want to add a # this means it'll be included by default when the function is created comment. So I went with include_by_default=True instead... which is hopefully unambiguous enough.

],
actions: [],
},
<LemonLabel>New Mapping</LemonLabel>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chefs kiss

@mariusandra mariusandra merged commit aad8698 into master Dec 12, 2024
96 checks passed
@mariusandra mariusandra deleted the mapping-templates branch December 12, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants