Red Hat Bugzilla – Bug 1462163
[trello nbkIrqKa] inline/toast notification inconsistency when import quota yaml
Last modified: 2017-06-16 08:32:13 EDT
Created attachment 1288313 [details]
Description of problem:
When non-cluster-admin user imports quota yaml, it shows toast notification. But when imports and processes template yaml containing quota, it shows inline notification. This is inconsistency
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Prepare files
$ cat myquota.yaml # quota yaml
$ cat mytemplate.yaml # template containing quota
- apiVersion: v1
2. On web console Import YAML/JSON page, paste content of myquota.yaml, click Create
3. Paste content of mytemplate.yaml, click Create --> choose Process --> Continue --> Create
2 and 3 both shows non-cluster-admin user cannot create quota, but the former uses toast notification, the latter uses inline notification (see attachment) and is kept inline too on overview page [see Additional info]
2 and 3 should be consistent in notification style
Should it be inline/toast notification on overview page?
Created attachment 1288315 [details]
BTW, after create from image or template, the success message in overview is still inline like 3.5, is it intended for the user story card? Or it should be toast notification too?
This is working as intended. We use a different style notifications because templates create multiple resources. Some might succeed and some might fail. The inline alerts can summarize the results for many objects. Import YAML creates just one resource currently, so it uses the toast notifications and blocks you from proceeding if it fails.
Both templates and creating from a Git source repository use the in-page notifications. We might change this in the future, but currently it's working as designed.