Skip to content

refactor: use FOCA's ownership and URL helpers #157

Closed

Description

@uniqueg

Why?

cloud-registry's per-service ownership (owners, maintainers, user and group roles, last-owner rule, owner-filtered access) moves into FOCA (foca#341), and its URL normalization and scheme checks too (foca#342). The template app should use FOCA's versions instead of its own, so proTES and other apps share one implementation.

How?

  1. Replace the app's ownership and role code with FOCA's resource ownership, keeping the API (/services/{id}/permissions/...) and behaviour unchanged.
  2. Replace the URL helpers in service.py with FOCA's, keeping the https-only option (feat: allow only https service URLs by default #147).
  3. Remove code that becomes unused; keep 100% coverage.

Acceptance criteria

  • Behaviour and API are unchanged (existing tests pass unchanged, except imports).
  • No duplicate ownership or URL logic remains in the app.

Activity

  1. added
    priority: high
    status: blocked
    type: maintenance
    workload: days
    on Oct 21, 2026
  2. added
    status: in progress
    and removed
    status: blocked
    on Oct 22, 2026
  3. removed
    status: in progress
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: maintenanceworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions