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

PROD-8011 #4514

Open
wants to merge 60 commits into
base: release
Choose a base branch
from
Open

PROD-8011 #4514

wants to merge 60 commits into from

Conversation

jitendrabanjara1991
Copy link
Collaborator

Jira Issue:

https://buddyboss.atlassian.net/browse/PROD-8011
https://buddyboss.atlassian.net/browse/PROD-7921

General Note

Keep all conversations related to this PR in the associated Jira issue(s). Do NOT add comment on this PR or edit this PR’s description.

Notes to Developer

  • Ensure the IDs (i.e. PROD-1) of all associated Jira issues are reference in this PR’s title
  • Ensure that you have achieved the Definition of Done before submitting for review
  • When this PR is ready for review, move the associate Jira issue(s) to “Needs Review” (or “Code Review” for Dev Tasks)

Notes to Reviewer

  • Ensure that the Definition of Done have been achieved before approving a PR
  • When this PR is approved, move the associated Jira issue(s) to “Needs QA” (or “Approved” for Dev Tasks)

…analytics site

- Added `bb_schedule_usage_report_cron` function to schedule a weekly CRON event for Sunday at midnight.
- Registered the `bb_usage_report_cron_event` hook to trigger the usage report sending process.
- Implemented `bb_send_usage_report_to_analytics` function to handle sending anonymous site data to the analytics endpoint.
- Currently logs a message to error log for testing purposes.
…s usage reporting

- Implemented `bb_uuid()` function to generate or retrieve a unique UUID for the site.
- Created `bb_collect_site_data()` function to gather BuddyBoss-related options and additional data for anonymous usage reporting.
- Data collected includes BuddyBoss options from the database and any extra data added via the `bb_usage_analytics_data` filter.
…ect site data and send it to the analytics site.

- Includes HTTP request with JSON-encoded data, custom headers, and timeout settings.
- Handles potential errors with WP_Error for failed requests or server errors.
- Ensures SSL verification is disabled for local requests via the `https_local_ssl_verify` filter.
- Added proper cleanup of variables and error handling.
* release: (41 commits)
Update: Grunt
Update: Grunt string-replace
Update: Version name update
Update: Language file update
grunt
Added change log
PROD-7988 - pull the API changes
PROD-7744 - Update - DB server version instead of server/host
PROD-7976 - phpcbf
PROD-7976 remove duplicate code logic
PROD-7976  Update normalizer code logic
PROD-7976 Update normalizer code logic
PROD-7933 - Remove welcome videos
[PROD-7872] Update mutual connections list styling
PROD-7517 - Fixed - If disable all CPT with WP post, then display error
PROD-7818 - Split search word and search within title and content for forum, topic and reply
PROD-7818 - Fixed - search result inconsistency when search any word within html for topic and reply
PROD-7818 - Fixed - search result inconsistency when search any word within html
PROD-7517 - Update doc block comment
PROD-7860 - Add condition to check activity empty or not
...
…ormation

- Added server-related data to the `$analytics_data` array including:
- Site URL, Admin URL, and Admin Email
- PHP version, MySQL version, and database provider
Operating system and web server details
- Enhanced data collection for BuddyBoss options and ensured additional server context is sent with usage reports.
- Preserved existing filter `bb_usage_analytics_data` for extending the data collection process.
- Improved variable management and code clarity.
… the `bb_collect_site_data` function.

Also code refactor
…lyze

- Improved code structure and readability for maintainability.
- Move and improve code which added in bp-core-functions.php and bp-core-actions.php file
- Load the class in class-buddypress.php
- Add icon for the setting
- Add field for 'Usage' and save that setting
- anonymous option will pull all data except - admin_email
- disable option will stop us pulling any data from the customers site and clear cron
- Create function instead of filter and move that code to specific file.
KartikSuthar
KartikSuthar previously approved these changes Oct 25, 2024
chetansatasiya
chetansatasiya previously approved these changes Nov 15, 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