Skip to content

Conversation

@pcrespov
Copy link
Member

@pcrespov pcrespov commented May 16, 2025

What do these changes do?

ReDoc

  • ✨Adds version_display in Solver response model (version bump 0.7.0 → 0.7.1)
  • ✅ Updated solver public-api tests
  • 📝 Improved doc of OAS

image

Related issue/s

How to test

cd services/api-server
make install-dev
pytest -vv tests/unit/api_solvers/test_api_routers_solvers.py

Dev-ops

None

@pcrespov pcrespov self-assigned this May 16, 2025
@pcrespov pcrespov added a:api framework api, data schemas, a:apiserver api-server service labels May 16, 2025
@pcrespov pcrespov added this to the Bazinga! milestone May 16, 2025
@pcrespov pcrespov enabled auto-merge (squash) May 16, 2025 13:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new field, version_display, into the Solver response model and updates API route descriptions and tests accordingly. The key changes include:

  • Adding the version_display field to the Solver model with corresponding updates in factory methods.
  • Updating API routes to include changelog entries documenting the introduction of version_display.
  • Refactoring and extending API tests to cover the new endpoints and behavior.

Reviewed Changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated no comments.

File Description
services/api-server/tests/unit/api_solvers/test_api_routers_solvers.py Renamed and added tests for improved clarity on solver endpoints, including pagination and release-fetching functionality.
services/api-server/src/simcore_service_api_server/models/schemas/solvers.py Added the version_display field with type annotations and updated factory methods to assign its value.
services/api-server/src/simcore_service_api_server/api/routes/solvers.py Updated endpoint descriptions with changelog entries to document version_display changes and refined route implementations.
Files not reviewed (3)
  • services/api-server/VERSION: Language not supported
  • services/api-server/openapi.json: Language not supported
  • services/api-server/setup.cfg: Language not supported
Comments suppressed due to low confidence (2)

services/api-server/src/simcore_service_api_server/models/schemas/solvers.py:44

  • [nitpick] Consider expanding the documentation for the 'version_display' field to clarify its intended format and use case for future maintainers.
version_display: Annotated[str | None, Field(description="A user-friendly or marketing name for the release.")] = None

services/api-server/tests/unit/api_solvers/test_api_routers_solvers.py:123

  • [nitpick] Consider renaming 'test_list_solver_ports_again' to a more descriptive name that clearly indicates its specific purpose, to avoid potential confusion with similar tests.
async def test_list_solver_ports_again(

@pcrespov pcrespov requested a review from giancarloromeo May 16, 2025 13:38
Copy link
Member

@mguidon mguidon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@codecov
Copy link

codecov bot commented May 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.10%. Comparing base (37d7a7d) to head (b67f8ee).
Report is 1 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (37d7a7d) and HEAD (b67f8ee). Click for more details.

HEAD has 30 uploads less than BASE
Flag BASE (37d7a7d) HEAD (b67f8ee)
unittests 31 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #7694       +/-   ##
===========================================
- Coverage   87.55%   69.10%   -18.46%     
===========================================
  Files        1804      794     -1010     
  Lines       70198    36709    -33489     
  Branches     1137      170      -967     
===========================================
- Hits        61465    25368    -36097     
- Misses       8423    11283     +2860     
+ Partials      310       58      -252     
Flag Coverage Δ
integrationtests 64.44% <ø> (+0.06%) ⬆️
unittests 91.62% <100.00%> (+4.84%) ⬆️
Components Coverage Δ
api ∅ <ø> (∅)
pkg_aws_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library ∅ <ø> (∅)
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration ∅ <ø> (∅)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 77.24% <ø> (-8.43%) ⬇️
agent ∅ <ø> (∅)
api_server 91.62% <100.00%> (+0.02%) ⬆️
autoscaling ∅ <ø> (∅)
catalog ∅ <ø> (∅)
clusters_keeper ∅ <ø> (∅)
dask_sidecar ∅ <ø> (∅)
datcore_adapter ∅ <ø> (∅)
director ∅ <ø> (∅)
director_v2 77.71% <ø> (-13.41%) ⬇️
dynamic_scheduler ∅ <ø> (∅)
dynamic_sidecar 89.06% <ø> (-1.10%) ⬇️
efs_guardian ∅ <ø> (∅)
invitations ∅ <ø> (∅)
payments ∅ <ø> (∅)
resource_usage_tracker ∅ <ø> (∅)
storage ∅ <ø> (∅)
webclient ∅ <ø> (∅)
webserver 58.54% <ø> (-27.28%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37d7a7d...b67f8ee. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pcrespov
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented May 16, 2025

queue

🟠 Waiting for conditions to match

  • -closed [📌 queue requirement]
  • any of: [🔀 queue conditions]
    • all of: [📌 queue conditions of queue default]
      • label=🤖-automerge
      • #approved-reviews-by >= 2 [🛡 GitHub branch protection]
      • #approved-reviews-by>=2
      • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
      • #changes-requested-reviews-by=0
      • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
      • #review-threads-unresolved=0
      • -conflict
      • -draft
      • base=master
      • branch-protection-review-decision = APPROVED [🛡 GitHub branch protection]
      • label!=🤖-do-not-merge
      • any of: [🛡 GitHub branch protection]
        • check-skipped = deploy to dockerhub
        • check-neutral = deploy to dockerhub
        • check-success = deploy to dockerhub
      • any of: [🛡 GitHub branch protection]
        • check-success = system-tests
        • check-neutral = system-tests
        • check-skipped = system-tests
      • any of: [🛡 GitHub branch protection]
        • check-success = unit-tests
        • check-neutral = unit-tests
        • check-skipped = unit-tests
      • any of: [🛡 GitHub branch protection]
        • check-success = check OAS' are up to date
        • check-neutral = check OAS' are up to date
        • check-skipped = check OAS' are up to date
      • any of: [🛡 GitHub branch protection]
        • check-success = integration-tests
        • check-neutral = integration-tests
        • check-skipped = integration-tests
      • any of: [🛡 GitHub branch protection]
        • check-success = build-test-images (frontend) / build-test-images
        • check-neutral = build-test-images (frontend) / build-test-images
        • check-skipped = build-test-images (frontend) / build-test-images
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • any of: [📌 queue -> configuration change requirements]
    • -mergify-configuration-changed
    • check-success = Configuration changed

@sonarqubecloud
Copy link

@pcrespov pcrespov merged commit e888734 into ITISFoundation:master May 17, 2025
92 of 95 checks passed
@pcrespov pcrespov deleted the is7692/solver-display-version branch May 17, 2025 10:12
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 6, 2025
92 tasks
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:api framework api, data schemas, a:apiserver api-server service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants