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

Display all greps even if more than 10 #2827

Merged
merged 3 commits into from
Jan 15, 2025
Merged

Display all greps even if more than 10 #2827

merged 3 commits into from
Jan 15, 2025

Conversation

gunnarvelle
Copy link
Member

Viser maks 10 koder slik det er i dag.

@gunnarvelle gunnarvelle requested a review from a team January 15, 2025 12:44
@gunnarvelle gunnarvelle marked this pull request as ready for review January 15, 2025 12:45
@@ -25,7 +25,7 @@ const StyledList = styled("ul", {
});

export const convertGrepCodesToObject = async (grepCodes: string[]): Promise<Record<string, string>> => {
const grepCodesData = await searchGrepCodes({ codes: grepCodes });
const grepCodesData = await searchGrepCodes({ codes: grepCodes, pageSize: grepCodes.length });
Copy link
Contributor

Choose a reason for hiding this comment

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

Burde vi ha en maksgrense?

Copy link
Member Author

Choose a reason for hiding this comment

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

Elasticsearch har ei grense på 10000 på ett søk. Antar ingen vil legge inn så mange koder på en artikkel.

@gunnarvelle gunnarvelle requested a review from a team January 15, 2025 13:24
@gunnarvelle gunnarvelle merged commit 249c91d into master Jan 15, 2025
3 checks passed
@gunnarvelle gunnarvelle deleted the show-all-greps branch January 15, 2025 13:54
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