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

Issue 65: Enable Stream on multisite / network installs #401

Merged
merged 141 commits into from
Apr 22, 2014

Conversation

lukecarbis
Copy link
Contributor

See #154 for additional discussion. Resolves #65

  • Records screen shows mashup of all activity on network
  • Remove Keep Records for and Reset Stream Database from New Site Settings screen
  • Private feeds for the network (waiting to hear back on Issue 65: Enable Stream on multisite / network installs #401 (comment))
  • Live updates support in dashboard widget and records screen
  • Ensure cron event is fired when Keep Records for network setting is changed
  • Ensure Reset Stream Database action deletes all records (where type=stream) for all sites
  • Ensure Keep Records For setting works on multisite with and without Stream network enabled
  • Ensure Reset Site Settings action applies the New Site Settings to all blogs
  • Ensure multisite support works with the Extensions screen (Introduce the extensions screen #396)
  • Test DB upgrade routine for those already using Stream on multisite installs
  • Move the DB upgrade logic to the Create a separate API for handling DB update routines #379 branch, and remove from this branch
  • Test on WordPress 3.9

Chris Olbekson and others added 30 commits January 14, 2014 13:49
- Added check for is_multisite() to db $prefix definition to use base_prefix
- Updated install $sql to include blog_id column
- Added update function to run install() and alter the column order
- Added site_id and blog_id values to query defaults
- Run install check method on plugins_loaded.  plugin_activation_hook doesn't run when updating
-  Added blog_id and site_id to fields array
- Added blog_id and site_id values to $recordarr
- Removed debugging statement from query
- Add stream page to network admin screen if if plugin is network activated
- Add WP_STREAM_PLUGIN const to use for checking if plugin is network activated
- Replaced all occurrences of admin_url() with network_admin_url() if is_network_admin() returns true
- Updated query args for blog_id filter
- Added all actions to be tracked
- Created empty callback function for each action
- Added check for is_network_admin before defaulting the blog_id logged as 1
- Added function to the list table to generate a blog object for actions done in network admin
- Will allow extensions and future features to set blog_id without relying on get_current_blog_id() or is_network_admin()
-  Added settings API wrapper for saving network wide settings
- Added filter to get_fields method to allow settings to be extended
- Added function to filter stream get settings to load correct values on network admin settings page
- Add select field to network options screen to choose site to change settings for
- Removed redundant code that called admin_notices from network admin screen
- Added public static variable $disable_site_admin, gets set to true when network option checked to dis allow access to individual site admin screens
- Added html output for select in settings render method
Conflicts:
	includes/admin.php
	includes/db-actions.php
	includes/install.php
	includes/list-table.php
	includes/settings.php
Conflicts:
	includes/admin.php
	includes/settings.php
@lukecarbis
Copy link
Contributor Author

These are the tests I've run on this branch: http://pastebin.com/3LXyFqDP

Please feel free to suggest any additional testing that may be required.

Waiting for a reply at #396 (comment) before having a crack at that last checkbox.

@shadyvb
Copy link
Contributor

shadyvb commented Apr 17, 2014

@lukecarbis It'd be extra cool if those tests were carried out in phpunit format, specially for such significant feature.. not sure if there is enough time for it thought.
/cc @fjarrett

@frankiejarrett
Copy link
Contributor

@lukecarbis I decided to add Stream to the Network admin bar. Done in 4be02d2

screen_shot_2014-04-17_at_5_08_04_pm

frankiejarrett added a commit that referenced this pull request Apr 22, 2014
Issue 65: Enable Stream on multisite / network installs
@frankiejarrett frankiejarrett merged commit e64ea11 into develop Apr 22, 2014
@frankiejarrett frankiejarrett deleted the issue-65 branch April 22, 2014 21:10
@frankiejarrett
Copy link
Contributor

/five @c3mdigital @powelski @lukecarbis

@lukecarbis lukecarbis mentioned this pull request Apr 23, 2014
6 tasks
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.

Network-wide Stream
7 participants