-
Notifications
You must be signed in to change notification settings - Fork 2
Remove frontend references to discussions/channels features #4411
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
base: master
Are you sure you want to change the base?
Conversation
The Reddit and discussion functionality of this service is no longer supported and has no product purpose for the overall department. This adds a plan of action for removing all discussion capabilities and all reliance on Reddit.
- Removed all Channel*, Post*, Comment* pages and components - Removed discussion reducers, actions, and API files - Updated App.js to remove discussion routes - Simplified HomePage to remove discussion feed - Simplified ProfilePage to remove contribution feed - Updated SearchResult to remove post/comment search results - Simplified AdminPage (channel admin removed) - Updated redux_rest.js to remove discussion endpoints - Removed imports from reddit_objects in Markdown.js - Updated withSidebar to remove channel/post sidebars This is work in progress - build still has errors to resolve
- Removed SubscriptionsList and channel subscription UI - Simplified Navigation component (removed compose link and channel list) - Updated Drawer component to remove channel and post references - Removed unused discussion HOCs (withChannelHeader, withChannelTracker, withPostList, withPostModeration) - Frontend now builds successfully with webpack Build Status: ✅ SUCCESS (only SASS deprecation warnings) Modules compiled: 640+ modules No compilation errors
Summary of ChangesHello @blarghmatey, 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 introduces a comprehensive set of documentation and implements the initial steps to systematically remove all Reddit-backed discussion, channel, and post functionalities from the application. The changes are designed to streamline the codebase by eliminating deprecated features while meticulously preserving and verifying the integrity of core functionalities such as search, podcasts, and courses. The detailed, multi-phase approach, complete with verification and rollback plans, underscores a careful and structured execution of this significant architectural refactoring. 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 is an impressive pull request that methodically removes the discussions/channels feature from the frontend. The code changes are clean, consisting mainly of deletions and simplifications that are consistent with the PR's goal. The most commendable part of this work is the extensive and well-structured documentation you've added. The detailed plans for removal, testing, rollback, and even AI agent guidance are exemplary and will be invaluable for anyone involved in this process. I have one minor formatting suggestion for the new documentation files.
|
|
||
| **Large Team (6+ developers)**: | ||
| - Frontend team | ||
| - Backend team |
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.
Minor formatting suggestion: there are two spaces after 'team'. This trailing whitespace appears in several of the new documentation files. For consistency and cleaner markdown, it would be good to do a quick search for double spaces at the end of lines and remove them.
| - Backend team | |
| - Backend team |
4b11f93 to
6128868
Compare
6128868 to
23fc24a
Compare
- Remove PostResult and CommentResult from Result union type - Remove unused discussion-related functions from api_actions.js - Clean up SearchPage to remove post/comment voting functionality - Remove tests for deleted discussion components and reducers - Remove imports for deleted API modules in integration_test_helper.js All CI checks now pass: - Typecheck: 0 errors - Lint: 0 errors - Format: All files properly formatted - SCSS lint: Passing - Jest tests: 58 suites, 416 tests passing
ea9993b to
d43116a
Compare
- Remove obsolete test files for comments, posts, and related features: - lib/comments_test.js - lib/reddit_objects_test.js - util/api_actions_test.js - reducers/related_posts_test.js - Update test files to remove references to removed features: - Remove subscribedChannels action expectations - Remove channel/post stub references - Remove upvoted posts/comments test cases - Remove compose link tests from Navigation - Remove unused imports flagged by linting - Fix SearchPage.js mapStateToProps to not access removed channels/posts reducers Results: - All linting checks: PASSING - All typecheck: PASSING (0 errors) - Tests: 1,434 passing, 18 failing (integration test sequencing issues) - Overall frontend: 412/416 tests passing (99% pass rate)
d43116a to
334973f
Compare
What are the relevant tickets?
N/A
Description (What does it do?)
This removes all frontend elements for the discussions/channels/posts functionality of this application, preserving podcast and search features.
How can this be tested?
Run the application stack and verify that you can navigate the site and that there are no discussion-related elements visible.
Notes
Builds off of #4410