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 225
    • Issues 225
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 34
    • Merge Requests 34
  • 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
  • !353

Open
Opened 23 minutes ago by Mark Harding@markeharding
  • Report abuse
Report abuse

Entity Centric Manager

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b "feat/entity-centric-checkin" "origin/feat/entity-centric-checkin"

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout "origin/master"
git merge --no-ff "feat/entity-centric-checkin"

Step 4. Push the result of the merge to GitLab

git push origin "master"

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

Request to merge feat/entity-centric-checkin into master
Open in Web IDE
  • Email patches
  • Plain diff
Pipeline #87562453 passed for 5c32a323 on feat/entity-centric-checkin
          Requires approval from Guy.
          Marcelo Rivera
          Marcelo Rivera
          Emiliano Balbuena
          Emiliano Balbuena
          Rami Albatal
          Rami Albatal
          Olivia Madrid
          Olivia Madrid
          Martin Santangelo
          Martin Santangelo
          Ready to be merged automatically. Ask someone with write access to this repository to merge this request

          Deletes source branch

          • Discussion 4
          • Commits 1
          • Pipelines 1
          • Changes 7
          0/4 threads resolved
          • Loading...
          • Mark Harding @markeharding changed milestone to %Analytics #mvp 23 minutes ago

            changed milestone to %Analytics #mvp

          • Mark Harding @markeharding added MR::Awaiting Review scoped label 23 minutes ago

            added MR::Awaiting Review scoped label

          • Mark Harding @markeharding assigned to @gthouret 16 minutes ago

            assigned to @gthouret

          • Guy Thouret
            Guy Thouret @gthouret started a thread on the diff 3 minutes ago
            Core/Analytics/EntityCentric/Repository.php
            1 <?php
            2 /**
            3 * EntityCentric Repository
            4 * @author Mark
            5 */
            6
            7 namespace Minds\Core\Analytics\EntityCentric;
            8
            9 use Minds\Core\Analytics\Views\DownsampledView;
            • Guy Thouret
              Guy Thouret @gthouret · 3 minutes ago
              Developer

              Class does not exist

            • Please register or sign in to reply
          • Guy Thouret
            Guy Thouret @gthouret started a thread on the diff 3 minutes ago
            Core/Analytics/EntityCentric/Repository.php
            42
            43 return $response;
            44 }
            45
            46 /**
            47 * @param EntityCentricRecord $record
            48 * @return bool
            49 * @throws Exception
            50 */
            51 public function add(EntityCentricRecord $record)
            52 {
            53 $index = 'minds-entitycentric-' . date('m-Y', $record->getTimestamp());
            54
            55 $body = [
            56 'resolution' => $record->getResolution(),
            57 '@timestamp' => $record->getTimestamp() * 1000,
            • Guy Thouret
              Guy Thouret @gthouret · 3 minutes ago
              Developer

              getTimestamp() does not exist, get TimestampMs() does but it's not expecting ms?

            • Please register or sign in to reply
          • Guy Thouret
            Guy Thouret @gthouret started a thread on the diff 3 minutes ago
            Core/Analytics/EntityCentric/EntityCentricRecord.php
            1 <?php
            2 /**
            3 * EntityCentricRecord
            4 * @author Mark
            5 */
            6
            7 namespace Minds\Core\Analytics\EntityCentric;
            8
            9 use Minds\Traits\MagicAttributes;
            10
            11 /**
            12 * Class EntityCentricRecord
            13 * @package Minds\Core\Analytics\Views
            • Guy Thouret
              Guy Thouret @gthouret · 3 minutes ago
              Developer

              Docblock doesn't match the class name and is missing getSums/setSums

            • Please register or sign in to reply
          • Guy Thouret
            Guy Thouret @gthouret started a thread on the diff 2 minutes ago
            Controllers/Cli/EntityCentric.php
            24 {
            25 $this->out('Missing subcommand');
            26 }
            27
            28 public function sync()
            29 {
            30 error_reporting(E_ALL);
            31 ini_set('display_errors', 1);
            32
            33 $daysAgo = $this->getOpt('daysAgo') ?: 0;
            34 $from = $this->getOpt('from') ?: strtotime("midnight $daysAgo days ago");
            35 $manager = new Manager();
            36 $manager->setFrom($from);
            37
            38 $i = 0;
            39 foreach ($manager->sync() as $record) {
            • Guy Thouret
              Guy Thouret @gthouret · 2 minutes ago
              Developer

              $manager->sync() is void return where we are expecting array

            • Please register or sign in to reply
          • 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
          Assignee
          Guy Thouret's avatar
          Guy Thouret @gthouret
          Assign to
          Analytics #mvp
          Milestone
          Analytics #mvp
          Assign milestone
          None
          Time tracking
          No estimate or time spent
          1
          Labels
          MR::Awaiting Review
          Assign labels
          • View project labels
          Lock merge request
          Unlocked
          10
          10 participants
          user avatar
          Marcelo Rivera
          user avatar
          Emiliano Balbuena
          user avatar
          Rami Albatal
          user avatar
          Olivia Madrid
          user avatar
          Martin Santangelo
          user avatar
          Brian Hatchet
          user avatar
          Guy Thouret
          Reference: minds/engine!353