Remove private-network project flag gate - #1254
Conversation
| hasPrivateNetwork = "true" | ||
| } | ||
| _ = t.Append([]string{project.Name, strconv.FormatBool(project.Default), project.ID, hasPrivateNetwork}) | ||
| _ = t.Append([]string{project.Name, strconv.FormatBool(project.Default), project.ID, "true"}) |
There was a problem hiding this comment.
Question: Should I just remove the "Private Network" column completely?
There was a problem hiding this comment.
Removed the column
matthieu526-scalingo
left a comment
There was a problem hiding this comment.
Sorry for the unexpected review, I was looking at open PRs before considering a release.
| _ = t.Append([]string{"", ""}) | ||
| _ = t.Append([]string{"Private Network", "true"}) | ||
| _ = t.Append([]string{"", ""}) | ||
| _ = t.Append([]string{"Private Network", "true"}) |
There was a problem hiding this comment.
question: is it required to keep this? If it's by default for everyone?
There was a problem hiding this comment.
After having tested locally. I added the "Private Network" label back in (without the "true") part in d8cf8ef
There was a problem hiding this comment.
┌──────────────────────────────────┬──────────────────────────────────────────┐
│ PROJECT FIELD │ VALUE │
├──────────────────────────────────┼──────────────────────────────────────────┤
│ Name │ has-pn │
│ ID │ prj-2dd8fb1b-e71e-4e94-9bba-ba93adddc408 │
│ Default │ false │
│ Owner │ zeno.kerr │
│ │ │
│ Private Network │ │
│ - ID │ pn-aaf9101f-9ad0-4429-88ce-89abd0186c77 │
│ - Subnet │ 10.240.0.0/22 │
│ - Gateway IP │ 10.240.0.1/22 │
│ - Total number of assignable IPs │ 1021 │
│ - Used IPs count │ 3 │
│ - Used IPs │ 10.240.0.4 │
│ │ 10.240.0.5 │
│ │ 10.240.0.7 │
└──────────────────────────────────┴──────────────────────────────────────────┘
| hasPrivateNetwork = "true" | ||
| } | ||
| _ = t.Append([]string{project.Name, strconv.FormatBool(project.Default), project.ID, hasPrivateNetwork}) | ||
| _ = t.Append([]string{project.Name, strconv.FormatBool(project.Default), project.ID, "true"}) |
| _ = t.Append([]string{" - Used IPs count", strconv.Itoa(privateNetworkInfo.UsedIPsCount)}) | ||
|
|
||
| if len(privateNetworkInfo.UsedIPs) == 0 { | ||
| _ = t.Append([]string{" - Used IPs", "None"}) |
There was a problem hiding this comment.
nitpick: is this required? It will already be written 0 the line above.
There was a problem hiding this comment.
What would you suggest?
- removing the word "None"
- removing the line altogether
There was a problem hiding this comment.
- Removing the line altogether. I don't see a value, as we have the raw number.
Related to [STORY-3115]