- Notifications
You must be signed in to change notification settings - Fork928
chore: remove organization requirement from convertGroup()#12195
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
a1457b5
11f2016
33b10e8
a5cadb2
3b0ea1b
5e4172a
4dc15a5
829316b
704faa2
626391d
77be059
89645b1
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,3 @@ | ||||
USERNAME EMAIL CREATED AT STATUS | ||||
testuser testuser@coder.com [timestamp] active | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Can we replace it with the same length string? Worried someone might think this is a bug. 😄 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I can pad the timestamp in the replace function? I could do something like this here: Line 123 in89645b1
// Replace any timestamps with a placeholder.byt=timestampRegex.ReplaceAllFunc(byt,func(source []byte) []byte {// Pad the timestamps to maintain the same length. This is mainly for tabled// output where the padding is important for alignment.lenSrc:=len(source)rpl:="timestamp"required:=lenSrc-len(rpl)-2return []byte("["+fmt.Sprintf("%-*s",required,rpl)+"]")}) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. It then looks like this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. And in json "created_at":"[timestamp ]","last_seen_at":"[timestamp ]", | ||||
testuser2 testuser2@coder.com [timestamp] dormant |
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.