Skip to content
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

Optionally enable endpoints-dashboard via env var for use in cf push #1221

Merged
merged 8 commits into from
Aug 18, 2017

Conversation

richard-cox
Copy link
Contributor

@richard-cox richard-cox commented Aug 15, 2017

  • Disable the endpoint-dashboard at runtime if env var is present
    • Plugins can now add config to the console-info call
    • endpoint-dashboard now has a backend component
      • If env var 'DISABLE_ENDPOINT_DASHBOARD' is present add 'disabled' to component config
    • Handle disabled dashboard in frontend..
      • Do not add to menu
      • Do not redirect to dashboard if no endpoints present
      • Remove from env.plugins
  • Fixed endpoint dashboard 'on logged in' message for admin's when there are no connected endpoints
  • Speed up logged in process by making calls async
  • Improved unit tests

- Plugins can now add config to the console-info call
- Add backend component to endpoint-dashboard
-- If env var 'DISABLE_ENDPOINT_DASHBOARD' is present add 'disabled' to component config
- Handle disabled dashboard in frontend..
-- Do not add to menu
-- Do not redirect to dashboard if no endpoints present
-- Remove from env.plugins
- Fixed endpoint on logged in message for admin's when there are no connected endpoints
- Speed up logged in process by making 3 calls async
- Improved unit tests
Irfan Habib and others added 4 commits August 16, 2017 09:43
- Switch logic from 'disable' flag to 'enable' (true by default)
- Updated docs
- Prooved cf push with/wuthout flag
function init() {
return initialized.promise;
}
var config = {};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove config object

change updateConfig to be isDashboardDisabled() that returns the value

function onLoggedIn() {
var menu = modelManager.retrieve('app.model.navigation').menu;
menu.addMenuItem('endpoints', 'endpoint.dashboard', 'menu.endpoints', 2, 'settings_input_component');
initialized.resolve();
}

function getDashboardRedirect() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we consider a clearer name?

Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nwmac nwmac merged commit 58df812 into master Aug 18, 2017
@nwmac nwmac deleted the cf-push-enable-dashboard branch August 18, 2017 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants