Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Minds Backend - Engine
Minds Backend - Engine
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 235
    • Issues 235
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 33
    • Merge Requests 33
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Packages
    • Packages
    • List
    • Container Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds Backend - EngineMinds Backend - Engine
  • Merge Requests
  • !334

Merged
Opened 2 weeks ago by Guy Thouret@gthouret
  • Report abuse
Report abuse

Framework Performance Optimisations

Optimised autoloader and framework setup Fixes #845 (closed)

Request to merge feat/845-performance into master
  • Email patches
  • Plain diff
Pipeline #86971061 passed for 6c6da726 on feat/845-performance
          Merge request approved. Approved by
          Mark Harding
          Mark Harding
          Ben Hayward
          Ben Hayward
          Martin Santangelo
          Martin Santangelo
          Rami Albatal
          Rami Albatal
          Marcelo Rivera
          Marcelo Rivera
          Emiliano Balbuena
          Emiliano Balbuena

          Merged by Mark Harding 13 minutes ago

          The changes were merged into master with 8b7fa6db

          The source branch has been deleted

          Closed #845 (closed)

          Pipeline #86975400 waiting for manual action for 8b7fa6db on master
                        • Discussion 7
                        • Commits 7
                        • Pipelines 3
                        • Changes 24
                        1/2 threads resolved
                        • Loading...
                        • Guy Thouret @gthouret added MR::Awaiting Review Product::Platform Sprint::09/11 - Nuanced Numbat Squad::Blue Type::Feature scoped labels 2 weeks ago

                          added MR::Awaiting Review Product::Platform Sprint::09/11 - Nuanced Numbat Squad::Blue Type::Feature scoped labels

                        • Guy Thouret
                          Guy Thouret @gthouret · 2 weeks ago
                          Developer

                          Devtools output of request latencies for the same page - right hand trace is optimised setup.

                          Screenshot_2019-09-19_at_01.16.27

                        • Mark Harding
                          Mark Harding @markeharding started a thread on the diff 3 days ago
                          Last updated by Guy Thouret 2 days ago
                          Core/Blogs/Events.php
                          8 8
                          9 9 class Events
                          10 10 {
                          11 /** @var Legacy\Entity */
                          12 protected $legacyEntity;
                          13
                          14 /** @var Manager */
                          15 protected $manager;
                          16
                          17 11 /** @var EventsDispatcher */
                          18 12 protected $eventsDispatcher;
                          19 13
                          20 public function __construct($legacyEntity = null, $manager = null, $eventsDispatcher = null)
                          14 public function __construct($eventsDispatcher = null)
                          21 15 {
                          22 $this->legacyEntity = $legacyEntity ?: new Legacy\Entity();
                          • Mark Harding
                            Mark Harding @markeharding · 3 days ago
                            Owner

                            are we not now losing the ability to spec test these events by making this change?

                          • Guy Thouret
                            Guy Thouret @gthouret · 2 days ago
                            Developer

                            In this case you would lose the ability to mock Manager and Legacy\Entity via the constructor, IIRC there isn't a test covering this plus the event handler callback should always be minimal and immediately call e.g. a manager method that does have coverage.

                            It's a minor inconvenience vs triggering a cascading chain of object instantiations that have nothing to do with the functionality being executed.

                            Tbh there is always going to be a way around it to test, like a couple of possibilities could be a method that can inject the mocks or refactor to have them accessed by DI and bind them to the DI in the spec test before calling the method under test.

                          • Please register or sign in to reply
                        • Mark Harding
                          Mark Harding @markeharding · 3 days ago
                          Owner

                          is composer.phar supposed to be committed?

                          Edited by Mark Harding 3 days ago
                        • Mark Harding @markeharding added MR::Requires Changes scoped label and automatically removed MR::Awaiting Review label 3 days ago

                          added MR::Requires Changes scoped label and automatically removed MR::Awaiting Review label

                          • Guy Thouret
                            Guy Thouret @gthouret · 2 days ago
                            Developer
                            Resolved by Guy Thouret 2 days ago

                            It's not normal practice to redistribute 3rd party tools within your own project as they won't get kept up to date.

                            composer.phar was added to the repo a year ago in 509c804f

                          • Mark Harding
                            Mark Harding
                            Guy Thouret
                            Guy Thouret
                            Last reply by Guy Thouret 2 days ago
                        • Guy Thouret @gthouret added 1 commit 2 days ago

                          added 1 commit

                          • db5c21b3 - Delete composer.phar from repo

                          Compare with previous version

                        • Mark Harding @markeharding added 43 commits 28 minutes ago

                          added 43 commits

                          • db5c21b3...15e1160b - 42 commits from branch master
                          • 6c6da726 - Merge branch 'master' of gitlab.com:minds/engine into feat/845-performance

                          Compare with previous version

                        • Mark Harding @markeharding approved this merge request 13 minutes ago

                          approved this merge request

                        • Mark Harding @markeharding merged 13 minutes ago

                          merged

                        • Mark Harding @markeharding mentioned in commit 8b7fa6db 13 minutes ago

                          mentioned in commit 8b7fa6db

                        • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
                        Please register or sign in to reply
                        0 Assignees
                        None
                        Assign to
                        None
                        Milestone
                        None
                        Assign milestone
                        None
                        Time tracking
                        No estimate or time spent
                        5
                        Labels
                        MR::Requires Changes Product::Platform Sprint::09/11 - Nuanced Numbat Squad::Blue Type::Feature
                        Assign labels
                        • View project labels
                        Lock merge request
                        Unlocked
                        8
                        8 participants
                        user avatar
                        Ben Hayward
                        user avatar
                        Martin Santangelo
                        user avatar
                        Rami Albatal
                        user avatar
                        Marcelo Rivera
                        user avatar
                        Emiliano Balbuena
                        user avatar
                        Brian Hatchet
                        user avatar
                        Mark Harding
                        Reference: minds/engine!334

                        Revert this merge request

                        This will create a new commit in order to revert the existing changes.

                        Switch branch
                        Cancel
                        A new branch will be created in your fork and a new merge request will be started.

                        Cherry-pick this merge request

                        Switch branch
                        Cancel
                        A new branch will be created in your fork and a new merge request will be started.