Repository navigation
fix: use neutral service-info defaults - #160
Merged
Merged
Conversation
The default service info named ELIXIR On-Cloud, so deployments that kept it presented themselves as its registry, with its contact address. Use placeholders with reserved example domains (RFC 2606) instead: id org.example.cloud-registry, organization Example Organization at https://example.org, and no contactUrl. The app logs a warning on startup while id or organization are the placeholders, naming the fields to set. Update the configuration page, the chart README and values example, and the 0.3.0 release notes (new defaults, previous id to keep). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideThe PR neutralizes the default service identity and adds a startup warning for deployments that retain placeholder service information, with corresponding Helm/configuration documentation and comprehensive tests. Sequence diagram for placeholder service-info startup warningsequenceDiagram
participant App
participant Config as get_config()
participant Logger
App->>Config: get_config()
Config-->>App: service_info.service
App->>App: warn_placeholder_service_info()
alt placeholder id or organization value
App->>Logger: warning(fields to set)
else deployment values configured
App-->>App: no warning
end
Flow diagram for neutral service-info configurationflowchart TD
Defaults["Neutral defaults: org.example.cloud-registry and Example Organization"] --> Configure["Deployment sets service_info.service fields"]
Configure --> Check{"Placeholder id or organization name/URL?"}
Check -->|Yes| Warning["Log startup warning"]
Check -->|No| Start["Start with deployment service identity"]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #160 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 770 785 +15
=========================================
+ Hits 770 785 +15 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
October 21, 2026 21:36
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/releases/0.3.0.md" line_range="134-141" />
<code_context>
- `ELIXIR_CLOUD`), `organization.url` is `https://elixir-on.cloud/` and
- `contactUrl` is `mailto:[email protected]`, with a new
- `description`. Deployments set their own (`service_info.service`).
+- The default service info describes the app, not a deployment, with
+ placeholders using reserved example domains (RFC 2606): `id` is
+ `org.example.cloud-registry` (was `ELIXIR_CLOUD_SERVICE_REGISTRY_1`),
+ `organization` is `Example Organization` at `https://example.org`, there
+ is no `contactUrl`, `name` is `Cloud Registry` (was `ELIXIR_CLOUD`), with a
+ new `description`. Deployments set their own (`service_info.service`); the
+ app logs a warning on startup while `id` or `organization` are the
+ placeholders.
- `custom.endpoints.service.api_path` is now a path prefix in front of the
API base path (e.g., of a reverse proxy), not the API base path itself.
</code_context>
<issue_to_address>
**0.3.0 release notes misstate defaults**
When a reader consults the 0.3.0 release notes to configure or upgrade that release, the entry presents the placeholders and absence of `contactUrl` as the defaults of the 0.3.0 release, whose attached chart and config instead used the ELIXIR On-Cloud identity and contact address. Readers installing that release get inaccurate upgrade guidance.
Keep the 0.3.0 defaults historically accurate and document this change separately, or clearly label the updated defaults as applying to a later version.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: docs/releases/0.3.0.md:141
This was referenced Oct 22, 2026
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.
Summary
Since #144, deployments that keep the default service info present themselves as ELIXIR On-Cloud's registry, with its contact address. This PR replaces those defaults with neutral placeholders.
config.yaml:id: org.example.cloud-registry, organization "Example Organization" athttps://example.org(RFC 2606 example domains), and nocontactUrl.name("Cloud Registry") and the generic description stay.warn_placeholder_service_info()incloud_registry/app.py): logged whileidis the placeholder, or while the organization's name or URL is. It names the fields to set. Docker Compose keeps the placeholders, so the warning is expected there; nothing else changes.values.yamlexample. The example's organization URL no longer equals the placeholder, so copying it doesn't trigger the warning. In the 0.3.0 release notes, the entry from docs: present app generally, use ELIXIR On-Cloud #144 is replaced, and the upgrade step names the previousidto keep.Closes #148
Light lane: the PR changes default values and docs and adds a trivial startup warning with tests, so the reviewer subagents are skipped (I reviewed the diff myself), per the user's rule.
Verification
coverage run --source=cloud_registry -m pytest -p no:warnings(with Helm): 759 passed; coverage 100%ruff check .,ruff format --check .,mypy: pass;mkdocs build --strict: passgit grepfinds no ELIXIR On-Cloud identity (cloud.elixir-on,elixir-on.cloud/,cloud-service@) incloud_registry/,config.dev.yamlordeployment/contactUrl.Declined review findings
dev.Open questions
None.
🤖 Generated with Claude Code