{"id":18910874,"url":"https://github.com/peterupfold/hub-data-tidy","last_synced_at":"2026-03-08T10:30:16.333Z","repository":{"id":145094103,"uuid":"171667854","full_name":"PeterUpfold/hub-data-tidy","owner":"PeterUpfold","description":"Provides a user interface for tidying old MIS data to keep the WordPress database running smoothly.","archived":false,"fork":false,"pushed_at":"2020-02-28T13:57:29.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T13:23:40.701Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeterUpfold.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-20T12:19:25.000Z","updated_at":"2020-07-27T16:11:10.000Z","dependencies_parsed_at":"2023-04-11T19:02:01.095Z","dependency_job_id":null,"html_url":"https://github.com/PeterUpfold/hub-data-tidy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterUpfold%2Fhub-data-tidy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterUpfold%2Fhub-data-tidy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterUpfold%2Fhub-data-tidy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterUpfold%2Fhub-data-tidy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterUpfold","download_url":"https://codeload.github.com/PeterUpfold/hub-data-tidy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239903461,"owners_count":19716082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T09:46:40.921Z","updated_at":"2026-03-08T10:30:16.268Z","avatar_url":"https://github.com/PeterUpfold.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hub Data Tidy\n\nDesigned for use with a [Parent Progress View](https://github.com/TestValleySchool/moodle-report-parentprogressview) deployment where a WordPress site \"The Hub\"\nis used as a data warehouse for data extracted from a ~~popular~~ common Management Information\nSystem (MIS). This plugin allows us to periodically tidy the data warehouse WordPress instance\nof old data to ensure it stays performant.\n\nThis plugin enumerates custom post types and permits the removal of old content based on\ndate or association with a postmeta object with a given prefix (used to clear data associated\nwith a username prefix).\n\n## Usage\n\nA WP-Admin interface is provided which appears upon plugin activation.\n\nAdditionally, a WP-CLI interface is provided which improves the experience for very large\nbatch sizes or for automated use.\n\n\tNAME\n\n\t  wp hub-data-tidy\n\n\tDESCRIPTION\n\n\t  Process the tidying up of Hub data through the WP_CLI interface.\n\n\tSYNOPSIS\n\n\t  wp hub-data-tidy\n\n\t  --wp-post-types=\u003cpost-types\u003e\n\t : A comma-separated set of the WordPress post type slugs to tidy (e.g. 'achievements,attendance-marks')\n\n\t  --batch-size=\u003cbatch-size\u003e\n\t : A maximum number of posts to process in this execution run of the command.\n\n\t  --simulate=\u003csimulate\u003e\n\t : Simulate mode is on by default. Pass 'off' or 'false' to actually remove content from WordPress.\n\n\t  --attached-username-prefix=\u003cusername-prefix\u003e\n\t : Only remove WP posts that have a meta value such that they are associated with usernames beginning with this string.\n\n\t  --date=\u003cdate\u003e\n\t : A YYYY-MM-DD string, where any content that was created on or after this date will not be selected for removal.\n\n\n## Licence\n\nHub Data Tidy is available under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License.\n\nPlease see `LICENSE.md` in this repository for full licence text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterupfold%2Fhub-data-tidy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterupfold%2Fhub-data-tidy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterupfold%2Fhub-data-tidy/lists"}