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

feat(orpd-120):implemented cache with cron job #62

Merged
merged 7 commits into from
Dec 2, 2024

Conversation

hareshkainthdbt
Copy link
Collaborator

The file fbr/search/construction_legislation.py has been deleted because it is no longer in use and its content is obsolete. This cleanup helps streamline the codebase and minimizes potential confusion with outdated legislation references.

The file fbr/search/construction_legislation.py has been deleted because it is no longer in use and its content is obsolete. This cleanup helps streamline the codebase and minimizes potential confusion with outdated legislation references.
Introduced django-celery-beat version 2.7.0 to manage periodic tasks more effectively with a database-backed approach. Updated the poetry.lock file to include necessary package dependencies such as cron-descriptor, django-timezone-field, and python-crontab, which support the new functionality. This change enhances task scheduling capabilities within Django applications.
Introduce `manage_cache.py` for handling cache rebuilds, including a new script entry in `pyproject.toml`. Refactor imports and add logging to enhance clarity and maintainability in the codebase. Also, import `django-environ` and update the Makefile for additional cache rebuild command.
Updated the import paths in several files to make them more consistent and streamlined by removing unnecessary "fbr" prefix. This change aims to improve readability and maintainability of the codebase without affecting the functional behavior. The entry script was also cleaned up by removing commented-out migration checks.
Enhanced the search functionality by switching from `filter` to `get` for retrieving documents by ID, adding exception handling for non-existent IDs, and logging the search action. Removed unnecessary JSON serialization in the views to streamline data processing. These changes ensure more robust error management and simplify the data response in the user interface.
Copy link
Collaborator

@gdbarnes gdbarnes left a comment

Choose a reason for hiding this comment

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

LGTM

@hareshkainthdbt hareshkainthdbt merged commit 69053b0 into main Dec 2, 2024
5 checks passed
@gdbarnes gdbarnes deleted the feature/orpd-120-rebuild-cache-celery-job branch December 17, 2024 17:29
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