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

Protect: Add WAF StatCards #35739

Merged
merged 90 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
dd6f3a3
Add waf stats class blocked requests stats actions, and apply stat ca…
dkmyta Dec 8, 2023
4872e57
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Jan 5, 2024
b31e65e
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Jan 23, 2024
1fe4b71
Merge trunk
dkmyta Feb 15, 2024
ee72e49
Adjust approach for storing and retrieving stats
dkmyta Feb 16, 2024
327aa7a
changelog
dkmyta Feb 16, 2024
8bc763f
Fix phpcs enables
dkmyta Feb 16, 2024
4f66af1
Remove FirewallHeader stories edits
dkmyta Feb 16, 2024
6d647f2
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Feb 16, 2024
e91be2f
Use options over an additional table
dkmyta Feb 16, 2024
e89b399
Reorg and fix spacing
dkmyta Feb 16, 2024
42e4c10
Fix dynamic/static calls
dkmyta Feb 16, 2024
1b29f73
Make update_daily_summary public for tests
dkmyta Feb 16, 2024
1f35eee
use deprecated setMethods over onlyMethods to bypass PHP 7.0 project …
dkmyta Feb 19, 2024
2ac6cd9
Fix up project versions
dkmyta Feb 19, 2024
ca6ccf3
Disable summary updates if share data is disabled, and add conditions…
dkmyta Feb 20, 2024
994c0c7
Remove TODOs
dkmyta Feb 20, 2024
598e699
Merge trunk
dkmyta Feb 22, 2024
5034adf
Improve changelog entries
dkmyta Feb 22, 2024
5db189a
Restructuring, improvements, storybook fixes
dkmyta Feb 22, 2024
00abbca
Make use of static methods consistent
dkmyta Feb 22, 2024
667bc2b
Add standalone mode handling for update_daily_summary
dkmyta Feb 22, 2024
f01dbe7
Fix tests
dkmyta Feb 22, 2024
5e7ab2f
Add integration tests
dkmyta Feb 23, 2024
63dd2c9
Revert unit test removal
dkmyta Feb 23, 2024
8501b36
Fix naming
dkmyta Feb 23, 2024
9d72caf
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Feb 23, 2024
3281775
Merge trunk
dkmyta Feb 29, 2024
2ff2e7b
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Mar 6, 2024
c4d5da6
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Mar 15, 2024
d0a00e7
Merge trunk
dkmyta Apr 16, 2024
3027bb1
Fix project versions
dkmyta Apr 16, 2024
6ae6826
Merge trunk
dkmyta May 10, 2024
aa0881f
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Jun 6, 2024
df720e9
Fix versions
dkmyta Jun 6, 2024
ed54ed8
Remove IDC package
dkmyta Jun 6, 2024
e413065
Remove duplicate changelog entries
dkmyta Jun 6, 2024
2ef7792
Revert vscode settings.json changes
dkmyta Jun 6, 2024
aabf9f8
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Jun 6, 2024
68965c8
Merge trunk
dkmyta Jul 11, 2024
c79cea9
changelog
dkmyta Jul 11, 2024
e4cec87
Undo wpcomsh plugin updates
dkmyta Jul 11, 2024
f4ad0b5
Revert prior changes to wpcomsh
dkmyta Jul 11, 2024
329db63
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Jul 17, 2024
0e7685d
Fix versions
dkmyta Jul 17, 2024
ab0a0d3
Optimize FirewallStatCards
dkmyta Jul 18, 2024
40e574e
Fix share data option check
dkmyta Jul 18, 2024
af7f7b5
Fix styling
dkmyta Jul 18, 2024
cff3a51
Fix translation strings
dkmyta Jul 19, 2024
f820884
Ensure no duplicated code and extra debug data is logged appropriately
dkmyta Jul 19, 2024
0cc0b8b
Fix tests
dkmyta Jul 19, 2024
33a50bd
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Jul 19, 2024
bd2f62f
Fix phan errors
dkmyta Jul 22, 2024
31d9ff9
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Jul 22, 2024
77b4fc7
Use supported phpunit method
dkmyta Jul 22, 2024
baf43c2
Use supported phpunit method
dkmyta Jul 22, 2024
7b69eb5
Final test fixes
dkmyta Jul 22, 2024
34d0584
Merge trunk
dkmyta Aug 13, 2024
5036fb0
Merge trunk
dkmyta Aug 22, 2024
038a981
Remove unused code, add plan check for new stats
dkmyta Aug 22, 2024
b4dc468
Fix method naming
dkmyta Aug 22, 2024
101f382
Add method for retrieving all time stats
dkmyta Aug 22, 2024
d586554
Make direct db connection persistent, add/fix tests
dkmyta Aug 23, 2024
e7a15d9
Close db connection if initialized
dkmyta Aug 23, 2024
0cc0457
Add standalone mode direct db handling
dkmyta Aug 23, 2024
839fe7c
Fix project versions
dkmyta Aug 26, 2024
229cc82
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Aug 26, 2024
22486fe
Ignore phpcs rules, data needs to be current
dkmyta Aug 26, 2024
74c276c
Remove error_log
dkmyta Aug 26, 2024
884f21b
Address phan errors
dkmyta Aug 26, 2024
db6ce2e
Use standard approach
dkmyta Aug 26, 2024
3a8a52b
Add update flag to initialization method so we aren't duplicating the…
dkmyta Aug 26, 2024
6a129d1
Fix initialization method calls
dkmyta Aug 26, 2024
82ffa59
Manually update phan baselines
dkmyta Aug 27, 2024
7ca0b77
Merge branch 'trunk' into add/protect-firewall-stat-cards
dkmyta Aug 27, 2024
89f70d0
Revert versions updates
dkmyta Aug 27, 2024
6f32fef
Remove duplicate changelog entries
dkmyta Aug 27, 2024
e98e944
Remove FirewallHeader stories from broken dir
dkmyta Aug 27, 2024
b0b1e90
Merge trunk, fix conficts
dkmyta Sep 9, 2024
b7ecb5f
Update stories
dkmyta Sep 9, 2024
c254b2b
Updates to Blocklog Manager class
nateweller Sep 17, 2024
0618197
Merge remote-tracking branch 'origin/trunk' into add/protect-firewall…
nateweller Sep 17, 2024
ea685c9
Fix prop name
nateweller Sep 17, 2024
c27aeac
Minor enhancements and compatibility improvements
nateweller Sep 19, 2024
f573cdd
Statcard adjustments
nateweller Sep 19, 2024
08ab617
Revert phan baselines changes
dkmyta Sep 23, 2024
7aaffa3
Merge trunk
dkmyta Sep 23, 2024
c9bcb29
Reapply phan baseline changes
dkmyta Sep 23, 2024
afd8245
Apply naming consistency, update FirewallSubheading to use IconTooltip
dkmyta Sep 23, 2024
1426e9b
Fixes
dkmyta Sep 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Added StatCard component export
1 change: 1 addition & 0 deletions projects/js-packages/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ export { default as ProgressBar } from './components/progress-bar';
export { default as UpsellBanner } from './components/upsell-banner';
export { getUserLocale, cleanLocale } from './lib/locale';
export { default as RadioControl } from './components/radio-control';
export { default as StatCard } from './components/stat-card';
export * from './components/global-notices';
3 changes: 1 addition & 2 deletions projects/packages/waf/.phan/baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,12 @@
'src/class-waf-constants.php' => ['PhanCoalescingNeverNull', 'PhanUndeclaredConstant'],
'src/class-waf-operators.php' => ['PhanTypeMismatchReturn'],
'src/class-waf-rules-manager.php' => ['PhanTypeMismatchArgument'],
'src/class-waf-runtime.php' => ['PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeArraySuspiciousNullable', 'PhanUndeclaredConstant'],
'src/class-waf-runtime.php' => ['PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeArraySuspiciousNullable'],
'src/class-waf-transforms.php' => ['PhanPluginInvalidPregRegex', 'PhanTypeInvalidDimOffset'],
'tests/php/integration/test-waf-compatibility.php' => ['PhanParamTooMany'],
'tests/php/unit/functions-wordpress.php' => ['PhanRedefineFunction'],
'tests/php/unit/test-waf-operators.php' => ['PhanTypeMismatchArgumentInternal'],
'tests/php/unit/test-waf-runtime-targets.php' => ['PhanPluginRedundantAssignment'],
'tests/php/unit/test-waf-runtime.php' => ['PhanImpossibleTypeComparison', 'PhanTypeMismatchArgument'],
'tests/php/unit/test-waf-standalone-bootstrap.php' => ['PhanDeprecatedFunction', 'PhanNoopNew'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Added Waf_Blocklog_Manager class
Loading
Loading