* Allow clients to choose if they want a subscription
* Spelling
* Fixed it
* Improved wording
* I wish I had spellcheck in VS Code
* Made it configurable
* Prevent Massmailer from duplicating recipients
* Minor optimization
We don't need this info as it's actually fetched in a later step. All we need from this step is the ID of each client
* Further optimize using the DISTINCT SQL query option
Thanks to @evrifaessa for pointing out this is an option.
Should be more efficient to let the SQL engine do the worth rather than doing it via PHP
* Further optimization, fixed filter selection in the UI
* Added the ability to see the list of recipients
* Update cspell.json
* Update rector config to include tests
* Run Rector against the tests
* Delete test-results
* Update .gitignore
* Correctly set the PHP min to 8.1, split the configs
* Corrected PHPDoc
* Deleted tests we can't really get to pass
PHPunit is hard-coded to fail when a class has a return type of `never`, which is the correct return type of our redirect function (and rightfully so).
No way to disable the exception as far as we can tell
* Update monolog/monolog to version 3.5
* Update Monolog priority levels to use Level enum
Update Monolog library class to use Level enum for priority levels, as previous constants depreciated.
* Bump minimum PHP version to 8.1
* Missed these too
* Shit's broke and stupid as fuck
* Update SentryHelper.php
* Update package-lock.json
* I did the fixing
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Remove the Queue module and update massmailer
Queue module was only used by the massmailer module & it duplicated the functionality of the email service, resulting in added complexity for no real benefit.
This commit removes the Queue module outright and points the massmailer to the email service instead, which already implements queing, retires, and time limits.
* Added the ability to view the email queue
* Minor front-end improvements, added removal patch
* Cleanly handle a client being removed
* Fix PATH_DATA constant to use config
Update `PATH_DATA` constant to use the `path_data` config option.
* Replace direct config references with constants
Replace direct references to `config.php` file and specific config options in favour of global constants, where available.
* Drop BB prefix on global constants
Rename global constants to drop `BB_` prefix, where appropriate.
* Merge Kb and Support modules
Merge the Kb and Support modules as they contain related functionality.
* General improvements to Support module UI
Update Support module copy and navigation to be more consistent, and other general improvements.
* This was missed.. and now it's not 😉
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Remove php-http/message-factory
* Don't report error reporting changes on preview builds
We don't have a way to reliably track / compare this, so the message would otherwise almost always be displayed.
Hiding the massage on preview builds resolves that
* Downgrade errors in the API controller
None of these are really errors, so let's convert them to InformationException so they aren't captured and sent to Sentry
* Began implementing Sentry.io support
* Added to the installer
* Added the ID to the bug report template and UI
* Hook it into our error handler, added the ability to filter by error code
* Attempting to add the DSN via GH actions
* Spelling and making PHPstan happy
* Skip exceptions for various incomplete configurations
Also brings in some of the category suggestions made by @Anuril in #195
* Update tests to account for changes
* Added & renamed exception classes
* Fix tests
* Change a bunch of items to be InformationExceptions
* Use a lighter HTTP client, fixed API error reporting
* I guess that's not needed now?
Arighty then
* Improvements, additional info added
* Update SentryHelper.php
* Improved error logging, added instance ID to error page
Also made it so that errors are correctly sent to Sentry rather than exclusively exceptions
* Make the tests happy
* Added the link, improved wording
Also removed the "performance" part of the reporting as it needs to be added to the front-end and I'm not currently implementing that
* Began implementing UI alerts and info
* Added the ability to toggle, fixed tests, use path constants
* Added some useful info & links to the page
* These should be InformationException
* Fix the automated Sentry DSN entry
* Fix the install number text
* Minor cleanup, converted more to InformationException
* Replaced some direct config references with constants
We have the BB_DEBUG constant to indicate if we have debug mode enabled or not, so we shouldn't be directly referencing it in the config file unless we actually need to do so.
Using the constant means there's less locations to update the reference if the config structure is changed
* Bugfix
* Consistency & fixed a PHPDoc
* Corrections
* We actually do want exceptions thrown here
* Change how we get the instance ID
* Stability improvements
Having support for translatable error pages was proving to be problematic, so I had to remove it.
I also had to update the exception class to handle cases where the trans function wasn't setup yet (needed for the /run-patcher page if an error occurs)
* Missed this change on git
* Also fix the variable names...
* Re-added new deps after rebase
* This should also accept "Error" types
* Added more info to the bug report and removed a dug line
* This wasn't supposed to get renamed
* Updated some missed references to Box_Exception
* 1224: Redirect to previous url after login
* 1224: Early return when logged in
* 1224: Unset _url to remove it from query params
* 1224: Added redirect for guests, use of session
* 1224: Use admin prefix from config instead of static prefix
* Use the ADMIN_PREFIX constant
* Set related order to Registrar_AdapterAbstract
* Very minor change
---------
Co-authored-by: Joan Andreu Soler <joan.andreu@scip.es>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>