-
Notifications
You must be signed in to change notification settings - Fork 94
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
job messages list field #3373
job messages list field #3373
Conversation
For example:
|
One failure on Travis
Just restarted the job that failed. |
d778f9d
to
8643f6b
Compare
Gonna add some unit-tests on |
What'sup with Codacy? Can't see any Errors.. it's just not doing the analysis.. |
Just kicked Codacy... |
dbd8807
to
3954449
Compare
100% coverage 🎉 |
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.
I trust that you have taken into account my comment about the event time. The 100% test coverage is encouraging.
Seems to be working as expected @dwsutherland just out of curiosity, is the order of the messages guaranteed be from the oldest to the newest, always? Just asking as I think when we prepare to display it on the UI, we will probably need to provide them in order for the users? |
(or do we need a timestamp next to the message?) |
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.
One issue in the test, and one question (not blocker). Other than that, perfect! 💯 tested with GraphiQL, worked with no issues, and code looking good!
Add more coverage
3954449
to
0887517
Compare
Yes, I think
Yes protobuf repeated fields are ordered lists that can be accessed via index. And I just append new messages (no removal or manipulation).. Then GraphQL resolvers pass the entire job element for query resolving. |
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.
Had a look at the last change, to fix the missing import, and it looks good now.
Build passed before, so no need to wait for Travis. LGTM!
These changes partially address an the absence of job messages mentioned in cylc/cylc-ui#249
Where Task cycle instance (proxy) messages are being used with every job.. However, as noted:
So on Riot we came to the decision that all messages associated with a job should be held in the job element.
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.