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

Remove checks that slow down plugin load and cause "Initializing plugin..." #2624

Merged
merged 16 commits into from
Jul 26, 2023

Conversation

iskhakov
Copy link
Contributor

@iskhakov iskhakov commented Jul 24, 2023

What this PR does

  • Removes "Initializing plugin.." message during load
  • Removes black screen when plugin loads
  • Removes wait for syncs between OnCall and Grafana
  • Deprecates GET /status, POST /sync, GET /sync in favour of single POST /status

Which issue(s) this PR fixes

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • CHANGELOG.md updated (or pr:no changelog PR label added if not required)

@iskhakov iskhakov requested review from a team July 24, 2023 13:16
@iskhakov iskhakov added the pr:no public docs Added to a PR that does not require public documentation updates label Jul 25, 2023
@iskhakov iskhakov self-assigned this Jul 25, 2023
@iskhakov iskhakov force-pushed the iskhakov/faster-plygin-initialization branch from 1ba3225 to 20a327b Compare July 26, 2023 01:39
@iskhakov iskhakov changed the title Remove delays when plugin is loaded Remove checks that delay plugin load and cause "Initializing plugin..." Jul 26, 2023
@iskhakov iskhakov changed the title Remove checks that delay plugin load and cause "Initializing plugin..." Remove checks delaying plugin load and cause "Initializing plugin..." Jul 26, 2023
Comment on lines +218 to +222
const pluginLink = (
<LinkButton href={`/a/grafana-oncall-app/`} variant="primary">
Open Grafana OnCall
</LinkButton>
);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Comment on lines +157 to +159
if (!FaroHelper.faro) {
FaroHelper.initializeFaro(this.onCallApiUrl);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

what's this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

right. I just wasn't sure why this line was all of a sudden being added here but now I see it was removed here. makes sense 👍

@iskhakov iskhakov changed the title Remove checks delaying plugin load and cause "Initializing plugin..." Remove checks that slow down plugin load and cause "Initializing plugin..." Jul 26, 2023
@iskhakov iskhakov added this pull request to the merge queue Jul 26, 2023
Merged via the queue into dev with commit c73d0f3 Jul 26, 2023
@iskhakov iskhakov deleted the iskhakov/faster-plygin-initialization branch July 26, 2023 11:02
brojd pushed a commit that referenced this pull request Sep 18, 2024
…in..." (#2624)

# What this PR does

* Removes "Initializing plugin.." message during load
* Removes black screen when plugin loads
* Removes wait for syncs between OnCall and Grafana
* Deprecates GET /status, POST /sync, GET /sync in favour of single POST
/status

## Which issue(s) this PR fixes

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
4 participants