-
Notifications
You must be signed in to change notification settings - Fork 0
Feat filter bookmarks saved entry handling #67
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 core from commit 828b984 to tag v1.2.0 - Update data-client, data-mongodb, data-repository, email-client, email-repository, and email-sendgrid from specific commits to tag v1.0.0 - Update http-client from commit 57f6bcf to tag v1.0.1
- Add savedFilters to the list of followedSources, followedTopics, and savedHeadlines in the defaultUserPreferences object - This ensures that new user preferences will have an empty list for savedFilters by default
- Add savedFilters field to user_content_preferences collection - Initialize savedFilters as an empty list for existing users
- Implement limit check for saved filters based on user account type - Update existing limit logic to handle country, source, and topic items separately - Add new Premium, Standard, and Guest limits for saved filters
- Add new migration class for adding saved filters to user preferences - Update allMigrations list to include the new migration
- Create new migration to add 'savedFilters' field to existing user_content_preferences documents - Set default value as an empty array for existing documents - Implement 'up' method to add the field and 'down' method to remove it
- Add version 1.0.0 to pubspec.yaml for initial release
- Create CHANGELOG.md file with initial entry for 1.0.0 release - Add date and description of the initial release under semantic versioning
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 user customization by integrating 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 functionality for saved filters, including a database migration and updates to enforce user limits. While the migration and data model changes are well-implemented, I've identified critical bugs in the limit enforcement logic in default_user_preference_limit_service.dart. Specifically, missing break statements in switch cases will cause incorrect limits to be applied to users. Additionally, the logic for guest users has not been fully updated to handle the new saved filters, creating an inconsistency. Please address these issues to ensure the feature works as intended.
Uh oh!
There was an error while loading. Please reload this page.
Status
READY
Description
This pull request enhances user customization by integrating a new savedFilters feature. It includes the necessary database schema updates and a migration to ensure backward compatibility for existing users. Furthermore, it refines the application's user preference management by introducing role-based limits for saved filters. The PR also tidies up dependency management by updating various package references to use semantic version tags, and establishes a changelog for future release tracking.
Type of Change