* Fix installer 500 errror (that I caused)
Translations aren't available in the installer... oops. Reverted two changes made in the typos/translatables PR.
* Update install.html.twig
* Fix the learn more modal during the installer
Closes#2596
* Hide the quantity option
It doesn't seem to actually be implemented by the back-end logic.
Relates to #2573
* Update Guest.php
* Added a red, scary message
* Added word 'WARNING!'
---------
Co-authored-by: John P <64874788+John-S4@users.noreply.github.com>
* Update CI for PHP 8.4
* Update composer deps for PHP 8.4
* Updates
* This is the default mode and this constant causes test failutes
* Explicily install the PDO extensions
* Temporarily downgrade the live tests to PHP 8.3
It would seem that there is some kind of problem with PHP 8.4 in regards to these tests. I believe it is outside of our control however as it installs fine for me with PHP 8.4 under DirectAdmin
* Update to address deprecations
* Make that nullable
* Fixed my typo
* Bump PHPunit to v11
* Also take care of two minor things
* Formatting fix
* Replaced Maxmind's IP database
* Began rebuilding GeoIP reader functionality
The GeoIP2 package does not worth with DB's that aren't built by maxmind themselves, making it rather unhelpful for us.
Since my long-term goal is for someone to be able to bring in their own DB, making a custom implementation seems like the reasonable choice.
(Plus my aim is already to replace the MaxMind DB due to it's licencing)
* Created an IP address lookup page
* + ASN info
* Bump last patch
* Make PHPStan happy
* Very minor refactor + PHPDocs
* Only enable the fallback cron behavior for testing / dev setups
* Clean up the cron error message
We don't need to worry about it clearing the message on prod environments going forward as the fallback will be disabled
* Fixed CS
* Bumped the Rector deadcode level
* Added the instanceof setlist
* Increasded type coverage and updated tests config too
* Bumped type coverage & ran PHP-cs-fixer
* Bump the password hash cost from 10 to 12
And a few minor changes to the password class + moving it under the FOSSBilling namespace
* Slight fixup, spelling fixed
* Wrote a few more tests, improvements
* Ran Rector & PHP-CS-Fixer
* Append a capital letter to the test client passwords
* Minor tweaks
* Display more info after the tests run
* Oops, I forgot to set the dir
* Fix cron behavior for test env, dropped legacy tests
* Rename the empty test suite so PHPUnit ignores it
* Update cspell.json
* Minor tweaks to the tests
* Fixes
* Rename tests to tests-legacy
* Groundwork for live tests
* Somewhat working tests on a live instance
* Hmmmmmm
* Fix
* Fixed the other bug
* Added a handful of various tests
* Typos, all these are admin endpoints
* Bypass this check for testing envs
* Disable it for now
* Mini cleanup
* Cleanup from debugging, ran PHP-CS-Fixer
* Implement `passwordlength` field for service hosting generated accounts
Fix testing DirectAdmin connections (it previously did nothing)
* Revert unintended change from the previous PR
* Fix changes not saving to db
* Fix `passwordlength` not showing everywhere
* Remove stray debug line
* Fix: passwords being incorrectly set to 7 asterisks when an order is uncancelled
* Requested changes + typo fix
* Include `passwordlength` as ignored term
* Fix typo change oversight
* Minor code clarity improvements
* Type safety for the `passwordlength` and `port` fields
* Fallback to the original model value
* Remove default value for new servers, to show the placeholder
* Improve customer UI
Increase padding for service hosting management tabs
Include missing badge styling for `canceled` orders
* More consistent button colours for orders
* Rename `passwordlength` to `passwordLength`
Remove `activate` and `uncancel` tests for now as they don't really work
* Remove spelling ignore for `passwordlength`
* Restore missing `$httpClient` variable
* Resolve comments
* More thorough port validation
* Fix errors caused by fixing the previous merge conflicts through the GH web interface
* Added the rector cache to the action
* Enabled PHP-CS fixer for the tests & library folder
* Use the PHP-CS-Fixer Cache
* Fix the tests
* Ensure the Sentry placeholder isn't messed up from CS changes
* Typo..
* Fixed admin route detection
* Added support for per-theme default MD attributes
* Restore the subfolder check
In theory my changes would fix the original issue, but I'm finding I have other errors when testing it so.. I'm not gonna worry about it
* Fixed client search for cases without first and last names
* Fixed the domain action not being set properly when ordering
This issue prevented someone from selecting "transfer" as their option
* Cleanup the 'srp' locale folder
* Updated the post-install admin URL
* 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
* 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
* #1583 initial workflow update using debug reference in config for install dir bypass
* #1583 add missed files
* #1583 improve config generation
* #1583 clean up docblock (issue feedback)
* fix https detection, corrected pull from upstream
* #1583 improve docker build config
* #1583 remove docker configs from repo, they have been moved to dev workflow documentation
* #1683 replace installer template assets
* #1683 initial UI layout overhaul, still need to port in some original UI logic
* #1683 initial backend overhaul, also still needs work
* #1683 misc cleanup, move license placement
* #1683 rename installer result template
* improve layout and content, fix variable naming #1683
* small fixes, readability improvement #1683
* stop passing references everywhere... use class variable instead #1683
* refactor unnecessary methods, improve more class variable references, optimize exception flow, remove duplicated method calls, verbose commenting/method renaming/code flow adjustment for readability #1683
* rename installer class (I think we deserve it at this point...) #1683
* improve form submission UX #1683
* block install if subfolder is detected #1683
* add validation for checking if we are already installed, secure against tampered requests #1683
* touch up install result for better onboarding #1683
* conver theme to jsdelivr, delete local picocss assets #1683
* fix typos #1683
* Use a local CSS file, other minor improvements
* Implemented new functionality on the install page
* Bug fix, make it more space efficient
* Minor fix
* Casing and minor JavaScript changes
* Adjusted the buttons
* Fix the blank screen issue
* window -> tab
* match other link tooltip adjustments
* update subfolder installations documentation link
* add Database prefix to db field labels
* Sentence case
* agreement checkbox
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
* #1583 initial workflow update using debug reference in config for install dir bypass
* #1583 add missed files
* #1583 improve config generation
* #1583 clean up docblock (issue feedback)
* fix https detection, corrected pull from upstream
* #1583 improve docker build config
* #1583 remove docker configs from repo, they have been moved to dev workflow documentation
* Two very minor changes
* Other minor changes
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>