Christopher Allford
d32c470cea
Added a database option to allow for selecting different MaxMind databases
2020-01-13 14:10:08 -08:00
Claudio Sanches
f9d8b85c04
Remove notice when license key is present
2020-01-13 17:40:10 -03:00
Christopher Allford
ef0eccf0ac
Added upgrade step for removing the legacy MaxMind database
2020-01-13 11:18:14 -08:00
Christopher Allford
48d819ebeb
Added support for non-standard upload folder paths
2020-01-13 11:00:23 -08:00
Christopher Allford
6d3a3053c5
Moved the database file into the woocommerce_uploads folder
2020-01-13 08:53:43 -08:00
Christopher Allford
645affb7f3
Removed permanently failing unit test for deprecated GeoLite2 library integration
2020-01-13 08:17:11 -08:00
Christopher Allford
4f6aec61fd
Added support for a randomized MaxMind database file prefix
2020-01-13 08:16:44 -08:00
Christopher Allford
f5d07c954c
Adjusted the MaxMind license key notice to be clearer
2020-01-10 13:07:26 -08:00
Claudio Sanches
49aed6f6ca
Remove alternatives for deprecated methods
2020-01-10 16:31:27 -03:00
Claudio Sanches
c3abe8ac65
Added missing license key notice and triggers
2020-01-10 15:07:05 -03:00
Claudio Sanches
48547143f4
Fixed integration ID
2020-01-10 15:02:56 -03:00
Claudio Sanches
91ec28f167
Updated integration ID and included methods to display notices
2020-01-10 15:02:11 -03:00
Claudio Sanches
cfeb07eaf7
Removed legacy code
2020-01-10 13:18:25 -03:00
Claudio Sanches
8aa7e62a21
Fixed fatal error in system status page
2020-01-10 12:22:42 -03:00
Claudio Sanches
2554cbf6e0
Prevent fatal error if MaxMind Reader is not installed
2020-01-10 12:16:53 -03:00
Claudio Sanches
0e119cb97a
Fixed missing methods, added deprecated notices and @since
2020-01-10 11:58:53 -03:00
Christopher Allford
f5cbca5beb
Added unit tests for the MaxMind integration class
2020-01-10 02:47:43 -08:00
Christopher Allford
93e1d606ed
Fixed a bug where empty database paths might break the update
2020-01-10 02:47:23 -08:00
Christopher Allford
19ded6609d
Refactored the MaxMind database class to not use static methods in order to make testing the integration class easier
2020-01-10 02:09:51 -08:00
Christopher Allford
26e0b71fce
Added support for mod_maxminddb's MM_COUNTRY_CODE server variable
2020-01-10 01:23:06 -08:00
Christopher Allford
0f6da046a1
Refactored the IP geolocation method
2020-01-10 00:08:24 -08:00
Christopher Allford
b7521368a7
Fixed the response for the geolocation filter
2020-01-10 00:07:55 -08:00
Christopher Allford
bbbfc3bfab
Moved the MaxMind geolocation lookup into the integration class
2020-01-09 23:46:25 -08:00
Christopher Allford
02ee3f695e
Moved the database update from the WC_Geolocation class to the MaxMind-specific integration
2020-01-09 23:22:42 -08:00
Christopher Allford
6e41f370a5
Added a documentation link to the license key setting description
2020-01-09 21:39:28 -08:00
Christopher Allford
2df3af1e63
Deprecated the WC_Geolocation::get_local_database_path method
2020-01-09 21:31:12 -08:00
Christopher Allford
f91ff82806
Moved the loading of the database class into the integration
2020-01-09 21:29:47 -08:00
Christopher Allford
d45a3541f4
Removed the unnecessary GeoLite2 version check
2020-01-09 20:58:42 -08:00
Christopher Allford
0d4b8f4bd3
Added sanitization to the license key in download URLs
2020-01-09 20:44:13 -08:00
Christopher Allford
6af0edfd94
Added a deprecation notice for the GEOLITE2_DB constant
2020-01-09 16:21:33 -08:00
Christopher Allford
72a84911ea
Simplified the URL generation for geolocation database downloads
2020-01-09 16:18:20 -08:00
Christopher Allford
7cdd19da3f
Fixed the erroneous return in WC_Geolocation::get_local_database_path
2020-01-09 16:16:34 -08:00
Christopher Allford
bf057927ae
Moved the loading of integration classes into the WC_Autoloader
2020-01-09 15:46:01 -08:00
Christopher Allford
98119047bf
Added back the WC_Geolocation's get_local_database_path method since it was publicly used
2020-01-09 00:56:22 -08:00
Christopher Allford
3e597e6f68
Replaced the Geolocation database fetching functionality with MaxMind integration
2020-01-09 00:31:51 -08:00
Christopher Allford
000a75c23b
Fixed the validation for MaxMind license keys
2020-01-08 22:56:24 -08:00
Christopher Allford
f23c26a9f9
Fixed a permissions conflict caused by the dummy GeoLite2 archive's date
...
The test would fail if the web server had stored the data already!
2020-01-08 22:56:07 -08:00
Christopher Allford
95e59fc777
Made the database service class methods static for convenience \
2020-01-08 21:59:04 -08:00
Christopher Allford
1eb49ef8b8
Added filterable support for fetching the database path
...
This replaces the corresponding geolocation class functionality. We are deprecating the woocommerce_geolocation_local_database_path filter in favor of the woocommerce_maxmind_geolocation_databse_path filter. Since we want the option to turn this into a feature plugin, it's wise to make sure nothing is too generic.
2020-01-08 21:48:05 -08:00
Christopher Allford
46d7f16b19
Added support for downloading and extracting the GeoLite2 database
2020-01-08 21:09:35 -08:00
Christopher Allford
45157ff4e1
Added a default integration settings page for managing MaxMind Geolocation services
2020-01-08 21:08:25 -08:00
Christopher Allford
a477f9367d
Added support for creating default integrations
2020-01-08 21:05:14 -08:00
Christopher Allford
300064187b
Moved the MaxMind DB Reader library into composer and pinned the latest version
2020-01-07 15:25:58 -08:00
Claudio Sanches
818cde0d1d
Merge pull request #25265 from woocommerce/revert-25263-revert-25259-update-renovate
...
Update Renovate bot configuration to update dev dependencies monthly
2020-01-07 14:02:59 -03:00
Claudio Sanches
cb654ae065
Merge pull request #25368 from woocommerce/fix/25329
...
[Importer] Fix "invalid product type message" for variations
2020-01-07 13:18:29 -03:00
Claudio Sanches
cd137915b8
Set correct post type for product variation
...
And catch any WC_Data_Exception
2020-01-06 21:36:54 -03:00
Claudio Sanches
3ebda4a431
Use WC_Data_Exception in WC_Product_Variation_Data_Store_CPT
2020-01-06 21:35:23 -03:00
Claudio Sanches
85a077b939
Coupon race condition prevention
2020-01-06 19:44:24 -03:00
Claudio Sanches
2ce4a60ff1
Remove old unit test
2020-01-06 19:37:47 -03:00
Christopher Allford
c48ec2853e
Corrected the format for the dev dependency schedule
2019-12-31 14:06:26 -08:00