Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Backend - Engine
Minds Backend - Engine
  • Project overview
  • Repository
  • Issues 286
  • Merge Requests 38
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Snippets
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds Backend - EngineMinds Backend - Engine
  • Merge Requests
  • !342

Open
Opened 2 months ago by Emiliano Balbuena@edgebal
Report abuse

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)
Edited 3 days ago by Emiliano Balbuena
Request to merge epic/modern-router into master
The source branch is 2 commits behind the target branch
Open in Web IDE
Pipeline #101273403 passed for c6bcee07 on epic/modern-router
          Requires 2 more approvals from Devs and Deployers.
          Rami Albatal
          Rami Albatal
          Marcelo Rivera
          Marcelo Rivera
          Mark Harding
          Mark Harding
          Martin Santangelo
          Martin Santangelo
          Brian Hatchet
          Brian Hatchet
          Ready to be merged automatically. Ask someone with write access to this repository to merge this request

          Closes #1143 (closed), #1177 (closed), #1189 (closed), and #882 (closed)

          Deletes source branch

          • Discussion 11
          • Commits 31
          • Pipelines 25
          • Changes 60
          6/8 threads resolved
          • Emiliano Balbuena @edgebal added MR::Requires Changes Sprint::09/25 - Oldfashioned Owl scoped labels 2 months ago

            added scoped labels

          • Emiliano Balbuena @edgebal changed title from WIP: (feat): Modernize Router to WIP: (feat): Modernize Router{+ (&75)+} 2 months ago

            changed title from WIP: (feat): Modernize Router to WIP: (feat): Modernize Router{+ ()+}

          • Mark Harding
            Mark Harding @markeharding started a thread on an old version of the diff 2 months ago
            Resolved by Emiliano Balbuena 2 months ago
          • Emiliano Balbuena @edgebal resolved all threads 2 months ago

            resolved all threads

          • Emiliano Balbuena @edgebal added 9 commits 2 months ago

            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

            Compare with previous version

          • Emiliano Balbuena @edgebal added 69 commits 1 month ago

            added 69 commits

            • 1a8be8b6...fb4bc4e6 - 68 commits from branch master
            • e7c5938f - Merge remote-tracking branch 'origin/master' into epic/modern-router

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 month ago

            added 1 commit

            • 01eaaffb - (wip): Routes matcher and dispatcher

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 month ago

            added 1 commit

            • 98c08123 - (feat): Module routes matcher & dispatcher; exception handling

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 month ago

            added 1 commit

            • 4530948d - (fix): Serve static content when accepting text/html

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 month ago

            added 1 commit

            • ea3f73c6 - (refactor): Streamline middleware and request handler

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 month ago

            added 1 commit

            • 4129364c - (chore): Strict mode and lint

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 month ago

            added 1 commit

            • c5e1a351 - (wip): Admin and LoggedIn middleware

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 month ago

            added 1 commit

            • 2e8c8fcd - (chore): Remove unwanted dep from composer.lock

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 month ago

            added 1 commit

            • f697713e - (fix): PHP strict errors; (chore): Feeds\Activity routes

            Compare with previous version

          • Emiliano Balbuena @edgebal added 8 commits 1 month ago

            added 8 commits

            • f697713e...c3a7551e - 7 commits from branch master
            • bc0b7654 - Merge remote-tracking branch 'origin/master' into epic/modern-router

            Compare with previous version

          • Emiliano Balbuena @edgebal added 18 commits 1 month ago

            added 18 commits

            • bc0b7654...af77626a - 17 commits from branch master
            • 2d8854b8 - Merge remote-tracking branch 'origin/master' into epic/modern-router

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 month ago

            added 1 commit

            • 13c0d96f - (chore): Short-circuit pre-PSR7 router

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 month ago

            added 1 commit

            • f55c8ed2 - (feat): Sessions and XSRF

            Compare with previous version

          • Mark Harding
            Mark Harding @markeharding started a thread on an old version of the diff 4 weeks ago
            Resolved by Emiliano Balbuena 4 days ago
          • Mark Harding
            Mark Harding @markeharding started a thread on an old version of the diff 4 weeks ago
            Resolved by Emiliano Balbuena 2 weeks ago
          • Mark Harding
            Mark Harding @markeharding started a thread on an old version of the diff 4 weeks ago
            Resolved by Emiliano Balbuena 1 week ago
          • Mark Harding
            Mark Harding @markeharding started a thread on the diff 4 weeks ago
            Resolved by Emiliano Balbuena 1 week ago
          • Mark Harding
            Mark Harding @markeharding started a thread on an old version of the diff 4 weeks ago
            Resolved by Emiliano Balbuena 2 weeks ago
          • Mark Harding
            Mark Harding @markeharding · 4 weeks ago
            Owner

            This is looking great. Can we get some spec tests in here too?

          • Emiliano Balbuena @edgebal added 1 commit 2 weeks ago

            added 1 commit

            • 84a8118b - (chore): Naming

            Compare with previous version

          • Emiliano Balbuena @edgebal added 56 commits 1 week ago

            added 56 commits

            • 84a8118b...ab9311d8 - 55 commits from branch master
            • 9b0a7250 - Merge remote-tracking branch 'origin/master' into epic/modern-router

            Compare with previous version

          • Emiliano Balbuena @edgebal added 13 commits 1 week ago

            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

            Compare with previous version

            Toggle commit list
          • Emiliano Balbuena @edgebal added 1 commit 1 week ago

            added 1 commit

            • ee7b48e1 - (chore): PHPDoc for Di\Ref

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 1 week ago

            added 1 commit

            • 6c9a3854 - (feat): PSR-7 Router exceptions to Sentry

            Compare with previous version

          • Emiliano Balbuena @edgebal changed the description 1 week ago

            changed the description

          • Emiliano Balbuena @edgebal added 12 commits 4 days ago

            added 12 commits

            • 6c9a3854...8bb0177e - 11 commits from branch master
            • 703cdbb6 - Merge remote-tracking branch 'origin/master' into epic/modern-router

            Compare with previous version

          • Emiliano Balbuena @edgebal resolved all threads 4 days ago

            resolved all threads

          • Emiliano Balbuena @edgebal added 1 commit 4 days ago

            added 1 commit

            • c5c09ac1 - (wip)(test): Router spec tests

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 4 days ago

            added 1 commit

            • e8bc4ce1 - (wip)(test): Router spec tests (ii)

            Compare with previous version

          • Emiliano Balbuena @edgebal added 1 commit 3 days ago

            added 1 commit

            • 05151161 - (test): Router spec tests

            Compare with previous version

          • Emiliano Balbuena @edgebal added 7 commits 3 days ago

            added 7 commits

            • 05151161...6a88c337 - 6 commits from branch master
            • c6bcee07 - Merge remote-tracking branch 'origin/master' into epic/modern-router

            Compare with previous version

          • Emiliano Balbuena @edgebal unmarked as a Work In Progress 3 days ago

            unmarked as a Work In Progress

          • Emiliano Balbuena @edgebal changed title from WIP: (feat): Modernize Router (&75) to Modernize Router (&75) 3 days ago

            changed title from Modernize Router () to Modernize Router ()

          • Emiliano Balbuena @edgebal changed the description 3 days ago

            changed the description

          • Emiliano Balbuena @edgebal added Squad::Yellow scoped label and removed Sprint::09/25 - Oldfashioned Owl label 3 days ago

            added scoped label and removed label

          • Emiliano Balbuena @edgebal changed milestone to %PSR7 Router 3 days ago

            changed milestone to %PSR7 Router

            • Brian Hatchet
              Brian Hatchet :speech_balloon: @brianhatchet · 1 day ago
              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:

              https://www.screencast.com/t/Me1OTfJYJ

            • Collapse replies
            • Emiliano Balbuena
              Emiliano Balbuena @edgebal · 42 minutes ago
              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.

            • Please register or sign in to reply
          • Brian Hatchet :speech_balloon: @brianhatchet assigned to @xander-miller 1 day ago

            assigned to @xander-miller

            • Brian Hatchet
              Brian Hatchet :speech_balloon: @brianhatchet · 1 day ago
              Developer

              @xander-miller This change warrants a full run on the web to make sure all the routes work.

            • Please register or sign in to reply
          • Emiliano Balbuena @edgebal added MR::Awaiting Review scoped label and automatically removed MR::Requires Changes label 46 minutes ago

            added scoped label and automatically removed label

          Please register or sign in to reply
          2 Assignees
          Emiliano Balbuena's avatar
          Xander Miller's avatar
          PSR7 Router
          Milestone
          PSR7 Router
          Time tracking
          No estimate or time spent
          2
          Labels
          MR::Awaiting Review Squad::Yellow
          Lock merge request
          Unlocked
          8
          8 participants
          user avatar
          Rami Albatal
          user avatar
          Marcelo Rivera
          user avatar
          Mark Harding
          user avatar
          Martin Santangelo
          user avatar
          Brian Hatchet
          user avatar
          Ben Hayward
          user avatar
          Emiliano Balbuena
          Reference: minds/engine!342