Skip to content

Conversation

@bhalsey
Copy link
Contributor

@bhalsey bhalsey commented Apr 22, 2025

Issue:

Problem:

Every time we touch domain objects, the go and typescript clients get generated in a different order. This makes it impossible to determine what changed in client PRs. Furthermore, the order for a pegged version can vary from one developer to another.

This is a result of the domain objects getting loaded in from directory lists. The client generating freemarker then uses code like [#list domain as d] to iterate over them.

Solution:

Use the updated client builder, which sorts the domain objects by their "class" name (the last real name in a file like io.fusionauth.domain.Tenant.json

Linked PR:

@bhalsey bhalsey merged commit 2b43f36 into develop Apr 22, 2025
@bhalsey bhalsey deleted the bhalsey/ENG-2184/sorted_domain_order branch April 22, 2025 22:21
wied03 added a commit that referenced this pull request Apr 29, 2025
* client built with sorted domain types (#152)

* reapply issue 1 changes

---------

Co-authored-by: Brent Halsey <brent.halsey@fusionauth.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants