APPSERV-124 Monitoring-Console: Adds server side page configuration #4666
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the page names (IDs) and values to the server side monitoring console configurations which is used by payara/monitoring-console#11 to provide a fully integrated server side page configuration for MC. Requires payara/monitoring-console#11 and payara/monitoring-console#15 to be merged first and release 1.2 of MC implementation made.
Testing
Assuming MC changes are released (or build locally) build this PR and install it.
Now the basic principle of page synchronisation was tested. There are many possible scenarios from here using the different roles.
As a Guest the idea is that by default all updates shared by other are applied at the beginning so you work with the latest persistent settings. Guests change their local pages but don't share any changes. Buttons to push are not available. Automatic pushes do not occur.
As a User the idea is that by default all updates are applied as long as they do not override a page that has been changed locally. This is reflected in the checkbox being checked or not by default when doing the page synchronisation. Obviously users can chose which pages to override or not. User can also manually push pages to the persistent configuration by using the Push button in the Page Sync setting.
As an Administrator the idea is that the role is used to configure the configuration that acts as base for other users. When pulling changes defaults work similar to users. But any change done to local page is automatically shared (pushed) when the Page Sync auto setting is checked for the modified page (which it is by default). Administrator can also explicitly update already shared paged by using the Update Remote Pages button in the Global Page Sync settings or push an individual page explicitly by using the Push button (same as users).
Note also that once a user preferred a locally changed page over a remotely updated one this choice is considered in later updates by default that page will not be updated as long as the remote page is not updated with an even newer version.
In general "versions" are identical to moment of change. More recent changes are considered newer.
See also the documentation payara/Payara-Community-Documentation#6