fabric8-services / fabric8-notification Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
See #61
Prepare summary document describing the enhancements we would like to introduce to the notification service.
The workitem templates refer to a [work-item.name] value. Not sure which value this is intended to be. Using woritem-type.name for now (e.g. bug, scenario etc)
Some locations use Number-Name while other use Name-Number.
see $subject :)
Avoid the process being killed during rolling update before emails for currently received requests are scheduled.
When user has an imageURL from gravatar we can easily append "?s=22" to the URL and we're good, but some have imageURL from github which contain another URL parameter "?v=n" appending "?s=22" to that has no effect.
The image size function need to take the additional parameter into account
{
"err": "template: workitem.create:75:49: executing \"workitem.create\" at <\"system.description....>: invalid value; expected string",
"file": "/tmp/go/src/github.com/fabric8-services/fabric8-notification/email/notifier.go",
"func": "github.com/fabric8-services/fabric8-notification/email.(*AsyncWorkerNotifier).do",
"id": "workitem.create",
"identity_id": "46e9afce-5e0d-44fd-aa2b-2040357a4efb",
"level": "error",
"line": 89,
"msg": "failed to render template",
"pid": 1,
"pkg": "github.com/fabric8-services/fabric8-notification/email",
"req_headers": {
"Accept-Encoding": [
"gzip"
],
"Authorization": "*****",
"Content-Length": [
"162"
],
"Content-Type": [
"application/json"
],
"User-Agent": [
"Go-http-client/1.1"
]
},
"req_id": "MwdOyF7UZn-73647",
"req_payload": "{\"data\":{\"attributes\":{\"id\":\"d3e78d1f-bf18-4a21-9fca-968675d7a91f\",\"type\":\"workitem.create\"},\"id\":\"af2ccbfc-cb07-4376-a150-36afce7143fd\",\"type\":\"notifications\"}}",
"time": "2017-08-01 08:53:06",
"type": "d3e78d1f-bf18-4a21-9fca-968675d7a91f"
}
"Open this" links to the WorkItem details. It would be handy if this linked directly to the comment.
Require some additional UI / Backend changes:
Support receiving events from WIT
Should email Collaborators, WorkItem Assignees, WorkItem Creator and Commenters
Issue:
For PR #99, we have observed that the ci.centos.org PR build (coverage) check is failing with following error.
/bin/bash: cico_run_coverage.sh: No such file or directory
Link: https://ci.centos.org/job/devtools-fabric8-notification-coverage/1/console
Fix:
Check whether we can run_tests_with_coverage and get meaningful metrics out of it. If yes, plz add support for run_tests_with_coverage. If we find that the run_tests_with_coverage take similar (almost same) build time as compared to run_tests_without_coverage then we can only have run_tests_with_coverage.
As an offshoot of fabric8-services/fabric8-auth#237 (comment)
When notification service comes up, call Auth service API to request for service account token, and keep it in memory.
Subsequently use the token from configuration memory object.
On the auth side, check for service account token, and based on that show the email .
Notifications are currently working around that by sharing the Token of the person triggering the action.
Currently, no API to determine what has changed
Currently, only scans the first 100 comments on a workitem
in
fabric8-notification/email/notifier.go
Lines 71 to 108 in 304db5b
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.