-
Notifications
You must be signed in to change notification settings - Fork 0
Reactor/user generated content #88
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
Conversation
- Update Engagement class to allow null reaction or comment, but not both - Add assertion in constructor to enforce at least one must be provided - Update copyWith method to handle nullable reaction - Adjust documentation to reflect new behavior
…ations - Introduce diverse engagement scenarios in fixtures: - Both reaction and comment - Reaction only - Comment only - Replace uniform pairing with a more realistic distribution
- Update Engagement model to support instances with only comment or only reaction - Add new test cases for comment-only and reaction-only scenarios - Modify existing tests to accommodate the new model structure - Ensure JSON serialization and deserialization work correctly for all scenarios
- Define new enum for user actions considered positive interactions - Includes actions like saving content, following entities, sharing content, and creating saved filters - Prepares for implementing in-app review prompt functionality
- Replace positiveInteractionThreshold with interactionCycleThreshold - Add eligiblePositiveInteractions list with specific interaction types - Maintain other existing configuration values
- Rename 'positiveInteractionThreshold' to 'interactionCycleThreshold' - Add 'eligiblePositiveInteractions' to specify counted user actions - Update documentation to reflect new eligibility requirements
- Add unit tests for PositiveInteractionType enum - Verify correct number of enum values - Test serialization and deserialization from string values - Ensure proper error handling for invalid string values
- Add test for non-empty eligiblePositiveInteractions in fixture - Update property name from positiveInteractionThreshold to interactionCycleThreshold - Add test for eligiblePositiveInteractions in copyWith method
- Change 'engagement' to 'comment' for ReportableEntity enum value - Update documentation to reflect that the report is specifically for user engagement comments
- Replace engagement with comment in ReportableEntity tests - Update containsAll, string values, and byName tests to reflect the change
- Updated Report entity type from engagement to comment in getReportsFixturesData function - This change ensures that the report fixtures are consistent with the type of entity being reported (comment)
Summary of ChangesHello @fulleni, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the application's user engagement and feedback mechanisms. It introduces a new Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a significant refactoring of user-generated content models, making the Engagement model more flexible by allowing either a reaction or a comment. It also enhances the AppReviewConfig with more granular controls for triggering review prompts. The changes are well-structured and include corresponding updates to fixtures and tests. My review includes a suggestion to remove a duplicated file to improve maintainability and a recommendation to make the enum serialization tests more robust.
Status
READY
Description
This pull request enhances the application's user engagement and feedback mechanisms. It introduces a new
PositiveInteractionTypeenum to define a broader range of user actions that can trigger in-app review prompts. TheEngagementmodel is made more flexible by allowing engagements to be composed of either a reaction or a comment, or both. Additionally, a clearer naming convention is adopted for reporting user-generated content by renamingReportableEntity.engagementtoReportableEntity.comment. These changes improve the configurability of user feedback prompts and the accuracy of content reporting.Type of Change