Skip to content

feat(cosmogen): implement 3rd party generation root template#4737

Merged
julienrbrt merged 10 commits into
mainfrom
julien/3rd-ts
Jun 26, 2025
Merged

feat(cosmogen): implement 3rd party generation root template#4737
julienrbrt merged 10 commits into
mainfrom
julien/3rd-ts

Conversation

@julienrbrt

Copy link
Copy Markdown
Member

Closes: #4690

@julienrbrt julienrbrt changed the title feat(cosmogen): implement 3rd party generation feat(cosmogen): implement 3rd party generation root template Jun 23, 2025
@julienrbrt
julienrbrt marked this pull request as ready for review June 23, 2025 22:32
@julienrbrt
julienrbrt enabled auto-merge (squash) June 24, 2025 08:25
@julienrbrt julienrbrt added the backport/v28.x.y Backport to v28.x.y label Jun 24, 2025
Comment on lines +62 to +66
// add third party modules to for the root template.
for _, modules := range g.thirdModules {
data.Modules = append(data.Modules, modules...)
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same needs to be done on generate openapi

doesnt affect ts-client generation but it will be nice to polish everything

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure thing!

@Pantani Pantani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, but I didn't test the TS files.

The TS client generation can only be used if the user is logged into the Buf registry CLI; otherwise, it will reach the rate limit. We should verify if the buffer is logged in and prevent the user from using the command, instead displaying a warning message and panic later.

@julienrbrt

Copy link
Copy Markdown
Member Author

ACK, but I didn't test the TS files.

The TS client generation can only be used if the user is logged into the Buf registry CLI; otherwise, it will reach the rate limit. We should verify if the buffer is logged in and prevent the user from using the command, instead displaying a warning message and panic later.

I am not logged in via buf and I have never encountered a rate limit. CI isn't encountering a rate limit anymore either since a while (#4303 (comment)). Are you sure you aren't rate limited by country or because you use a VPN? We already have a warning that explains we should log in if rate limited.
Trying to detect if connected will add unnecessary friction and force users to login while they do not need imho.

@julienrbrt
julienrbrt merged commit 842b3e9 into main Jun 26, 2025
43 checks passed
@julienrbrt
julienrbrt deleted the julien/3rd-ts branch June 26, 2025 07:30
mergify Bot pushed a commit that referenced this pull request Jun 26, 2025
* feat(cosmogen): implement 3rd party generation

* cl

* hardcode module path

* simplify

* updates

* lint

* feat: Filter protos to module being processed

* put test protos in correct folder

* remove todo

---------

Co-authored-by: “Clockwork” <alex@clockwork.gr>
(cherry picked from commit 842b3e9)

# Conflicts:
#	ignite/pkg/cosmosbuf/buf.go
#	ignite/pkg/cosmosgen/generate_typescript_test.go
julienrbrt added a commit that referenced this pull request Jun 26, 2025
…#4737) (#4740)

* feat(cosmogen): implement 3rd party generation root template (#4737)

* feat(cosmogen): implement 3rd party generation

* cl

* hardcode module path

* simplify

* updates

* lint

* feat: Filter protos to module being processed

* put test protos in correct folder

* remove todo

---------

Co-authored-by: “Clockwork” <alex@clockwork.gr>
(cherry picked from commit 842b3e9)

# Conflicts:
#	ignite/pkg/cosmosbuf/buf.go
#	ignite/pkg/cosmosgen/generate_typescript_test.go

* updates

* cl

---------

Co-authored-by: julienrbrt <julien@rbrt.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/v28.x.y Backport to v28.x.y component:ci CI/CD workflow and automated jobs. component:configs component:packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FIX: Updated ts-client generation (TXs and Queries)

3 participants