- Added a line to set payload.requestSync to true within the DocumentSchema class, ensuring that synchronization requests are properly flagged for processing.
- This change reinforces the handling of sync operations, aligning with previous optimizations made to the background synchronization process.
- Reduced the background sync probability from 0.1% to 0.01% to minimize unnecessary sync attempts.
- Enabled the requestSync flag in the payload to ensure synchronization requests are properly handled.
These changes aim to optimize the background synchronization process within the DocumentSchema, enhancing performance and control over sync operations.
- Temporarily disabled the background grammar check functionality in DocumentSchema to prevent unintended execution during document processing.
- This change is part of ongoing improvements to enhance code clarity and maintainability.
These modifications aim to streamline the document management process while ensuring a more controlled execution of background tasks.
- Updated compose.yaml to use consistent quotation marks for port and labels.
- Refactored package.json to improve readability of Jest configuration.
- Enhanced DocumentSchema by adding a new event type for cursor movement and improving formatting for better clarity.
- Consolidated import statements in document.schema.ts for consistency and readability.
- Improved error handling and validation across various methods in DocumentSchema to enhance user experience.
These changes improve code maintainability and readability, ensuring a more consistent and user-friendly experience in the Document management features.
- Refactored package.json to consolidate Jest configuration for improved readability.
- Cleaned up launch.json by removing unnecessary whitespace for better formatting.
- Updated CronService to refine service disabling logic based on recent activity, ensuring more accurate service management.
- Enhanced MeetingRoom and WorkshopMeetingRoom schemas with consistent formatting and improved field descriptions for clarity.
- Improved error handling in MeetingRoom schema to provide clearer feedback for unauthorized access and missing resources.
- Updated pothos.generated.ts to reflect recent schema changes, ensuring type consistency across the application.
These changes enhance the overall structure and maintainability of the codebase, improving service management and user experience.
- Updated DocumentSchema to include RedisService for improved background processing of grammar checks.
- Refactored checkGrammarForPage method in DocumentService to utilize Promise.all for parallel processing and error handling.
- Introduced background grammar check functionality with a low probability trigger, enhancing performance and user experience.
- Added new utility methods for better time management and error logging.
These changes improve the efficiency and responsiveness of the grammar checking feature, leveraging Redis for state management and background processing.
- Added scheduleId and schedule relation to QuizSchema, allowing quizzes to be associated with specific schedules.
- Implemented validation to ensure that both quiz ID and schedule ID are provided during quiz attempt creation, improving data integrity.
- Updated related types in pothos.generated.ts to reflect the new schedule relationship, enhancing the overall schema structure.
These changes improve the functionality of the Quiz feature by integrating schedule management and ensuring proper validation during quiz attempts.
- Introduced a new mutation to delete personal milestones, including necessary authorization checks to ensure that only mentors of the associated schedule can perform the deletion.
- Enhanced error handling to provide clear feedback for unauthorized access and missing user information.
These changes improve the management of personal milestones within the GraphQL API, ensuring proper access control and user experience.
- Updated RefundTicketSchema to include CENTER_OWNER in the authorization check for refund requests, ensuring that only authorized roles can request refunds.
- Improved error handling to provide clearer feedback for unauthorized access attempts.
These changes enhance the security and functionality of the refund ticket process, ensuring proper role validation and user experience.
- Refactored the query for retrieving quiz attempts to utilize an AND condition for better filtering based on center mentor ID and additional filters.
- Improved the structure of the query to enhance readability and maintainability.
These changes enhance the data retrieval capabilities of the Quiz feature, ensuring more precise and efficient access to quiz attempts based on user and quiz criteria.
- Removed unnecessary logging from CronService methods to streamline execution.
- Introduced a new cron job in CronService to check if all schedule dates are completed and update the schedule status accordingly.
- Added a new query in OrderSchema to retrieve completed orders for moderators, including authorization checks for user roles.
- Updated PersonalMilestoneSchema to allow for creating multiple personal milestones with necessary input fields.
These changes improve the scheduling logic and enhance the GraphQL API's authorization mechanisms, ensuring better user experience and state management.
- Removed the taskRefundTicket method from CronService to streamline scheduling logic.
- Updated PayosService to include MessageContextType for chat messages, improving message context handling.
- Enhanced RefundTicketSchema with additional fields for requester and improved error handling for unauthorized access.
- Implemented logic to update order and schedule statuses upon refund ticket approval, ensuring proper state management.
- Modified ServiceSchema to utilize createManyAndReturn for message creation, enhancing notification efficiency.
These changes improve the handling of refund tickets and enhance the overall functionality of the service schemas, ensuring better user experience and state management.
- Added a new mutation to update personal milestones and change schedule status to IN_PROGRESS in PersonalMilestoneSchema.
- Refactored service notification logic to send messages to moderators upon service approval in ServiceSchema, improving communication flow.
- Cleaned up commented-out code for better readability and maintainability.
These changes enhance the GraphQL API by improving milestone management and service notification processes, ensuring better user experience and state management.
- Added support for creating relation inputs in PrismaCrudGenerator for object types.
- Implemented unauthorized access checks in OrderSchema to ensure user authentication.
- Added logic to prevent duplicate service registrations for users in OrderSchema.
- Updated PayosService to change order status from IN_PROGRESS to WAITING_QUIZ.
- Introduced a new mutation for creating multiple personal milestones in PersonalMilestoneSchema with necessary validation.
- Enhanced QuizSchema to update schedule status to WAITING_INTERVIEW upon quiz attempt creation.
These changes improve the robustness of the GraphQL API by adding necessary validations, enhancing user experience, and ensuring proper state management across various schemas.
- Updated the 'testCheckGrammar' field in DocumentSchema to accept additional arguments: documentId, pageId, and promptType, allowing for more flexible grammar checking options.
- Modified the checkGrammarForPage method in DocumentService to utilize the new promptType argument, enabling different processing types (CHECK_GRAMMAR, REWRITE_TEXT, etc.) for grammar checks.
- Improved logging for better debugging and tracking of grammar check results.
These changes enhance the document editing experience by providing more robust grammar checking capabilities and leveraging AI for various text processing tasks.
- Introduced a new 'testCheckGrammar' field in DocumentSchema to facilitate grammar checking for documents, leveraging the document service for processing.
- Updated DocumentService to implement grammar checking logic, including caching results and publishing suggestions.
- Enhanced QuizSchema by adding filter arguments for quiz attempts, allowing for more flexible data retrieval based on user and quiz IDs.
- Cleaned up whitespace and improved error handling in quiz attempt creation to ensure better user feedback.
These changes improve the document editing experience and enhance the quiz feature's data handling capabilities.
- Introduced a new 'JsonList' scalar type in the GraphQL schema to handle lists of JSON values, improving data structure flexibility.
- Updated the Quiz schema to replace 'Json' type with 'JsonList' for user input and questions, ensuring consistent data handling.
- Added new fields for retrieving quiz attempts, including individual and multiple attempts, with appropriate authorization checks for user roles.
- Enhanced error handling for quiz attempt retrieval to ensure proper access control and user feedback.
These changes improve the overall functionality and maintainability of the quiz feature, providing a more robust data model and user experience.
- Updated the subproject reference in the epess-database to the latest commit (54cb097) for consistency in project dependencies.
- This change ensures alignment with the most recent updates in the subproject, maintaining the integrity of the overall project structure.
- Updated package.json and package-lock.json to include the new dependency 'quill-to-pdf' for improved document export functionality.
- Modified DocumentSchema to introduce a new 'DocumentExportObject' type, facilitating document export operations.
- Cleaned up commented-out code in document.service.ts and minio.service.ts for better readability and maintainability.
- Adjusted quiz schema to expose user input and questions as JSON types, enhancing data flexibility.
- Updated workshop subscription logic to maintain accurate participant counts upon new subscriptions.
These changes improve the overall functionality and maintainability of the project, ensuring better document handling and schema consistency.
- Updated DocumentSchema to include detailed descriptions for fields, improving API documentation and usability.
- Adjusted the random sync logic threshold from 0.05 to 0.005 to reduce the frequency of sync requests, optimizing performance.
- Added new fields for collaboration session management, enhancing document interaction capabilities.
- Cleaned up whitespace in document.service.ts to improve code readability and maintainability.
- This change enhances the overall quality of the codebase by ensuring consistent formatting.
- Updated the Node.js version in .nvmrc from 22.6.0 to 24.0.0-nightly for compatibility with the latest features.
- Modified the launch.json configuration to reflect the new Node.js runtime path, ensuring the development environment is aligned with the updated version.
- Cleaned up whitespace in document.service.ts for improved code readability.
These changes ensure the project is using the latest Node.js version and maintain a clean and efficient development setup.
- Added AI_SUGGESTION event to DocumentEvent enum for improved document interaction.
- Implemented updateDocumentPreviewImage mutation in DocumentSchema to allow updating of document preview images.
- Integrated grammar checking functionality in DocumentService, utilizing OpenAI for real-time suggestions and caching results in Redis.
- Enhanced MinioService with methods for file upsert and document content retrieval.
- Updated PrismaTypes to include new relations and fields for better data structure alignment.
- Commented out unused RESTful service methods for future cleanup.
These changes improve the document editing experience by leveraging AI capabilities and enhancing the schema for better data management.
- Removed the 'packageValue' field from the User schema to streamline user data representation.
- Updated the subproject reference in the epess-database to the latest commit for consistency in project dependencies.
- These changes enhance the clarity of the user schema and ensure alignment with the latest database structure.
- Updated the message creation logic to include a default context of 'CHAT' in the data being saved, ensuring that all messages have a defined context.
- This change improves the consistency of message data and enhances the overall functionality of the messaging system.
- Removed 'pothos.generated.ts' from .gitignore as it is no longer relevant to the project.
- This change helps maintain a cleaner project structure by ensuring only necessary files are ignored.
- Improved quiz retrieval logic by ensuring a valid random index is calculated, preventing errors when no quizzes are available.
- Updated the Quiz schema to streamline field names and enhance clarity, replacing existing fields with more descriptive alternatives.
- Reformatted code for better readability and consistency, adhering to style guidelines for improved maintainability.
- Removed the requirement for 'scheduleId' in the quiz retrieval process, streamlining the logic and improving code clarity.
- Consolidated the quiz retrieval query to enhance maintainability while ensuring it still functions correctly with the existing data structure.
- Updated the .gitignore to clarify the purpose of the 'pothos.generated.ts' file, improving project documentation.
- Added 'pothos.generated.ts' to .gitignore to prevent tracking of generated files, improving project cleanliness and reducing unnecessary clutter in version control.
- Deleted the `pothos.generated.ts` file, which contained the PrismaTypes interface and related type definitions, as it was no longer needed in the project.
- This cleanup improves project maintainability by removing obsolete code and reducing clutter in the codebase.
- Replaced existing score and answers fields in the Quiz schema with more descriptive fields: numberOfCorrectAnswers, numberOfIncorrectAnswers, numberOfQuestions, correctPoints, totalPoints, and userInput.
- Updated the PrismaTypes interface to remove the questions relation and streamline the data model, ensuring better clarity and maintainability.
- Updated the subproject reference in the epess-database to the latest commit for consistency in project dependencies.
- Reformatted the quiz schema for consistent indentation and spacing, enhancing overall code clarity.
- Consolidated the random index calculation into a single line for improved readability.
- Maintained existing functionality while ensuring the code adheres to style guidelines for better maintainability.
- Added validation to ensure 'scheduleId' is provided when retrieving quizzes, enhancing error handling.
- Implemented a check for the existence of the schedule before proceeding with quiz retrieval, improving robustness.
- Reformatted code for better readability and consistency in the Quiz schema.
- Reformatted import statements and method calls to use consistent line endings and spacing, enhancing code clarity.
- Updated error handling messages to maintain uniformity across the schema.
- Improved overall readability by ensuring consistent use of semicolons and line breaks, making the code easier to navigate and maintain.
- Enhanced the quiz retrieval logic to ensure a valid random index is calculated based on the number of available quizzes, preventing potential errors when no quizzes are present.
- Updated the logic to use 'nrOfQuestions' from the quiz object for slicing the quizzes array, ensuring consistent behavior in quiz selection.
- Improved code clarity by refining comments related to the quiz selection process.
- Added logic to require 'scheduleId' for customers when retrieving quizzes, ensuring proper association with schedules.
- Implemented error handling for missing 'scheduleId' and non-existent schedules, improving robustness and user feedback.
- Refactored quiz retrieval logic for customers and center mentors to utilize the correct center mentor ID from the schedule, enhancing data integrity.
- Updated comments for clarity regarding the quiz selection process based on user roles.
- Removed the 'amount' argument from the quiz retrieval query to streamline the schema.
- Updated the quiz retrieval logic to use 'nrOfQuestions' from the quiz object instead of the removed 'amount' argument, ensuring consistent behavior in quiz selection.
- Improved code clarity by refining comments related to quiz selection logic.
- Added a new 'amount' argument to the quiz retrieval query, allowing users to specify the number of quizzes to return.
- Implemented a seeded randomization mechanism to select quizzes based on the user's ID, improving the randomness of quiz selection.
- Refactored the quiz retrieval logic to utilize the new randomization and amount features, enhancing user experience and engagement.
- Updated the subproject reference in the epess-database to the latest commit.
- Refactored the getDatamodel function in pothos.generated.ts to ensure it returns the latest datamodel structure, enhancing data retrieval consistency.
- Updated WorkshopSchema to notify customers when a workshop is scheduled, improving engagement and communication.
- Added logic to fetch active services and include center information in the notification process.
- Implemented message creation for customers with the role of CUSTOMER, ensuring they receive timely updates about workshops.
- Utilized PubSub for real-time notifications, enhancing user experience and interaction with the platform.
- Updated ResumeSchema to notify moderators when a new resume is submitted, improving communication and response times.
- Refactored notification logic to streamline the process of sending messages to all relevant moderators, ensuring timely updates.
- Removed redundant checks for center owner notifications, simplifying the code while maintaining functionality.
- Updated MessageSchema to include context-aware filtering for notifications, allowing retrieval based on recipientId for NOTIFICATION and SYSTEM contexts.
- Enhanced RefundTicketSchema to notify moderators upon refund requests, improving communication and response times.
- Modified ResumeSchema to send notifications to mentors and center owners when a new resume is submitted, ensuring timely updates.
- Improved ServiceSchema to notify center owners and mentors about service approvals, enhancing user engagement and awareness.
- Implemented role-based access control checks across schemas to ensure only authorized users can perform specific actions, enhancing security and user experience.