Skip to content

Commit

Permalink
fix(tagging): query tagging and send session param (#1627)
Browse files Browse the repository at this point in the history
  • Loading branch information
lauramargar authored Sep 30, 2024
1 parent 08467db commit 69dd690
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ function renderTagging({

const defaultTaggingConfig: Partial<TaggingConfig> = {
clickedResultStorageTTLMs: 30000,
clickedResultStorageKey: 'url'
clickedResultStorageKey: 'url',
queryTaggingDebounceMs: 2000
};

const stubTagginMetadata: WireMetadata = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,17 @@
/**
* The debounce time in milliseconds to track the query.
*/
queryTaggingDebounceMs: Number,
queryTaggingDebounceMs: {
type: Number,
default: 2000
},
/**
* The consent to be emitted.
*/
consent: Boolean
consent: {
type: Boolean,
default: null
}
},
setup(props) {
const xBus = useXBus();
Expand All @@ -67,7 +73,7 @@
*/
const taggingConfig = computed<TaggingConfig>(() => {
return {
queryTaggingDebounceMs: props.queryTaggingDebounceMs as number,
queryTaggingDebounceMs: props.queryTaggingDebounceMs,
sessionTTLMs: props.sessionTTLMs as number,
clickedResultStorageTTLMs: props.clickedResultStorageTTLMs,
clickedResultStorageKey: props.clickedResultStorageKey
Expand Down

0 comments on commit 69dd690

Please sign in to comment.