IEBH-353: Sync with the latest changes#9
Merged
vmoshynskyi merged 2 commits intomainfrom Nov 24, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR synchronizes the codebase with the latest changes from the pilot repository, modernizing Python type annotations to leverage Python 3.10+ features and updating key dependencies. The changes eliminate deprecated typing imports in favor of built-in type syntax (PEP 585/604), add a new network_origin field to activity tracking, and upgrade the FastAPI framework to a newer version.
- Modernize type annotations to use Python 3.10+ built-in types (type[T], X | Y, collections.abc imports)
- Add
network_originfield to item and dataset activity models for enhanced tracking - Update dependencies: FastAPI 0.88.0 → 0.115.13, pilot-platform-common 0.3.0 → 0.8.1, testcontainers 3.5.4 → 3.6.1
Reviewed changes
Copilot reviewed 24 out of 25 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/fixtures/jq.py | Replace Type import with built-in type syntax; convert ellipsis method stubs to pass |
| tests/fixtures/components/metadata_item.py | Add AsyncGenerator import from collections.abc; change fixture from yield to return; add refresh parameter documentation |
| tests/fixtures/components/item_activity.py | Add AsyncGenerator import; add network_origin parameter to factory methods; change fixture from yield to return |
| tests/fixtures/components/dataset_activity.py | Add AsyncGenerator import; add network_origin parameter; add new SHARING_REQUEST_UPDATE activity type; change fixture from yield to return |
| tests/fixtures/app.py | Import Callable from collections.abc instead of typing |
| tests/components/test_parameters.py | Use inspect.get_annotations() instead of inspect.signature() for cleaner annotation access |
| search/components/schemas.py | Remove __future__ annotations import; add string quotes to forward reference in return type |
| search/components/project_files/views.py | Remove Union import; use built-in union syntax (str | None) |
| search/components/project_files/parameters.py | Replace deprecated regex parameter with pattern in Query validators |
| search/components/parameters.py | Remove __future__ annotations and Type import; use built-in type syntax with string quotes for forward reference |
| search/components/models.py | Remove __future__ annotations import; add string quotes to forward reference |
| search/components/metadata_item/filtering.py | Remove Union import; use built-in union syntax |
| search/components/item_activity/schemas.py | Replace ItemActivityChange model with generic dict[str, Any]; add network_origin field |
| search/components/item_activity/models.py | Remove ItemActivityChange class; use dict[str, Any] for changes; add network_origin field with default |
| search/components/item_activity/index.py | Add network_origin field to Elasticsearch index mapping |
| search/components/exceptions.py | Import Sequence from collections.abc instead of typing |
| search/components/dataset_activity/schemas.py | Remove DatasetActivityChangeSchema class; use dict[str, Any] for changes; add network_origin field |
| search/components/dataset_activity/models.py | Remove DatasetActivityChange class; add SHARING_REQUEST_UPDATE activity type; add network_origin field with default |
| search/components/dataset_activity/index.py | Add network_origin field to Elasticsearch index mapping |
| pyproject.toml | Update version to 2.2.10; constrain Python to 3.10.x; update FastAPI to ^0.115.8 and pilot-platform-common to 0.8.1; change dev-dependencies to group.dev.dependencies |
| poetry.lock | Update lock file with new dependency versions (FastAPI 0.115.13, pilot-platform-common 0.8.1, testcontainers 3.6.1); replace aioredis with redis; update async-timeout, starlette, typing-extensions |
| migrations/index_checker.py | Remove Type import; use built-in type syntax |
| Dockerfile | Update base image from Python 3.10.12 to 3.10.14 |
| .pre-commit-config.yaml | Uncomment and update docformatter hook from v1.7.5 to v1.7.7 |
| .github/workflows/hdc-pipeline.yml | Add new CI/CD pipeline configuration for HDC deployment workflow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Add the latest changes from the pilot repo.