Modernize Router (&75)
Testing
- Basically the whole site should be functional. Don't forget to test uploads, avatar changes, deleting stuff, etc. Network activity on Dev Tools should behave as usual. Don't solely focus on AJAX (XHR) requests, /fs and the initial HTML document go thru it.
How do I know if I'm over the new router?
Check Response Headers
in your Dev Tools. All the non-static requests should have a X-Route-Resolver: <value>
header set. Also, window.Minds.features["psr7-router"]
should be true
.
Possible values are:
-
route-resolver
: New Module-based Router. No endpoints are using this, yet. -
pre-psr7
: JSON API requests handled by old Router. -
pre-psr7-static
: HTML requests handled by old Router. Right now, the initial HTML request is the only one.
Issues
- Closes #1189 (closed)
- Closes #1177 (closed)
- Closes #1143 (closed)
- Closes #882 (closed)
added scoped labels
changed title from WIP: (feat): Modernize Router to WIP: (feat): Modernize Router{+ ()+}
- Resolved by Emiliano Balbuena
resolved all threads
added 9 commits
-
3fc05260...26e56438 - 7 commits from branch
master
- fe291dec - Merge remote-tracking branch 'origin/master' into epic/modern-router
- 1a8be8b6 - (wip): Module Router
-
3fc05260...26e56438 - 7 commits from branch
added 69 commits
-
1a8be8b6...fb4bc4e6 - 68 commits from branch
master
- e7c5938f - Merge remote-tracking branch 'origin/master' into epic/modern-router
-
1a8be8b6...fb4bc4e6 - 68 commits from branch
added 1 commit
- 98c08123 - (feat): Module routes matcher & dispatcher; exception handling
added 1 commit
- 4530948d - (fix): Serve static content when accepting text/html
added 1 commit
- ea3f73c6 - (refactor): Streamline middleware and request handler
added 1 commit
- 2e8c8fcd - (chore): Remove unwanted dep from composer.lock
added 1 commit
- f697713e - (fix): PHP strict errors; (chore): Feeds\Activity routes
added 8 commits
-
f697713e...c3a7551e - 7 commits from branch
master
- bc0b7654 - Merge remote-tracking branch 'origin/master' into epic/modern-router
-
f697713e...c3a7551e - 7 commits from branch
added 18 commits
-
bc0b7654...af77626a - 17 commits from branch
master
- 2d8854b8 - Merge remote-tracking branch 'origin/master' into epic/modern-router
-
bc0b7654...af77626a - 17 commits from branch
- Resolved by Emiliano Balbuena
- Resolved by Emiliano Balbuena
- Resolved by Emiliano Balbuena
- Resolved by Emiliano Balbuena
- Resolved by Emiliano Balbuena
- Owner
This is looking great. Can we get some spec tests in here too?
added 56 commits
-
84a8118b...ab9311d8 - 55 commits from branch
master
- 9b0a7250 - Merge remote-tracking branch 'origin/master' into epic/modern-router
-
84a8118b...ab9311d8 - 55 commits from branch
added 13 commits
-
9b0a7250...1359daf0 - 7 commits from branch
master
- 9497ba96 - (chore): Inject dispatcher on Core\Router
- c6513ab8 - Merge remote-tracking branch 'origin/master' into epic/modern-router
- d30449c1 - (test): Add spec tests
- ef4a312f - (test): Dispatcher and Registry spec tests
- a279e21a - (feat): Feature flag for Router
- 6d0503e5 - (test): RegistryEntry spec
Toggle commit list-
9b0a7250...1359daf0 - 7 commits from branch
changed the description
added 12 commits
-
6c9a3854...8bb0177e - 11 commits from branch
master
- 703cdbb6 - Merge remote-tracking branch 'origin/master' into epic/modern-router
-
6c9a3854...8bb0177e - 11 commits from branch
resolved all threads
added 7 commits
-
05151161...6a88c337 - 6 commits from branch
master
- c6bcee07 - Merge remote-tracking branch 'origin/master' into epic/modern-router
-
05151161...6a88c337 - 6 commits from branch
unmarked as a Work In Progress
changed title from Modernize Router () to Modernize Router ()
changed the description
added scoped label and removed label
changed milestone to %PSR7 Router
- Developer
@edgebal The image upload does not appear to be persisting on this review site.
When I upload an image via newsfeed, the image uploads and I get a green bar. It appears on the feed. However, when I check my images / feed / channel, it disappears.
The router feature flag is set and the headers are returning the resolved route.
See the attached video:
- Developer
All sandboxes have faulty uploads from time to time. Cause it's not known and needs investigation, but it's not related to this MR per-se.
If possible, @brianhatchet, let me know if uploads continue failing.
assigned to @xander-miller
- Developer
@xander-miller This change warrants a full run on the web to make sure all the routes work.
added scoped label and automatically removed label