Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/custom/deprecate/template.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
<tbody>
{{ with .NotMigrated }}
{{ range . }}
{{ if ne .Name "" }}
<tr>
<th>{{ .Name }}</th>
<th>
Expand Down Expand Up @@ -153,6 +154,7 @@
</ul>
</th>
</tr>
{{ end }}
{{ end }}
{{ end }}
</tbody>
Expand Down
37 changes: 32 additions & 5 deletions hack/scripts/packages/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type File struct {
NotMigrateWithReplacesAllHeads []custom.NotMigrated
NotMigrateWithSkips []custom.NotMigrated
NotMigrateWithSkipsRange []custom.NotMigrated
NotMigrateWithSkipsAndRange []custom.NotMigrated
NotMigrateUnknow []custom.NotMigrated
TotalWorking49 int
NotMigratesMix []custom.NotMigrated
Expand Down Expand Up @@ -150,7 +151,7 @@ func main() {
foundSkips := false
headOfChannels := custom.GetHeadOfChannels(v.AllBundles)
for _, b := range headOfChannels {
if len(b.Skips) > 0 {
if len(b.SkipRange) > 0 && len(b.Replace) < 1 {
foundSkips = true
break
}
Expand All @@ -166,7 +167,7 @@ func main() {
foundSkipRange := false
headOfChannels := custom.GetHeadOfChannels(v.AllBundles)
for _, b := range headOfChannels {
if len(b.SkipRange) > 0 {
if len(b.SkipRange) > 0 && len(b.Replace) < 1 {
foundSkipRange = true
break
}
Expand All @@ -177,6 +178,22 @@ func main() {
}
}

var notMigrateWithSkipsAndRange []custom.NotMigrated
for _, v := range apiDashReport.NotMigrated {
foundSkips := false
headOfChannels := custom.GetHeadOfChannels(v.AllBundles)
for _, b := range headOfChannels {
if ((len(b.Skips) > 0) || len(b.SkipRange) > 0) && len(b.Replace) < 1 {
foundSkips = true
break
}
}
if foundSkips {
notMigrateWithSkipsAndRange = append(notMigrateWithSkipsAndRange, v)
continue
}
}

var notMigratesMix []custom.NotMigrated
for _, v := range apiDashReport.NotMigrated {
found := false
Expand All @@ -196,15 +213,21 @@ func main() {
var notMigrateUnknow []custom.NotMigrated
for _, v := range apiDashReport.NotMigrated {
found := false
headOfChannels := custom.GetHeadOfChannels(v.AllBundles)
for _, b := range headOfChannels {
if len(b.SkipRange) > 0 || len(b.Skips) > 0 || len(b.Replace) > 0 {
for _, r := range notMigrateWithReplaces {
if v.Name == r.Name {
found = true
break
}
}
for _, s := range notMigrateWithSkipsAndRange {
if v.Name == s.Name {
found = true
break
}
}
if !found {
notMigrateUnknow = append(notMigrateUnknow, v)
continue
}
}

Expand Down Expand Up @@ -251,6 +274,9 @@ func main() {
sort.Slice(notMigratesMix[:], func(i, j int) bool {
return notMigratesMix[i].Name < notMigratesMix[j].Name
})
sort.Slice(notMigrateWithSkipsAndRange[:], func(i, j int) bool {
return notMigrateWithSkipsAndRange[i].Name < notMigrateWithSkipsAndRange[j].Name
})

totalWorking49 := len(apiDashReport.Migrated) - len(migrateNotIn49)

Expand Down Expand Up @@ -278,6 +304,7 @@ func main() {
TotalWorking49: totalWorking49,
NotMigrateWithSkips: notMigrateWithSkips,
NotMigrateWithSkipsRange: notMigrateWithSkipRange,
NotMigrateWithSkipsAndRange: notMigrateWithSkipsAndRange,
NotMigrateUnknow: notMigrateUnknow})
if err != nil {
panic(err)
Expand Down
8 changes: 7 additions & 1 deletion hack/scripts/packages/template.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ at least one head of channel using skipRange

-------------------------------------
Packages which does not nave any compatible version with 4.9 and has
all head of channel using replaces
at leas one head of channel using replaces
-------------------------------------
{{ with .NotMigrateWithReplacesAllHeads }}{{ range . }}{{ .Name }}
{{ end }}{{ end }}
Expand All @@ -53,6 +53,12 @@ with skips or skipsRange
{{ with .NotMigratesMix }}{{ range . }}{{ .Name }}
{{ end }}{{ end }}

Packages which does not nave any compatible version with 4.9 and uses only Skips
or SkipRange
-------------------------------------
{{ with .NotMigrateWithSkipsAndRange }}{{ range . }}{{ .Name }}
{{ end }}{{ end }}


-------------------------------------
Packages which has compatible version but none of them will end up on 4.9
Expand Down
77 changes: 25 additions & 52 deletions index.html

Large diffs are not rendered by default.

Loading