Skip to content

fix: use neutral service-info defaults - #220

Merged
uniqueg merged 1 commit into
devfrom
fix/service-info-defaults
Oct 22, 2026
Merged

uniqueg merged 1 commit into
devfrom
fix/service-info-defaults

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #205.

  • Service info defaults in pro_tes/config.yaml are now neutral placeholders on reserved example domains (RFC 2606): id: org.example.protes, organization "Example Organization" (https://example.org), a generic description, documentationUrl and environment: dev. The dummy storage location is dropped.
  • On startup, warn_placeholder_service_info() (in pro_tes/app.py) logs a warning while id or organization still hold the placeholders, naming the fields to set. This follows cloud-registry (feat: sequential execution of middleware #160).
  • The README documents the service info, and its link to the app configuration now points to pro_tes/config.yaml.

Light lane: this changes config defaults and docs, and the startup warning is a small check modeled on cloud-registry's. So the reviewer subagents were skipped.

I grepped the repository for references to the old master branch (workflows, docs, badges, release config) and found none.

How it was verified

  • pytest tests --ignore=tests/unitTest --ignore=tests/test_integration on Python 3.10 and 3.12: 25 passed. That includes new parametrized tests for the warning: both fields, each field alone, and no warning once both are set.
  • flake8 pro_tes setup.py: clean. pylint pro_tes: 10.00/10. mypy pro_tes: no issues.

Declined review findings

None.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Use neutral service-info defaults and prompt deployments to configure their own service identity.

Bug Fixes:

  • Replace misleading service-info defaults with neutral RFC 2606 example placeholders and remove the dummy storage location.
  • Warn at startup when deployment-specific service-info identity fields still use placeholders.

Enhancements:

  • Document the service-info configuration requirements and correct the app configuration link in the README.

Documentation:

  • Document how to configure service information served by the TES API and identify placeholder defaults.

Tests:

  • Add coverage for service-info defaults and startup warnings across partially and fully configured identities.

Replace the service info defaults with neutral placeholders on reserved
example domains (RFC 2606): id org.example.protes and organization
Example Organization (https://example.org). Add documentationUrl and
environment, and drop the dummy storage location.

Log a warning on startup while id or organization still have the
placeholders, naming the fields to set, as cloud-registry does. Document
the service info in the README and fix the path of the app config there.

Closes #205

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

This PR replaces misleading service-info defaults with neutral example placeholders, adds an application-startup warning when deployment metadata remains unchanged, and documents and tests the configuration workflow.

Sequence diagram for startup service-info placeholder warning

sequenceDiagram
    participant init_app
    participant FOCA
    participant FlaskApp
    participant warn_placeholder_service_info
    participant Logger

    init_app->>FOCA: create_app()
    FOCA-->>FlaskApp: app
    init_app->>FlaskApp: app_context()
    init_app->>warn_placeholder_service_info: warn_placeholder_service_info()
    warn_placeholder_service_info->>FOCA: get_config()
    FOCA-->>warn_placeholder_service_info: service_info.service
    alt placeholder id or organization remains
        warn_placeholder_service_info->>Logger: warning()
    end
    init_app-->>FlaskApp: return app
Loading

File-Level Changes

Change Details Files
Replace misleading service-info configuration with neutral RFC 2606 placeholders and deployment-oriented defaults.
  • Set placeholder ID and organization values on example domains.
  • Use a generic description and add documentation URL and development environment defaults.
  • Remove the dummy storage location.
  • Update inline configuration guidance.
pro_tes/config.yaml
Add startup detection and warning for service metadata that has not been customized.
  • Define the configured placeholder ID and organization values.
  • Inspect service-info configuration within the application context.
  • Log which placeholder fields require configuration during app initialization.
pro_tes/app.py
Document service-info customization and verify the new defaults and warning behavior.
  • Correct the README link to the actual app configuration file.
  • Explain required and recommended service-info fields and startup warnings.
  • Update service-info endpoint assertions and add parametrized coverage for both, partial, and fully customized values.
README.md
tests/test_app.py

Assessment against linked issues

Issue Objective Addressed Explanation
#205 Replace misleading service-info defaults with neutral example placeholders, retain the package-derived service version, and remove the dummy storage location. ✅
#205 Warn at startup when the service ID or organization still uses placeholder values, naming the fields that deployments need to configure. ✅
#205 Document which service-info fields deployments should configure. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@uniqueg
uniqueg marked this pull request as ready for review October 22, 2026 11:38

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit a4c0b72 into dev Oct 22, 2026
10 checks passed
@uniqueg
uniqueg deleted the fix/service-info-defaults branch October 22, 2026 11:41
uniqueg added a commit that referenced this pull request Oct 22, 2026
The README's notes on setting the service info (#220) move to the
getting started page with the other configuration notes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
uniqueg added a commit that referenced this pull request Oct 22, 2026
* docs: present proTES generally in README

Title "proTES" with the ELIXIR On-Cloud logo, the badges of
cloud-registry (license, build status, docs, coverage, release tag and
image), a synopsis that presents proTES as a TES gateway for any
network, brought to you by ELIXIR On-Cloud, a "Known deployments"
section (none listed yet), a quick start and contributing; README
sections are marked for inclusion in the docs site. The architecture,
license and contact move to docs/index.md, the Compose details and the
MTU troubleshooting to docs/getting-started.md; the overview diagram
moves to docs/images/, and the old ELIXIR, GA4GH and ELIXIR Cloud &
AAI logos are removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore: rename organization to ELIXIR On-Cloud

In the Helm chart's description and notes and the contact of the
middleware management API spec. Identifiers (GitHub organization,
Docker Hub) stay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: warn that shutdown stops task tracking

Tracking of forwarded tasks is not resumed after a restart (Sourcery
review).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: keep service info notes of the README

The README's notes on setting the service info (#220) move to the
getting started page with the other configuration notes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

fix: use neutral service-info defaults

1 participant