Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 26, 2025

Conversation

julienrbrt
Copy link
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
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
Member Author

Choose a reason for hiding this comment

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

sure thing!

Copy link
Collaborator

@Pantani Pantani left a comment

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
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” <[email protected]>
(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” <[email protected]>
(cherry picked from commit 842b3e9)

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

* updates

* cl

---------

Co-authored-by: julienrbrt <[email protected]>
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