-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more details on redirections and notifications.
- Loading branch information
1 parent
421c9c3
commit cb2cef0
Showing
7 changed files
with
68 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
workshops/lab-lookup-consumption/workshop/content/14-event-notifications.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: Event Notifications | ||
--- | ||
|
||
You may have noticed when the redirection happened upon terminating a workshop | ||
session, that the URL displayed in the web browser for the target URL had a | ||
query string parameter appended with parameter name `notification`. | ||
|
||
When using the native web interface for the training portal, this is passed | ||
so that the web interface can display a message banner. | ||
|
||
The possible values of this query string parameter will be: | ||
|
||
* `session-deleted` - Used when the workshop session was completed or restarted. | ||
* `startup-timeout` - Used when a startup timeout was specified for a workshop | ||
and it didn’t start within the required time. | ||
* `session-invalid` - Used when an attempt is made to access a session which | ||
doesn’t exist. This can occur when the workshop dashboard is refreshed | ||
sometime after the workshop session has expired and been deleted. | ||
|
||
Other values exist for `notification`, but it is believed these situations | ||
should not arise when the REST API is used to request a workshop as HTTP errors | ||
would be returned by the REST API call instead. | ||
|
||
* `workshop-invalid` - Used when the name of the workshop environment supplied | ||
when attempting to create the workshop was invalid. | ||
* `session-unavailable` - Used when capacity has been reached and a workshop | ||
session cannot be created. | ||
|
||
These other possible values are thus listed here only for informational | ||
purposes, in case they occur for some unknown reason. | ||
|
||
For the cases when a notification message is supplied in this way, it will be | ||
added to the query string parameters passed to the URL when redirection is done. | ||
The URL handler or web page can use this to display it's own message banner. It | ||
may also want to rewrite the URL shown in the URL bar of the browser to remove | ||
the notification query string parameter to avoid it being added as part of a | ||
bookmark by a user. | ||
|
||
{{< warning >}} Note that there is currently a | ||
[bug](https://github.com/vmware-tanzu-labs/educates-training-platform/issues/558) | ||
in the training portal, whereby if the URL passed to `clientIndexUrl` has its | ||
own query string parameters, the query string parameter list including | ||
`notification` is blindly added to the end of the full URL, rather than parsing | ||
the URL to separate out any query string parameters and adding to the set of | ||
parameters and reconstructing the URL. This means that if the last query string | ||
parameter was itself a URL, the notification parameter is being added to it, | ||
rather than the initially targeted URL. This means that a URL handler as | ||
previously shown for handling redirection, will need to remove the notification | ||
query string parameter from the target redirection URL. This issue will be fixed | ||
in an upcoming update to Educates, and this workshop updated further to explain | ||
how to handle these notifications. | ||
{{< /warning >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters