Skip to content
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

feat(templates): use collections for map and remove multi index support #4094

Merged
merged 22 commits into from
May 8, 2024

Conversation

julienrbrt
Copy link
Member

Closes: #4054
Follow-up of #3707

@julienrbrt julienrbrt marked this pull request as ready for review April 25, 2024 09:22
@julienrbrt julienrbrt enabled auto-merge (squash) May 5, 2024 23:36
ignite/services/scaffolder/type.go Outdated Show resolved Hide resolved
ignite/templates/typed/map/map.go Outdated Show resolved Hide resolved
ignite/templates/typed/map/map.go Show resolved Hide resolved
@julienrbrt julienrbrt requested a review from Pantani May 7, 2024 19:24
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.

LGMT

@@ -259,24 +258,31 @@ func parseTypeFields(opts addTypeOptions) (field.Fields, error) {
}

// mapGenerator returns the template generator for a map.
func mapGenerator(replacer placeholder.Replacer, opts *typed.Options, indexes []string) (*genny.Generator, error) {
func mapGenerator(replacer placeholder.Replacer, opts *typed.Options, index string) (*genny.Generator, error) {
// Parse indexes with the associated type
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Parse indexes with the associated type
// Parse index with the associated type

@julienrbrt julienrbrt merged commit 1610734 into main May 8, 2024
45 of 46 checks passed
@julienrbrt julienrbrt deleted the julien/collections-map branch May 8, 2024 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possibly drop multi index support in map
2 participants