Skip to content

Commit

Permalink
Add new domain model for github contents tree
Browse files Browse the repository at this point in the history
The new domain model separates path segments (which are used to add
nodes relative to other nodes) from the Squareone URL path. This
dramatically simplifies the tree domain construction and makes it
possible to use the same domain object for PR preview trees as well.

The new GitHubNode is a dataclass; in the REST API we transform that
dataclass into a Pydantic model for the response.
  • Loading branch information
jonathansick committed Aug 9, 2022
1 parent 30acd7d commit fbd1a6c
Show file tree
Hide file tree
Showing 6 changed files with 406 additions and 277 deletions.
Loading

0 comments on commit fbd1a6c

Please sign in to comment.