Skip to content

Comments

v3.4.1#670

Merged
theorm merged 8 commits intomasterfrom
develop
Feb 18, 2026
Merged

v3.4.1#670
theorm merged 8 commits intomasterfrom
develop

Conversation

@theorm
Copy link
Member

@theorm theorm commented Feb 18, 2026

No description provided.

theorm and others added 8 commits January 17, 2026 12:07
* 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
@theorm theorm merged commit c7016a6 into master Feb 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants