Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Upgrading Laravel Framework #1071

Merged
merged 50 commits into from
Jul 29, 2020
Merged

Conversation

weerd
Copy link
Contributor

@weerd weerd commented Jul 20, 2020

What's this PR do?

This pull request upgrades Rogue from Laravel 5.5 to Laravel 5.8!

How should this be reviewed?

👀

I didn't separate these commit by commit but I did try to leave useful notes as comments for some interesting tidbits or changes I got stuck on or where a bit more involved!

Any background context you want to provide?

🌵

Relevant tickets

References Pivotal #172383643.

Checklist

  • This PR has been added to the relevant Pivotal card.
  • Documentation added for new features/changed endpoints.
  • Added appropriate feature/unit tests.

@weerd
Copy link
Contributor Author

weerd commented Jul 20, 2020

Noting here that after the upgrades and running tests I was running into an odd error with tests that use the withAdminAccessToken() method.

Instead of the expected series of method calls, after the 5.6 updates, there is a resulting call to the __isset() magic method in the HasAttributes trait utilized by the RemoteUser class in our Gateway package.

The only thing I could find related in Laravel 5.6 changes was this merged pull request that adds an __isset() to the Optional class (we do use this class within Rogue and within the method calls related to withAdminAccessToken()).


Update: This issue was resolved by @DFurnes via an update to Gateway.

@weerd weerd mentioned this pull request Jul 20, 2020
3 tasks
app/Policies/PostPolicy.php Outdated Show resolved Hide resolved
@weerd
Copy link
Contributor Author

weerd commented Jul 28, 2020

Just FYI, this test is super finicky from recent experience and planning on rewriting it once I'm done with upgrades.

image

@weerd weerd marked this pull request as ready for review July 28, 2020 20:31
@weerd weerd requested a review from a team as a code owner July 28, 2020 20:31
@weerd weerd requested review from Dinnall and DFurnes and removed request for a team and Dinnall July 28, 2020 20:31
app.json Outdated Show resolved Hide resolved
Comment on lines +60 to +62
// 'options' => extension_loaded('pdo_mysql') ? array_filter([
// PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
// ]) : [],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd love to do a bit more digging on this... betting it makes sense to keep, but curious what it's for!

The commit where it was added is not very helpful...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya, I think I had checked the commit and didn't see much info there, but didn't get a chance to dig further 🤷‍♂️

Copy link
Contributor

@DFurnes DFurnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wooooo! 🎉 Left a few comments, but looks fantastic all-in-all!!! Great work on all this!

Copy link
Contributor

@DFurnes DFurnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect!!! 🎉

@weerd weerd merged commit bd96b84 into all-laravel-upgrades Jul 29, 2020
@weerd weerd deleted the upgrading-laravel-framework branch July 29, 2020 20:31
weerd added a commit that referenced this pull request Aug 3, 2020
* Updating composer packages.

* Updating dependencies.

* Removing unused files and updating index.php

* Updating .htaccess.

* Removing bootstrap/autoload call.

* Updating TrustedProxy settings.

* Removing mentions of Dusk in project since no longer used.

* Upadating Hashing config.

* Updating Logging.

* Updating logger method name.

* Bringing rest of files up to date and in sync with 5.6 framework files.

* Reverting web routes file I was using for debugging.

* Figuring out issues with running tests.

* Updating composer.

* StyleCI fix.

* Updating dependencies for 5.7.

* Updating assets.

* Updating authorization.

* Updating cache.

* Updating tests.

* Removing overridden mock() method since the signature changed and Laravel provides same method.

* Removing unused imported class.

* Removing CustomGate now that framework supports Guest User Gates.

* Fixing up broken tests.

* Composer lock update.

* Wrapping up miscellaneous updates from 5.6 to 5.7.

* Some miscellaneous updates from 5.7 to 5.8.

* Updating dependencies and fixing API routes.

* Updating testing.

* Updating notifications.

* Updating support.

* Updating support with env() changes.

* Updating env example vars.

* Updates to env vars used and simplifying redis env settings.

* Fixing up Tag tests and errors with notifications.

* Updating cache config.

* Removing deleted_at from  array since automatically converted after upgrades.

* Changing tag so it does not trigger notification, if not point of test.

* Cleanup.

* Fixing StyleCI issue.

* StyleCI fixes.

* StyleCI fixes.

* Updating Trusted Proxies based on Heroku docs.

* Type-hinting the Authenticateable class works.

* Updating redis options.

* Updating filesystems config and reivew app config.

* Adding note regarding a potential future update.

* Restoring the Good Submission tag and setting empty string var for slack webhook in PHPUnit settings.

* Restoring old approach now that tests do not trigger notifications.

* Updaing AWS_* env variables.
@weerd weerd mentioned this pull request Aug 3, 2020
3 tasks
weerd added a commit that referenced this pull request Aug 3, 2020
* Updating composer packages.

* Updating dependencies.

* Removing unused files and updating index.php

* Updating .htaccess.

* Removing bootstrap/autoload call.

* Updating TrustedProxy settings.

* Removing mentions of Dusk in project since no longer used.

* Upadating Hashing config.

* Updating Logging.

* Updating logger method name.

* Bringing rest of files up to date and in sync with 5.6 framework files.

* Reverting web routes file I was using for debugging.

* Figuring out issues with running tests.

* Updating composer.

* StyleCI fix.

* Updating dependencies for 5.7.

* Updating assets.

* Updating authorization.

* Updating cache.

* Updating tests.

* Removing overridden mock() method since the signature changed and Laravel provides same method.

* Removing unused imported class.

* Removing CustomGate now that framework supports Guest User Gates.

* Fixing up broken tests.

* Composer lock update.

* Wrapping up miscellaneous updates from 5.6 to 5.7.

* Some miscellaneous updates from 5.7 to 5.8.

* Updating dependencies and fixing API routes.

* Updating testing.

* Updating notifications.

* Updating support.

* Updating support with env() changes.

* Updating env example vars.

* Updates to env vars used and simplifying redis env settings.

* Fixing up Tag tests and errors with notifications.

* Updating cache config.

* Removing deleted_at from  array since automatically converted after upgrades.

* Changing tag so it does not trigger notification, if not point of test.

* Cleanup.

* Fixing StyleCI issue.

* StyleCI fixes.

* StyleCI fixes.

* Updating Trusted Proxies based on Heroku docs.

* Type-hinting the Authenticateable class works.

* Updating redis options.

* Updating filesystems config and reivew app config.

* Adding note regarding a potential future update.

* Restoring the Good Submission tag and setting empty string var for slack webhook in PHPUnit settings.

* Restoring old approach now that tests do not trigger notifications.

* Updaing AWS_* env variables.
weerd added a commit that referenced this pull request Aug 5, 2020
* Removing CustomGate now that framework supports Guest User Gates.

* Updating support.

* Rebase fixes.

* Rebase fixes.

