Skip to content

Tracking issue: move views and params out of common #388

Closed

Description

@david-crespo

This is meant to capture the substantial followup work based on #369, #374, and #386.

Now that we have generated clients for internal communication, each app should own the structs that define its request bodies (params) and responses (views). The difficulty is that there are a lot of changes to be made before we reach the desired end state, way more than would be reasonable to put in a single PR. Refactors should be done as quickly as possible, but there's going to be a short time where we're in an intermediate state. Also doing a bunch of refactors while we're all hurrying for Milestone 3 is not a good idea. So we're going to have to finish this afterward.

This is not a complete list, I'll add more as I go through them.

Activity

  1. changed the title [-]Move views and params out of common[/-] [+]Tracking issue: move views and params out of common[/+] on Nov 14, 2021
  2. david-crespo commented on Mar 15, 2022

    @david-crespo
    ContributorAuthor

    there's going to be a short time where we're in an intermediate state

    welp

  3. david-crespo commented on Mar 18, 2022

    @david-crespo
    ContributorAuthor

    I spent a little time trying to move RouterRoute and its params friends into Nexus, but it was quite difficult to untangle what should go where. They all depend on the enums RouteTarget and RouteDestination, which are also used in several other places.

    I also spent a bit of time attempting UpdateArtifact and UpdateArtifactKind, but in this case the complication comes from it being used in both Sled Agent and Nexus. I think this should be defined in Nexus and then Sled Agent should mostly rely on the types from the generated Nexus client, but I had trouble making this compile because of the interdependent macros (sled agent client gen and nexus client gen).

    This is emblematic of the situation with the remaining views.

  4. david-crespo commented on Jun 8, 2023

    @david-crespo
    ContributorAuthor

    I think we got as far as we're going to get on this.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions