-
Notifications
You must be signed in to change notification settings - Fork 506
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
USH-228 - Upgrade project dependencies #4527
Conversation
668c171
to
2f819c8
Compare
2f819c8
to
20098c4
Compare
…yet. replace with php 7.4
30638b3
to
4abf6c2
Compare
e0cbf6f
to
f01f564
Compare
2220f1e
to
3bade71
Compare
8a781c8
to
806c2ec
Compare
aeec161
to
7bf79b2
Compare
7bf79b2
to
d38c368
Compare
a765c2c
to
3add9d8
Compare
What is one scenario where are you looking forward to using these extendable relations? |
Extendable relations allow us to dynamically add entity associations in Eloquent, a typical scenario in our system would be for targeted forms (surveys). The association of a contact to a post and form will most likely be an isolated feature from the core system, so it's something we'll see being dynamically created based on the query. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking the requested changes explicitly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's good for me
@webong can you look at the error in test 7.4 , any idea ? |
@Mh-Asmi trying to replicate this on my local to see what went wrong |
This pull request makes the following changes:
Update Notes
5.5 to 5.6
Laravel doc
COMPOSER_MEMORY_LIMIT=-1 composer install --verbose -vvv
we might have to run composer without memory limit5.6 to 5.7
Laravel doc
public/svg
directory must exist.storage/framework/cache/data
must exist.5.7 to 5.8
Laravel doc
array_pluck
byArr::pluck
array_flatten
byArr::flatten
str_random
byStr::random
str_slug
byStr::slug
setUp
method so that its return type isvoid
in theushahidi/platform/tests/unit
directory.tearDown
method so that its return type isvoid
in theushahidi/platform/tests/unit
directory.tearDown
method from test classesapp/PlatformVerifier/Env.php
to use new syntax ofDotenv
library:Dotenv::create()
.5.8 to 6.0
Laravel doc
php artisan sentry:publish
Event::fire
toEvent::dispatch
camel_case
function that wraps aroundStr::camel
for backwards compatibility with laravel-ckan-api package as 6.0 doesn't have thecamel_case
helper function anymore.predis
tophpredis
. In order to keep usingpredis
, ensure the redis.translator->trans()
method inKohanaValidationEngine
,ValidatorTrait
andContactRepository
by translator->get()method as
Illuminate\Contracts\Translation\Translator` changed.Input::get
byRequest::input
inPost.php
andSurvey.php
as theIlluminate\Support\Facades\Input
facade has been removed.create
method inplatform/app/Passport/ClientRepository.php
to be compatible with new Passport version. It now matchesplatform/vendor/laravel/passport/src/ClientRepository.php
createPasswordGrantClient
method inplatform/app/Passport/ClientRepository.php
to be compatible with new Passport version. It now matchesplatform/vendor/laravel/passport/src/ClientRepository.php
League\OAuth2\Server\Exception\OAuthServerException
byLaravel\Passport\Exceptions\OAuthServerException
in:app/Passport/TokenGuard.php
app/Exceptions/Handler.php
secret
field inoauth_clients
table as per Passport documentation on public clients:migrations/20201110132445_update_oauth_clients_table_secret.php
provider
field inoauth_clients
table as per Passport documentation on multiple guards:migrations/20201110135500_update_oauth_clients_table_providers.php
"doctrine/dbal": "^2.0"
dependency was added because it was needed to make changes in oauth tablesTokenGuard
to usePsrHttpFactory
instead ofDiactorosFactory
(deprecated). More info hereScenario: Requesting access token with incorrect password fails
intests/features/oauth2.feature
to check for 400 status code instead of 401.6.0 to 7.0
Laravel doc
report
andrender
methods inapp/Exceptions/Handler.php
so that they takeThrowable
instead ofException
as parameters"symfony/psr-http-message-bridge": "^2.0"
as dependencynyholm/psr7
as dependency"barryvdh/laravel-cors"
by"fruitcake/laravel-cors"
Barryvdh\Cors\HandleCors::class
byFruitcake\Cors\HandleCors::class
inapp/Http/Kernel.php
dms/phpunit-arraysubset-asserts
supports usage of assertArraySubset(), that is deprecated and will be removed in PHPUnit 9. More info hereIlluminate\Http\Resources\Json\JsonResource
instead ofIlluminate\Http\Resources\Json\Resource
Illuminate\Http\Resources\Json\ResourceCollection
instead ofIlluminate\Http\Resources\Json\Resource
"sebastianfeldmann/captainhook"
by"captainhook/captainhook"
tests/CaptainHook/PHPCS.php
andcaptainhook.json
to be compatible with new captainhook versionbin/captainhook install
(Dotenv::create(...))->load();
byin the files:
app/PlatformVerifier/Env.php
"phpunit/dbunit": "~4.0.0"
depedency there is no compatible version with"phpunit/phpunit": "^8.5"
. More ondbunit
deprecation can be found here and here.dbunit
that can be used to seed data in behat testsBenefits
7.0 to 8.0
germanazo/laravel-ckan-api
withushahidi/laravel-ckan-api
ushahidi/laravel-ckan-api
package is a fork ofgermanazo/laravel-ckan-api
with some fixes and improvements./bin/phpunit --migrate-configuration
to migrate your configuration to the new format.Ping @ushahidi/platform