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

Add new analytics service #4067

Merged
merged 2 commits into from
Feb 17, 2024
Merged

Add new analytics service #4067

merged 2 commits into from
Feb 17, 2024

Conversation

WalshyDev
Copy link
Member

@WalshyDev WalshyDev commented Dec 21, 2023

Description

As discussed in #developers, we want some better analytic insights into Slimefun (especially for the new storage layer work in progress).

This creates a new service and adds it to our current timings.

This can be debugged with /sf debug slimefun_analytics. Debugging will just show the JSON being sent and if the send was ignored.
Users can disable in the config.yml at metrics.analytics.

Proposed changes

Creates a new analytics service

Related Issues (if applicable)

Checklist

  • I have fully tested the proposed changes and promise that they will not break everything into chaos.
  • I have also tested the proposed changes in combination with various popular addons and can confirm my changes do not break them.
  • I have made sure that the proposed changes do not break compatibility across the supported Minecraft versions (1.16.* - 1.20.*).
  • I followed the existing code standards and didn't mess up the formatting.
  • I did my best to add documentation to any public classes or methods I added.
  • I have added Nonnull and Nullable annotations to my methods to indicate their behaviour for null values
  • I added sufficient Unit Tests to cover my code.

Still to do

  • Whip up the analytic service and put it on GitHub
  • Test once the service is stood up

@github-actions github-actions bot added the 🎈 Feature This Pull Request adds a new feature. label Dec 21, 2023
Copy link
Contributor

Your Pull Request was automatically labelled as: "🎈 Feature"
Thank you for contributing to this project! ❤️

Copy link
Contributor

github-actions bot commented Dec 21, 2023

Slimefun preview build

A Slimefun preview build is available for testing!
Commit: 115ccce5

https://preview-builds.walshy.dev/download/Slimefun/4067/115ccce5

Note: This is not a supported build and is only here for the purposes of testing.
Do not run this on a live server and do not report bugs anywhere but this PR!

Copy link

sonarcloud bot commented Dec 28, 2023

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

8 New issues
0 Security Hotspots
5.1% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@WalshyDev
Copy link
Member Author

Got a base site built out for this, just seeing if we can grab the slimefun.dev domain and then I can close this out

@TheBusyBot TheBusyBot added the ⚡ Merge Conflicts This Pull Request has merged conflicts which need to be resolved! label Feb 7, 2024
@WalshyDev WalshyDev force-pushed the feature/analytics branch 2 times, most recently from 5696e5d to 1f79c81 Compare February 15, 2024 04:22
@WalshyDev WalshyDev removed the ⚡ Merge Conflicts This Pull Request has merged conflicts which need to be resolved! label Feb 15, 2024
@WalshyDev WalshyDev marked this pull request as ready for review February 16, 2024 20:28
@WalshyDev WalshyDev requested a review from a team as a code owner February 16, 2024 20:28
J3fftw1
J3fftw1 previously approved these changes Feb 16, 2024
Copy link
Contributor

@J3fftw1 J3fftw1 left a comment

Choose a reason for hiding this comment

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

LGTM, I really like this addition.
We can now see if our PRs actually improve code.

Copy link
Member

@Sfiguz7 Sfiguz7 left a comment

Choose a reason for hiding this comment

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

Typo and question because am ded

README.md Outdated Show resolved Hide resolved
J3fftw1
J3fftw1 previously approved these changes Feb 17, 2024
Copy link

sonarcloud bot commented Feb 17, 2024

@WalshyDev WalshyDev merged commit bf40206 into master Feb 17, 2024
16 checks passed
@WalshyDev WalshyDev deleted the feature/analytics branch February 17, 2024 16:23
WalshyDev added a commit to J3fftw1/Slimefun4 that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎈 Feature This Pull Request adds a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants