feat(analytics): Add page number to SearchResultClickEvent analytics event (#11151)

This commit is contained in:
Filipe Caetano - OVO 2024-08-20 14:11:38 +01:00 committed by GitHub
parent 8f7642b910
commit f15a7feda3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 1 deletions

View File

@ -191,6 +191,7 @@ export interface SearchResultClickEvent extends BaseEvent {
entityTypeFilter?: EntityType;
index: number;
total: number;
pageNumber: number;
}
export interface SearchFiltersClearAllEvent extends BaseEvent {

View File

@ -62,6 +62,7 @@ type Props = {
selectedEntities: EntityAndType[];
setSelectedEntities: (entities: EntityAndType[]) => any;
suggestions: SearchSuggestion[];
pageNumber: number;
};
export const SearchResultList = ({
@ -73,6 +74,7 @@ export const SearchResultList = ({
selectedEntities,
setSelectedEntities,
suggestions,
pageNumber,
}: Props) => {
const entityRegistry = useEntityRegistry();
const selectedEntityUrns = selectedEntities.map((entity) => entity.urn);
@ -86,6 +88,7 @@ export const SearchResultList = ({
entityType: result.entity.type,
index,
total: totalResultCount,
pageNumber,
});
};

View File

@ -264,6 +264,7 @@ export const SearchResults = ({
selectedEntities={selectedEntities}
setSelectedEntities={setSelectedEntities}
suggestions={suggestions}
pageNumber={page}
/>
{totalResults > 0 && (
<PaginationControlContainer id="search-pagination">

View File

@ -46,7 +46,7 @@ Use [gradle wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.ht
./gradlew build
```
Note that the above will also run run tests and a number of validations which makes the process considerably slower.
Note that the above will also run tests and a number of validations which makes the process considerably slower.
We suggest partially compiling DataHub according to your needs: