-
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
Include severity in delta for task message #5714
base: master
Are you sure you want to change the base?
Conversation
Wouldn't it be better to add this to the schema? |
How would you propose adding it to the schema? |
Looks like we didn't leave room for this: job {
id
messages {
severity
message
}
} |
Yeah that was my thought |
Ok, we do have a pathway for handling schema changes, it's just something we haven't had to do yet. Note, we don't need to put in back-compat for GraphQL because the communication between the UI and UIS uses the UIS schema version not the scheduler version. We only need to provide back-compat for the resolver to allow the UIS to provide responses in the required format for older schedulers where the required field is not present in the store.
|
It's a bit more faff but it gets the end result nicer. Note if we don't do this, we will need to be able to reliably strip the message severity in the UI. Currently messages are compared to configured task outputs to differentiate between the two |
What's the downside to this approach? The only thing I can think of is if a user plays a workflow with a new version of cylc-flow but an old version of the UI, then they will see chips saying (btw I suppose this should be on 8.3.0 milestone, changing now) |
f1dce9c
to
04a5f07
Compare
Can you copy-and-paste that procedure somewhere for future reference? |
I think it will try to validate that Alternatively you could create a new field |
Ok, it looks like the upgrade option would be:
Otherwise, we dump both bits of info into the same field:
|
Closes #5713
This will allow the UI to know the severity level of task messages, which will be used to colour the message chips in the tree view - cylc/cylc-ui#1436
By not changing the GraphQL schema this is the simplest way to address #5713
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.?.?.x
branch.