Update token author group#826
Closed
tenkus47 wants to merge 334 commits into
Closed
Conversation
refactor and update test
- Added `AUTH0_ADDITIONAL_CLIENT_IDS` to the developer setup documentation for improved Auth0 configuration. - Implemented `_allowed_auth0_audiences` function to support multiple audience checks during token verification. - Updated `verify_auth0_token` to validate token audiences against allowed audiences, enhancing security measures. - Added imports for new functions in the test suite to ensure comprehensive testing of Auth0 functionalities.
- Added optional start_date and end_date fields to SeriesListItemDTO for better scheduling information. - Introduced _plan_total_days and _series_schedule_from_plans functions to calculate total days and determine start and end dates from plans. - Updated _series_to_list_item_dto to incorporate scheduling details. - Enhanced get_random_featured_series to retrieve and include schedule information from the first plan. - Added tests to validate the inclusion of schedule details in the series response.
…d series response - Added tests for _series_schedule_from_plans to validate behavior with various plan scenarios, including empty plans, unpublished plans, and language filtering. - Enhanced test_get_featured_series_includes_schedule_fields to verify inclusion of schedule details in the response. - Updated test_get_random_featured_series_schedule_respects_language_filter to ensure correct filtering by language in series scheduling.
…s_includes_group_info for clarity and consistency.
Enhance series response models and service to include schedule details
…d services - Introduced description_long as an optional field in GroupMetadataDTO, AuthorGroupMetadata, and GroupMetadataInput. - Updated the _metadata_to_dtos, create_author_group, and update_author_group functions to handle the new description_long field.
Add description_long field to group metadata models and update relate…
parent series id
…end into auth_audience
- Added a new method `search_segments_by_content` in the Segment model to enable searching segments by content using regex. - Introduced a service function `search_segments_by_content_service` to handle search requests and return formatted responses. - Created a new API endpoint for searching segments, accepting a content parameter. - Updated response models to include `SegmentSearchRequest` for validation of search input. - Added tests for the search functionality, including success cases and validation for empty content.
Implement segment search functionality and related updates
- Created a new migration script to merge the accumulator session and day shareable heads. - Defined revision identifiers and upgrade/downgrade functions for future database schema changes.
… test - Modified AccumulatorDTO to set user_id as optional, defaulting to None. - Added a test to verify that preset accumulators can convert to DTOs with a null user_id.
Add migration to merge accumulator session and day shareable heads
…ce response structure - Updated `get_bookmarks_by_user_id` to return a tuple of bookmarks and total count, allowing for pagination. - Modified `BookmarksResponse` to include total, skip, and limit fields for better client-side handling. - Adjusted service and view layers to accept and pass pagination parameters (skip and limit). - Enhanced tests to validate the new pagination functionality and ensure correct behavior across various scenarios.
- Included new routers for tradition views in the main API. - Updated configuration to specify the worker LLM model as "gemini-2.5-flash-lite".
Add tradition views to API and update configuration for worker LLM model
Refactor bookmark services and models to support pagination and enhan…
- Introduced `OnboardingStatusResponse` and `UpdateOnboardingStatusRequest` models to handle onboarding status. - Added `has_seen_onboarding` field to the `Users` model. - Implemented `get_onboarding_status` and `update_onboarding_status` functions in the service layer. - Created new API endpoints for retrieving and updating onboarding status. - Enhanced tests to cover onboarding status retrieval and update scenarios.
Add an alembic stamp marker and make the migration idempotent so sync_alembic_stamp cannot advance past a missing column. Co-authored-by: Cursor <cursoragent@cursor.com>
Add onboarding status functionality to user API
- Updated `get_series_by_group_id` to use an outer join with `SeriesPartner`, allowing retrieval of both owned and partner series associated with a group. - Modified the filtering logic to include series linked to the group through partners. - Added a test to verify the inclusion of both owned and partner series in the results.
- Updated the `get_series_by_group_id` function to utilize an outer join with `SeriesPartner`, ensuring both owned and partner series are retrieved for a group. - Adjusted filtering criteria to encompass series linked through partners. - Added a test case to confirm the correct inclusion of both series types in the results.
- Implemented a check in the migration to prevent adding the 'ACCUMULATOR' value to the sessiontype enum if it already exists. - Updated the sync_alembic_stamp script to include a marker for the new migration.
- Modified the unique constraint in the SeriesPartner table to enforce uniqueness on the combination of series_id and group_id. - Adjusted the corresponding table arguments in the SeriesPartner model to reflect this change.
- Introduced the PlanVideo model to manage videos associated with plans. - Updated the Plan model to include a relationship with PlanVideo. - Added DTOs for PlanVideo and its summaries in response models. - Implemented CRUD operations for managing plan videos in the CMS. - Enhanced public and user services to retrieve and display plan videos. - Updated migration scripts to include the new plan_videos table. - Added tests to ensure correct functionality of the new video management features.
Series partners table
- Introduced `get_series_partner_id_map_for_group` and `get_user_series_enrollment_partner_map` functions to retrieve mappings for series partners and user enrollments. - Updated the `GroupSeriesListItemDTO` to include `series_partner_id` and `is_enrolled` fields. - Refactored the `_series_to_dtos` function to utilize the new mappings for enhanced series detail retrieval. - Modified the `get_author_group_detail` endpoint to support user authentication and pass user ID for enrollment checks. - Added tests for the new mapping functions and updated existing tests to cover new functionality.
|
Too many files changed for review. ( |
|
Tech-lo
approved these changes
Jun 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.