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

feat: Add garbage collection cleanup admin and cron job #227

Merged
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c4d2efa
Add garbage collection cleanup admin and cron job
markkelnar Jul 11, 2023
ebe21a2
Delete in smaller batch events instead of all posts
markkelnar Jul 12, 2023
dc3db02
bump some version numbers
markkelnar Jul 14, 2023
63d3716
Add tests for admin settings garbage collection options
markkelnar Jul 14, 2023
81b4885
Add garbage collection unit tests
markkelnar Jul 14, 2023
e9166b8
Merge remote-tracking branch 'origin/main' into feature/garbage-colle…
markkelnar Jul 14, 2023
456d979
Get age from settings value in utils class
markkelnar Jul 14, 2023
9ff1e21
Add admin editor ability to skip garbage collection per query
markkelnar Jul 14, 2023
378ebed
Add tax_query to gargage collection to ignore where docs opt out
markkelnar Jul 18, 2023
1334dfc
Rename garbage collection class
markkelnar Jul 18, 2023
025b7c7
Add groups collection for documents. Refactor garbage collection to i…
markkelnar Jul 20, 2023
f8e6a7a
fix code sniff white space
markkelnar Jul 20, 2023
72dd923
Update gc text in graphql settings to talk about groups
markkelnar Jul 20, 2023
0f7baaa
Add the word "delete" to text
markkelnar Jul 20, 2023
c99ab11
Merge remote-tracking branch 'origin/main' into feature/garbage-colle…
markkelnar Jul 21, 2023
614a874
Use garbage_collect instead of gc
markkelnar Jul 24, 2023
a55d6e9
text description change.
markkelnar Jul 24, 2023
037df6e
snake case function name
markkelnar Jul 24, 2023
5af7178
Merge remote-tracking branch 'me/feature/garbage-collect-aged-queries…
markkelnar Jul 24, 2023
55fc784
fix for consistent names
markkelnar Jul 24, 2023
514894a
enable admin quick-edit for document groups
markkelnar Jul 24, 2023
b65efd9
Merge remote-tracking branch 'origin/main' into feature/garbage-colle…
markkelnar Jul 25, 2023
22cf8f5
Merge commit '9a023bfd9243b02f80861c56fab9c20d04c4a79a' into feature/…
jasonbahl Jul 25, 2023
35168d9
re-add allow-plugin for codesniffer-installer
markkelnar Jul 26, 2023
294bbee
Merge remote-tracking branch 'me/feature/garbage-collect-aged-queries…
markkelnar Jul 26, 2023
19923e0
add filter for garbage collect recurrence
markkelnar Jul 26, 2023
2495e72
merge fixes
markkelnar Jul 28, 2023
3a7f141
composer update
markkelnar Jul 28, 2023
92dbc42
Merge branch 'main' into feature/garbage-collect-aged-queries
jasonbahl Aug 9, 2023
7923d53
fix phpstan suggestions
markkelnar Aug 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MYSQL_USER=${DB_USER}
MYSQL_PASSWORD=${DB_PASSWORD}

# docker container env vars
WP_VERSION=5.9
PHP_VERSION=8.0
WP_VERSION=6.1
PHP_VERSION=8.1
jasonbahl marked this conversation as resolved.
Show resolved Hide resolved
WPGRAPHQL_VERSION=latest
DATA_DUMP_DIR=/var/www/html/wp-content/plugins/wp-graphql-smart-cache/tests/_data
4 changes: 2 additions & 2 deletions .env.testing
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ MYSQL_USER=${DB_USER}
MYSQL_PASSWORD=${DB_PASSWORD}

# docker container env vars
WP_VERSION=5.9
PHP_VERSION=8.0
WP_VERSION=6.1
PHP_VERSION=8.1
WPGRAPHQL_VERSION=latest
DATA_DUMP_DIR=/var/www/html/wp-content/plugins/wp-graphql-smart-cache/tests/_data
8 changes: 2 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
"wp-graphql/wp-graphql-testcase": "*",
"squizlabs/php_codesniffer": "^3.6",
"phpcompatibility/phpcompatibility-wp": "*",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"wp-coding-standards/wpcs": "^2.3",
"lucatume/wp-browser": "^3.0",
"codeception/module-asserts": "^1.3",
"codeception/module-asserts": "^1.3.1",
"codeception/module-phpbrowser": "^1.0",
"codeception/module-webdriver": "^1.2",
"codeception/module-db": "^1.1",
Expand Down Expand Up @@ -65,10 +64,7 @@
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
markkelnar marked this conversation as resolved.
Show resolved Hide resolved
}
},
},
"require": {
"appsero/client": "^1.2"
}
Expand Down