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

[report] Add a report background worker #21

Closed
wants to merge 6 commits into from
Closed

[report] Add a report background worker #21

wants to merge 6 commits into from

Conversation

sandeepkru
Copy link
Collaborator

Add template for weekly report genertor, it currently sends a dummy report.

@sandeepkru sandeepkru requested a review from rajatgoel November 6, 2024 06:37
@sandeepkru
Copy link
Collaborator Author

sandeepkru commented Nov 6, 2024

@rajatgoel added a simple placer holder structure for report generation, and just used some dummy report for now. With go-sdk, I didn't see Canvas related functionalities so for now went with just posting weekly report as a message, tagging you to see if you have any suggestions on this.

@rajatgoel
Copy link
Collaborator

rajatgoel commented Nov 6, 2024

Looks like they were added recently slack-go/slack#1334 and are part of 0.15.0 release (we are using 0.14.0). Although standalone canvases are only available in paid slack accounts, so not sure how to test it.

}

func NewGenerator() (*Generator, error) {
tmpl, err := template.ParseFiles("internal/templates/weekly_report.md")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This only works because you run binary from that folder? To make binary portable we need to package the template with the binary. See how I do it in http.go

@sandeepkru sandeepkru closed this Nov 13, 2024
@sandeepkru sandeepkru deleted the report branch November 13, 2024 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants