Conversation
* added is admin check * Implement admin service for cache maintenance actions and update related schemas - Added `AdminPatchRequest` interface and JSON schema for maintenance actions. - Introduced `Admin` interface and JSON schema for admin service response. - Updated `admin.class.ts` to handle cache maintenance actions. - Enhanced cache management with well-known cache rebuild functionality. - Updated job handling for cache updates in `updateMediaSourcesCache`, `updateTopicsCache`, and `updateYears`. - Modified VSCode launch configurations and tasks for improved development experience.
* Replace user-requests-reviews with special membership reviews Removed the user-requests-reviews service and introduced user-special-membership-requests-reviews service with updated implementation and tests. Updated service registration and internal API service list to use the new special membership reviews service. * Remove user-requests-reviews from internalApiServices The 'user-requests-reviews' service was removed from the internalApiServices array in index.ts. This may be due to deprecation or refactoring of related functionality. * upgrade jsonwebtoken * Update loadFacetRanges.ts avoid parsing errors for 500 solr errors * Add magic link authentication service and tests Introduces a new MagicLinkService for sending magic link emails to users for authentication. Includes service implementation, input validation hooks, service registration, and comprehensive unit tests covering various scenarios such as user existence, celery client failures, and JWT token generation. * Update index.ts * Update magic-link.class.ts adapt to IML auth token * add bitmap * Refactor user requests reviews service for special membership Removed the old user-requests-reviews service and replaced it with user-special-membership-requests-reviews. Updated service registration and added new implementation and unit tests for the new service. * Update loadFacetRanges.ts * implement copilot suggestions * Add magic link token verification and improve tests Implemented a new 'get' method in MagicLinkService to verify magic link tokens and handle invalid tokens with appropriate errors. Updated unit tests to cover token verification, error cases, and adjusted behavior to return 'ok' when user is not found or inactive. Also removed unnecessary Debug import and enablement from user-special-membership-requests-reviews tests. * Add magicLink configuration to app settings and schema Introduces a new 'magicLink' configuration section with 'secret' and 'expiration' fields to config/default.json, updates the TypeScript config interface, and extends the JSON schema to require and validate this new section. This supports configuration for a magic link authentication service. * Refactor magic link service to use Redis for token storage Replaces in-memory or DB token storage with Redis for magic link tokens, improving security and scalability. Updates the service to store, retrieve, and delete tokens in Redis, and adjusts tests to mock Redis interactions accordingly. * Update user-special-membership-requests-reviews.class.ts * Update default.json * Add Magic Link JWT authentication strategy Introduces a custom MagicLinkJWTStrategy for one-time magic link token authentication, including cache validation and user lookup. Updates type definitions and schema to support the new 'magic-link' strategy in authentication requests. * Update default.json * Refactor magic link authentication to use Redis and slim user Updated MagicLinkJWTStrategy to use Redis for token validation and to return a slim user object instead of the full user. Removed the unused 'get' method from MagicLinkService and commented out related unit tests. This streamlines magic link authentication and improves security by ensuring one-time token usage. * Add magic-link config and fix strategy registration Add a magic-link entry to config (entity: null) and move MagicLinkJWTStrategy registration earlier in authentication initialization. This removes the duplicate registration and ensures the magic-link strategy is registered in the correct order relative to jwt/local strategies (I know this sounds strange). * Updated docstring Co-authored-by: Copilot <[email protected]> * Remove unused imports Co-authored-by: Copilot <[email protected]> * Remove unused imports Co-authored-by: Copilot <[email protected]> * Remove unused imports Co-authored-by: Copilot <[email protected]> * Remove unused imports Co-authored-by: Copilot <[email protected]> * Remove unused imports Co-authored-by: Copilot <[email protected]> * Removed copy-paste Co-authored-by: Copilot <[email protected]> * Remove unused import Co-authored-by: Copilot <[email protected]> * Update src/authentication.ts Co-authored-by: Copilot <[email protected]> * implement copilot suggestions and add tests * remove bad configuration --------- Co-authored-by: Daniele Guido <[email protected]> Co-authored-by: Roman Kalyakin <[email protected]> Co-authored-by: Copilot <[email protected]>
…#669) * Add topic relevance sorting and related functions to Solr integration * fixed tests
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.