Skip to content

Conversation

@wvangeit
Copy link
Contributor

@wvangeit wvangeit commented Jun 3, 2025

What do these changes do?

As requested by JGO, expose the created_at field of registered function / job / collection objects. This makes it easier to recognize functions created in the frontend.

(I've also split up the function rpc tests in 3 files)

Related issue/s

https://github.com/ITISFoundation/private-issues/issues/187

How to test

Create a function, get it back, check if the created_at date is close to the time the function was registered.

Dev-ops

No changes

@wvangeit wvangeit added this to the Bazinga! milestone Jun 3, 2025
@wvangeit wvangeit requested a review from JavierGOrdonnez June 3, 2025 12:52
@wvangeit wvangeit self-assigned this Jun 3, 2025
@wvangeit wvangeit requested a review from pcrespov as a code owner June 3, 2025 12:52
@wvangeit wvangeit added the a:webserver webserver's codebase. Assigning the area is particularly useful for bugs label Jun 3, 2025
@wvangeit wvangeit added the a:apiserver api-server service label Jun 3, 2025
@wvangeit wvangeit requested a review from giancarloromeo as a code owner June 3, 2025 12:52
@wvangeit wvangeit added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 3, 2025
@wvangeit wvangeit changed the title Add the created_at field to function objects 🎨 Add the created_at field to registered function objects 🎨 Jun 3, 2025
@wvangeit
Copy link
Contributor Author

wvangeit commented Jun 3, 2025

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 3, 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

@codecov
Copy link

codecov bot commented Jun 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.22%. Comparing base (169d99e) to head (5ee15c9).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7797      +/-   ##
==========================================
+ Coverage   86.48%   88.22%   +1.74%     
==========================================
  Files        1813     1464     -349     
  Lines       69743    60930    -8813     
  Branches     1218      476     -742     
==========================================
- Hits        60316    53757    -6559     
+ Misses       9085     7052    -2033     
+ Partials      342      121     -221     
Flag Coverage Δ
integrationtests 64.21% <ø> (+0.01%) ⬆️
unittests 87.94% <100.00%> (+1.72%) ⬆️
Components Coverage Δ
api ∅ <ø> (∅)
pkg_aws_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library 93.15% <100.00%> (+<0.01%) ⬆️
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration 69.92% <ø> (ø)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 85.09% <ø> (ø)
agent 96.29% <ø> (ø)
api_server 91.73% <100.00%> (+0.03%) ⬆️
autoscaling 96.03% <ø> (∅)
catalog 92.29% <ø> (ø)
clusters_keeper 99.13% <ø> (ø)
dask_sidecar 91.79% <ø> (ø)
datcore_adapter 97.94% <ø> (ø)
director 76.73% <ø> (ø)
director_v2 91.09% <ø> (ø)
dynamic_scheduler 96.69% <ø> (ø)
dynamic_sidecar 90.08% <ø> (ø)
efs_guardian 89.65% <ø> (ø)
invitations 93.00% <ø> (ø)
payments 92.57% <ø> (ø)
resource_usage_tracker 88.98% <ø> (-0.11%) ⬇️
storage 87.46% <ø> (-0.32%) ⬇️
webclient ∅ <ø> (∅)
webserver 83.75% <ø> (-0.05%) ⬇️

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 169d99e...5ee15c9. 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.

@wvangeit wvangeit removed the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 3, 2025
@pcrespov pcrespov requested a review from Copilot June 3, 2025 15:40
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

Adds the created_at timestamp to registered function, job, and collection objects and updates all related models, service mappings, API specs, and tests to surface this field.

  • Extends internal service encoding/decoding (_functions_service) to include created_at
  • Updates Pydantic models and database schemas to add created_at
  • Adjusts OpenAPI specs and client/server tests to expect and verify the new field

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
services/web/server/src/.../_functions_service.py Maps created DB field to created_at in returned DTOs
packages/models-library/src/models_library/functions.py Adds created_at attribute to Registered* model classes
services/web/server/src/.../api/v0/openapi.yaml Defines new createdAt property in OpenAPI spec
services/api-server/openapi.json Adds created_at to JSON schema and required lists
tests (both webserver and api-server) Updates fixtures and assertions to account for the new timestamp
Comments suppressed due to low confidence (1)

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml:15465

  • Property name createdAt in the YAML spec conflicts with the snake_case created_at used elsewhere (e.g., in JSON and tests). Align naming across all API specs.
createdAt:

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

Thx.

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.

thanks!

@wvangeit wvangeit added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 4, 2025
@wvangeit
Copy link
Contributor Author

wvangeit commented Jun 4, 2025

@mergify refresh

@mergify
Copy link
Contributor

mergify bot commented Jun 4, 2025

refresh

✅ Pull request refreshed

@wvangeit
Copy link
Contributor Author

wvangeit commented Jun 4, 2025

@mergify refresh

@mergify
Copy link
Contributor

mergify bot commented Jun 4, 2025

refresh

✅ Pull request refreshed

@wvangeit wvangeit enabled auto-merge (squash) June 4, 2025 11:37
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 4, 2025

@wvangeit wvangeit requested a review from pcrespov June 4, 2025 11:40
Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

thx

@wvangeit wvangeit merged commit 6748f5e into ITISFoundation:master Jun 4, 2025
95 checks passed
@wvangeit wvangeit deleted the add_registered_at_to_functions branch June 4, 2025 11:50
@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:apiserver api-server service a:webserver webserver's codebase. Assigning the area is particularly useful for bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants