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

Use retention date for min date when searching products #8493

Open
linear bot opened this issue May 7, 2024 · 2 comments
Open

Use retention date for min date when searching products #8493

linear bot opened this issue May 7, 2024 · 2 comments

Comments

@linear
Copy link

linear bot commented May 7, 2024

No description provided.

Copy link
Author

linear bot commented May 7, 2024

Copy link

greptile-apps bot commented May 7, 2024

To implement the use of retention date as the minimum date when searching products, you'll need to modify the useSearchTime hook in /frontend/src/hooks/useSearchTime.ts. Specifically, integrate a mechanism to fetch or define the retention date and ensure the startDate state cannot be set earlier than this retention date. This might involve adding a new state for the retention date and adjusting the updateSearchTime and resetSearchTime functions to respect this minimum date. Additionally, consider how the retention periods are defined in the backend, as seen in /backend/migrations/cmd/add-stripe-prices/main.go, to ensure consistency in how retention dates are calculated and used across the application.

References

/frontend/src/hooks/useSearchTime.ts
/frontend/src/graph/generated/schemas.tsx
/backend/migrations/cmd/add-stripe-prices/main.go

Ask Greptile

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

No branches or pull requests

0 participants