Skip to content

Conversation

@pcrespov
Copy link
Member

@pcrespov pcrespov commented May 20, 2025

What do these changes do?

ReDoc

This pull request introduces multiple updates to the API server's OpenAPI documentation and route definitions. The changes focus on improving descriptions, aligning versioning formats, and enhancing consistency in route definitions. Additionally, deprecated routes and changelog details have been updated for clarity.

Here an example. SEE badge above for details on new doc.
image

Related issue/s

How to test

Dev-ops

None

@pcrespov pcrespov self-assigned this May 20, 2025
@codecov
Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.07%. Comparing base (01ef5cf) to head (14acdbe).
Report is 1 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (01ef5cf) and HEAD (14acdbe). Click for more details.

HEAD has 31 uploads less than BASE
Flag BASE (01ef5cf) HEAD (14acdbe)
unittests 32 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #7707       +/-   ##
===========================================
- Coverage   87.35%   69.07%   -18.29%     
===========================================
  Files        1839      802     -1037     
  Lines       71084    36858    -34226     
  Branches     1203      174     -1029     
===========================================
- Hits        62096    25459    -36637     
- Misses       8660    11341     +2681     
+ Partials      328       58      -270     
Flag Coverage Δ
integrationtests 64.46% <ø> (-0.05%) ⬇️
unittests 91.59% <100.00%> (+5.02%) ⬆️
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.01% <ø> (-8.06%) ⬇️
agent ∅ <ø> (∅)
api_server 91.59% <100.00%> (ø)
autoscaling ∅ <ø> (∅)
catalog ∅ <ø> (∅)
clusters_keeper ∅ <ø> (∅)
dask_sidecar ∅ <ø> (∅)
datcore_adapter ∅ <ø> (∅)
director ∅ <ø> (∅)
director_v2 77.80% <ø> (-13.30%) ⬇️
dynamic_scheduler ∅ <ø> (∅)
dynamic_sidecar 88.83% <ø> (-1.36%) ⬇️
efs_guardian ∅ <ø> (∅)
invitations ∅ <ø> (∅)
payments ∅ <ø> (∅)
resource_usage_tracker ∅ <ø> (∅)
storage ∅ <ø> (∅)
webclient ∅ <ø> (∅)
webserver 58.53% <ø> (-27.06%) ⬇️

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 01ef5cf...14acdbe. 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.

@pcrespov pcrespov force-pushed the is7380/fix-listing-solvers branch from 86a2063 to a84041e Compare May 20, 2025 19:23
@pcrespov pcrespov added this to the Bazinga! milestone May 20, 2025
@pcrespov pcrespov added the a:api framework api, data schemas, label May 20, 2025
@pcrespov pcrespov changed the title WIP: updates oas description 🎨 public-api: updates openapi routes descriptions May 20, 2025
@pcrespov pcrespov marked this pull request as ready for review May 20, 2025 19:31
@pcrespov pcrespov requested a review from giancarloromeo May 20, 2025 19:31
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 enhances the OpenAPI routes descriptions by refactoring inline description strings to use a consistent helper function (create_route_description) and updates the changelog versioning details for clarity.

  • Refactored route descriptions in multiple endpoints to use create_route_description.
  • Updated changelog version numbers and deprecation notices consistently.
  • Revised documentation in the helper function to reflect its behavior.

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
services/api-server/src/simcore_service_api_server/api/routes/wallets.py Updated route descriptions with create_route_description.
services/api-server/src/simcore_service_api_server/api/routes/studies_jobs.py Adjusted changelog versions and description texts for studies jobs.
services/api-server/src/simcore_service_api_server/api/routes/studies.py Migrated to create_route_description and updated version numbers.
services/api-server/src/simcore_service_api_server/api/routes/solvers_jobs_read.py Refactored description strings and updated version details.
services/api-server/src/simcore_service_api_server/api/routes/solvers_jobs.py Updated several endpoints to use create_route_description and renamed functions for clarity.
services/api-server/src/simcore_service_api_server/api/routes/solvers.py Modified route descriptions and updated changelog versioning.
services/api-server/src/simcore_service_api_server/api/routes/credits.py Updated endpoint descriptions with create_route_description.
services/api-server/src/simcore_service_api_server/api/routes/_constants.py Updated docstring for create_route_description; minor documentation changes.
Files not reviewed (1)
  • services/api-server/openapi.json: Language not supported
Comments suppressed due to low confidence (1)

services/api-server/src/simcore_service_api_server/api/routes/studies_jobs.py:217

  • Consider correcting the grammar in the base description to 'Get a job for a given study' for clarity.
base="Gets a jobs for a given study",

@pcrespov pcrespov changed the title 🎨 public-api: updates openapi routes descriptions 🎨 public-api: cleanup openapi routes descriptions May 20, 2025
@pcrespov pcrespov requested review from wvangeit and removed request for giancarloromeo May 20, 2025 19:32
@pcrespov pcrespov enabled auto-merge (squash) May 20, 2025 19:35
@pcrespov
Copy link
Member Author

@mergify queue

@pcrespov pcrespov added the 🤖-automerge marks PR as ready to be merged for Mergify label May 20, 2025
@mergify
Copy link
Contributor

mergify bot commented May 20, 2025

queue

🟠 Waiting for conditions to match

  • -closed [📌 queue requirement]
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • any of: [📌 queue -> configuration change requirements]
    • -mergify-configuration-changed
    • check-success = Configuration changed
  • any of: [🔀 queue conditions]
    • all of: [📌 queue conditions of queue default]
      • #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
      • label=🤖-automerge
      • 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

Copy link
Contributor

@wvangeit wvangeit left a comment

Choose a reason for hiding this comment

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

👍🏻

@sonarqubecloud
Copy link

@pcrespov pcrespov merged commit 973d6f4 into ITISFoundation:master May 21, 2025
92 of 95 checks passed
@pcrespov pcrespov deleted the is7380/fix-listing-solvers branch May 21, 2025 11:34
@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

🤖-automerge marks PR as ready to be merged for Mergify a:api framework api, data schemas,

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants