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

DEV-43932 Grafana upgrade code migration - Home dashboard #10

Closed
wants to merge 10 commits into from

Conversation

copyhold
Copy link

MIgrated:

  • Home dashboard ability
  • remove organizations links
  • fixed the logzio services injection

@@ -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

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;

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 = {};

Choose a reason for hiding this comment

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

don't need anymore?

Copy link

@ifatregev ifatregev left a 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

@ifatregev ifatregev changed the title DEV-43932 Grafana upgrade code migration DEV-43932 Grafana upgrade code migration - Home dashboard Mar 28, 2024
Copy link
Author

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

Copy link
Author

Choose a reason for hiding this comment

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

remove shortcut

Copy link
Author

Choose a reason for hiding this comment

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

remove shortcut

Copy link
Author

Choose a reason for hiding this comment

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

hide organization from enduser

@copyhold copyhold changed the base branch from logzio to v10.4.x-logzio April 1, 2024 04:00
@copyhold copyhold changed the base branch from v10.4.x-logzio to logzio April 1, 2024 04:00
@copyhold copyhold closed this Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants