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

Fix tests #7722

Merged
merged 2 commits into from
Oct 16, 2024
Merged

Fix tests #7722

merged 2 commits into from
Oct 16, 2024

Conversation

charlesBochet
Copy link
Member

As per title ;)

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request modifies the useSearchRecords hook and updates GraphQL mocks for testing, focusing on search functionality improvements and debugging.

  • Added console.log(effectiveData) in useSearchRecords.ts, which may expose sensitive data and impact performance
  • Replaced 'FindManyViews' with 'SearchPeople', 'SearchCompanies', and 'SearchOpportunities' queries in graphqlMocks.ts
  • 'SearchOpportunities' query returns an empty array, potentially requiring mock data for comprehensive testing
  • Ensure the new console.log statement is removed or properly managed before production deployment

2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@@ -83,6 +83,8 @@ export const useSearchRecords = <T extends ObjectRecord = ObjectRecord>({
[result],
);

console.log(effectiveData);
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Remove or conditionally log only in development environment

@FelixMalfait FelixMalfait merged commit 4d0af3e into main Oct 16, 2024
13 checks passed
@FelixMalfait FelixMalfait deleted the fix-tests-6 branch October 16, 2024 07:28
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