-
Notifications
You must be signed in to change notification settings - Fork 0
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
DEV-43932 Grafana upgrade code migration - Home dashboard #10
Conversation
@@ -43,7 +43,7 @@ export class OrgDetailsPage extends PureComponent<Props> { | |||
render() { | |||
const { navModel, organization } = this.props; | |||
const isLoading = Object.keys(organization).length === 0; | |||
const canReadOrg = contextSrv.hasPermission(AccessControlAction.OrgsRead); | |||
const canReadOrg = false; // LOGZ.IO GRAFANA CHANGE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No ticket reference? 😅 What functionality is it part of?
Btw with no original ticket I would put one for a new ticket perhaps or at least the ticket your merging this part of
if ((global as any).parent.__logzio__) { | ||
logzioServices = (global as any).parent.__logzio__.services || {}; | ||
} | ||
export let logzioDeprecatedAngularServices: any = (global as any).parent.__logzio__.services; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usesd? it is the same as 'logzioServices'
export let logzioDeprecatedAngularServices: any = {}; | ||
export let logzioServices: any = {}; | ||
export let logzioConfigs: any = {}; | ||
export let productLoaded: any = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check with mock data that nothing breaks and add info to description of PR so we will remember what was done if we need to upgrade again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
productLoaded
call moved to the AppWrapper.tsx and is called directly from window
object
__logzio__.services
is already a Proxy and therefore always properly polulated.
logzio.configs is a json object that could be empty during iframe loading - wrap it with Proxy to always access up to date values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove shortcut
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove shortcut
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hide organization from enduser
…slack Grafana contact point config
MIgrated: