feat: add notification query#6482
Conversation
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Introduced a new `Subscription` type for handling updates related to journey AI translation. - Added `journeyAiTranslateStatus` query to retrieve the current status of AI translation for a specific journey. - Defined `JourneyAiTranslateStatus` type to encapsulate translation status details including `id`, `status`, and `progress`.
- Removed the `journeyAiTranslateStatus` query from the `Query` type in favor of a subscription model. - Enhanced the `journeyAiTranslateStatus` subscription to provide real-time updates on job status, including handling job events and state management. - Improved queue management by integrating worker creation and event handling within the subscription context. - Cleaned up unused code and comments for better readability and maintainability.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
…ent responses - Simplified the mapping of `studyQuestions` to directly use the `map` function without conditional checks. - Added query string handling in media component routes for better request management. - Removed redundant code in media language responses for improved clarity and maintainability.
- Deleted the `@pothos/plugin-smart-subscriptions` dependency from both `package.json` and `package-lock.json` to streamline project dependencies.
…on order calculation - Removed the `VideoBibleCitation` component from the video layout for a cleaner presentation. - Updated the order calculation logic for study questions to handle cases with fewer questions more effectively.
- Deleted the `VideoBibleCitation`, `CitationEditPage`, `CitationDeletePage`, and `CitationForm` components to streamline the citation management process. - Removed associated test files to maintain a clean codebase. - This change aims to simplify the video citation workflow and improve maintainability.
- Updated job event listeners in the `journeyAiTranslate` subscription to use `void` for asynchronous operations, ensuring proper handling of promises. - Cleaned up the code for better readability and maintainability by removing unnecessary comments and improving function calls.
- Updated the job identifier format in the `journeyAiTranslate` mutation to include both journey ID and text language ID for better traceability. - This change aims to improve job management and clarity in the queue processing system.
…otification-query
No description provided.