Skip to content

Reorganize RPC handlers under cmd/ateapi/internal/controlapi #891

Closed

Description

As we add more resources to the Substrate API (ActorTemplate/ActorTemplateVersion, EgressPolicy, etc), the cmd/ateapi/internal/controlapi directory is getting large, with a lot of go files.

Something we should consider is merging all RPC handlers for each resource type in a single file, named after the resource. We are already doing this for the ActorSnapshot resource, which has all the CRUDL RPC handler in a single actor_snapshot.go file.

We should probably also consider breaking functional_test.go into a dedicated test for each resource (e.g. actor_snapshot_functional_test.go) as that test is also getting way too large.

Activity

  1. added
    kind/cleanup
    on Aug 12, 2026
  2. juli4n commented on Aug 17, 2026

    @juli4n
    CollaboratorAuthor

    This is complete now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/api-machinerykind/cleanup

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions