-
Notifications
You must be signed in to change notification settings - Fork 24
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(addon-logs-archives): add logs archives for addons #694
Conversation
|
|
|
Actually, the function I've seen is in another project https://github.com/Scalingo/go-scalingo/blob/master/logs-archives.go#L33 |
The
Note that go-scalingo is the Go client to interact with our API. |
Okay, so go-scalingo is the Go client to interact with the API but it does not have a method to get the logs archives of the addon (here https://github.com/Scalingo/go-scalingo/blob/master/logs-archives.go). I actually implemented it yesterday but I just realized that i was editing on the dependancy (got lost). What should I do ? Normally it should be on the go-scalingo project but I'm not sure I have the right to open a PR there and even if I do I would have to wait for the next release to use it in the CLI. I'm kinda stuck here. |
The process is indeed to develop this feature on go-scalingo and open a PR there. I'm the one in charge of the go-scalingo release, so I'll proceed with a new release as soon as I merge your PR. That's what we usually do. You can see that in the changelog, many versions contain a single entry (https://github.com/Scalingo/go-scalingo/blob/master/CHANGELOG.md). |
7352a9d
to
801c33c
Compare
801c33c
to
56accc2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
fmt.Println(color.New(color.FgYellow).Sprint("To: ") + archive.To) | ||
fmt.Println(color.New(color.FgYellow).Sprint("From: ") + archive.From) | ||
fmt.Println(color.New(color.FgYellow).Sprint("Size: ") + strconv.FormatInt(archive.Size, 10)) | ||
fmt.Println(color.New(color.FgYellow).Sprint("Url: ") + archive.Url) | ||
fmt.Println("-------") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have an example of the output ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To: Fri Nov 5 13:10:56 +0000 UTC 2021
From: Fri Nov 5 09:15:53 +0000 UTC 2021
Size: 3705928
Url: https://logs-archive-service-osc-fr1.scalingo.com/logs-archives/[REDACTED]/download/[REDACTED].log-2021110513.gz?sign=[REDACTED]&exp=1636131525
------- To: Fri Nov 5 09:15:51 +0000 UTC 2021
From: Fri Nov 5 05:15:12 +0000 UTC 2021
Size: 3551531
Url: https://logs-archive-service-osc-fr1.scalingo.com/logs-archives/[REDACTED]/download/[REDACTED].log-2021110509.gz?sign=[REDACTED]&exp=1636131525
-------
To: Fri Nov 5 05:15:12 +0000 UTC 2021
From: Fri Nov 5 01:15:56 +0000 UTC 2021
Size: 3436225
Url: https://logs-archive-service-osc-fr1.scalingo.com/logs-archives/[REDACTED]/download/[REDACTED].log-2021110505.gz?sign=[REDACTED]&exp=1636131525
Waiting for #701 to be merged
This PR also contains a couple of files renaming and functions renaming. You can filter out these commits to better see what this PR contains.
Fix #518