* Upgrading Laravel Framework (#1071)

* Updating composer packages.

* Updating dependencies.

* Removing unused files and updating index.php

* Updating .htaccess.

* Removing bootstrap/autoload call.

* Updating TrustedProxy settings.

* Removing mentions of Dusk in project since no longer used.

* Upadating Hashing config.

* Updating Logging.

* Updating logger method name.

* Bringing rest of files up to date and in sync with 5.6 framework files.

* Reverting web routes file I was using for debugging.

* Figuring out issues with running tests.

* Updating composer.

* StyleCI fix.

* Updating dependencies for 5.7.

* Updating assets.

* Updating authorization.

* Updating cache.

* Updating tests.

* Removing overridden mock() method since the signature changed and Laravel provides same method.

* Removing unused imported class.

* Removing CustomGate now that framework supports Guest User Gates.

* Fixing up broken tests.

* Composer lock update.

* Wrapping up miscellaneous updates from 5.6 to 5.7.

* Some miscellaneous updates from 5.7 to 5.8.

* Updating dependencies and fixing API routes.

* Updating testing.

* Updating notifications.

* Updating support.

* Updating support with env() changes.

* Updating env example vars.

* Updates to env vars used and simplifying redis env settings.

* Fixing up Tag tests and errors with notifications.

* Updating cache config.

* Removing deleted_at from  array since automatically converted after upgrades.

* Changing tag so it does not trigger notification, if not point of test.

* Cleanup.

* Fixing StyleCI issue.

* StyleCI fixes.

* StyleCI fixes.

* Updating Trusted Proxies based on Heroku docs.

* Type-hinting the Authenticateable class works.

* Updating redis options.

* Updating filesystems config and reivew app config.

* Adding note regarding a potential future update.

* Restoring the Good Submission tag and setting empty string var for slack webhook in PHPUnit settings.

* Restoring old approach now that tests do not trigger notifications.

* Updaing AWS_* env variables.

* Miscellaneous updates.

* Updating miscellaneous.

* Composer dependency updates.

* Updating configuration.

* Updating PHPUnit and fixing test with previously deprecated method.

* Updating composer dependencies.

* Reordering.

* Cleanup.

* Prefixing the SQS Env vars with AWS_ for consistency.

* Post rebase cleanup

* Fixing straggling merge conflicts.

* Cleanup.

* Updating url and endpoint settings.
weerd added a commit that referenced this pull request Aug 5, 2020
* Updating composer packages.

* Updating dependencies.

* Removing unused files and updating index.php

* Updating .htaccess.

* Removing bootstrap/autoload call.

* Updating TrustedProxy settings.

* Removing mentions of Dusk in project since no longer used.

* Upadating Hashing config.

* Updating Logging.

* Updating logger method name.

* Bringing rest of files up to date and in sync with 5.6 framework files.

* Reverting web routes file I was using for debugging.

* Figuring out issues with running tests.

* Updating composer.

* StyleCI fix.

* Updating dependencies for 5.7.

* Updating assets.

* Updating authorization.

* Updating cache.

* Updating tests.

* Removing overridden mock() method since the signature changed and Laravel provides same method.

* Removing unused imported class.

* Removing CustomGate now that framework supports Guest User Gates.

* Fixing up broken tests.

* Composer lock update.

* Wrapping up miscellaneous updates from 5.6 to 5.7.

* Some miscellaneous updates from 5.7 to 5.8.

* Updating dependencies and fixing API routes.

* Updating testing.

* Updating notifications.

* Updating support.

* Updating support with env() changes.

* Updating env example vars.

* Updates to env vars used and simplifying redis env settings.

* Fixing up Tag tests and errors with notifications.

* Updating cache config.

* Removing deleted_at from  array since automatically converted after upgrades.

* Changing tag so it does not trigger notification, if not point of test.

* Cleanup.

* StyleCI fixes.

* StyleCI fixes.

* Updating Trusted Proxies based on Heroku docs.

* Type-hinting the Authenticateable class works.

* Updating redis options.

* Updating filesystems config and reivew app config.

* Adding note regarding a potential future update.

* Restoring the Good Submission tag and setting empty string var for slack webhook in PHPUnit settings.

* Restoring old approach now that tests do not trigger notifications.

* Updaing AWS_* env variables.

* Updating editorconfig file.

* Upgrading Laravel Framework (#1071)

* Updating composer packages.

* Updating dependencies.

* Removing unused files and updating index.php

* Updating .htaccess.

* Removing bootstrap/autoload call.

* Updating TrustedProxy settings.

* Removing mentions of Dusk in project since no longer used.

* Upadating Hashing config.

* Updating Logging.

* Updating logger method name.

* Bringing rest of files up to date and in sync with 5.6 framework files.

* Reverting web routes file I was using for debugging.

* Figuring out issues with running tests.

* Updating composer.

* StyleCI fix.

* Updating dependencies for 5.7.

* Updating assets.

* Updating authorization.

* Updating cache.

* Updating tests.

* Removing overridden mock() method since the signature changed and Laravel provides same method.

* Removing unused imported class.

* Removing CustomGate now that framework supports Guest User Gates.

* Fixing up broken tests.

* Composer lock update.

* Wrapping up miscellaneous updates from 5.6 to 5.7.

* Some miscellaneous updates from 5.7 to 5.8.

* Updating dependencies and fixing API routes.

* Updating testing.

* Updating notifications.

* Updating support.

* Updating support with env() changes.

* Updating env example vars.

* Updates to env vars used and simplifying redis env settings.

* Fixing up Tag tests and errors with notifications.

* Updating cache config.

* Removing deleted_at from  array since automatically converted after upgrades.

* Changing tag so it does not trigger notification, if not point of test.

* Cleanup.

* Fixing StyleCI issue.

* StyleCI fixes.

* StyleCI fixes.

* Updating Trusted Proxies based on Heroku docs.

* Type-hinting the Authenticateable class works.

* Updating redis options.

* Updating filesystems config and reivew app config.

* Adding note regarding a potential future update.

* Restoring the Good Submission tag and setting empty string var for slack webhook in PHPUnit settings.

* Restoring old approach now that tests do not trigger notifications.

* Updaing AWS_* env variables.

* Restoring some items post rebase.

* StyleCI fix.

* Upgrading Laravel framework from 5.8 to 6.0 (#1081)

* Removing CustomGate now that framework supports Guest User Gates.

* Updating support.

* Rebase fixes.

* Rebase fixes.

* Upgrading Laravel Framework (#1071)

* Updating composer packages.

* Updating dependencies.

* Removing unused files and updating index.php

* Updating .htaccess.

* Removing bootstrap/autoload call.

* Updating TrustedProxy settings.

* Removing mentions of Dusk in project since no longer used.

* Upadating Hashing config.

* Updating Logging.

* Updating logger method name.

* Bringing rest of files up to date and in sync with 5.6 framework files.

* Reverting web routes file I was using for debugging.

* Figuring out issues with running tests.

* Updating composer.

* StyleCI fix.

* Updating dependencies for 5.7.

* Updating assets.

* Updating authorization.

* Updating cache.

* Updating tests.

* Removing overridden mock() method since the signature changed and Laravel provides same method.

* Removing unused imported class.

* Removing CustomGate now that framework supports Guest User Gates.

* Fixing up broken tests.

* Composer lock update.

* Wrapping up miscellaneous updates from 5.6 to 5.7.

* Some miscellaneous updates from 5.7 to 5.8.

* Updating dependencies and fixing API routes.

* Updating testing.

* Updating notifications.

* Updating support.

* Updating support with env() changes.

* Updating env example vars.

* Updates to env vars used and simplifying redis env settings.

* Fixing up Tag tests and errors with notifications.

* Updating cache config.

* Removing deleted_at from  array since automatically converted after upgrades.

* Changing tag so it does not trigger notification, if not point of test.

* Cleanup.

* Fixing StyleCI issue.

* StyleCI fixes.

* StyleCI fixes.

* Updating Trusted Proxies based on Heroku docs.

* Type-hinting the Authenticateable class works.

* Updating redis options.

* Updating filesystems config and reivew app config.

* Adding note regarding a potential future update.

* Restoring the Good Submission tag and setting empty string var for slack webhook in PHPUnit settings.

* Restoring old approach now that tests do not trigger notifications.

* Updaing AWS_* env variables.

* Miscellaneous updates.

* Updating miscellaneous.

* Composer dependency updates.

* Updating configuration.

* Updating PHPUnit and fixing test with previously deprecated method.

* Updating composer dependencies.

* Reordering.

* Cleanup.

* Prefixing the SQS Env vars with AWS_ for consistency.

* Post rebase cleanup

* Fixing straggling merge conflicts.

* Cleanup.

* Updating url and endpoint settings.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants