mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-01 20:14:13 +00:00
feat(analytics): Add page number to SearchResultClickEvent analytics event (#11151)
This commit is contained in:
parent
8f7642b910
commit
f15a7feda3
@ -191,6 +191,7 @@ export interface SearchResultClickEvent extends BaseEvent {
|
||||
entityTypeFilter?: EntityType;
|
||||
index: number;
|
||||
total: number;
|
||||
pageNumber: number;
|
||||
}
|
||||
|
||||
export interface SearchFiltersClearAllEvent extends BaseEvent {
|
||||
|
@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -264,6 +264,7 @@ export const SearchResults = ({
|
||||
selectedEntities={selectedEntities}
|
||||
setSelectedEntities={setSelectedEntities}
|
||||
suggestions={suggestions}
|
||||
pageNumber={page}
|
||||
/>
|
||||
{totalResults > 0 && (
|
||||
<PaginationControlContainer id="search-pagination">
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user