Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 578
    • Issues 578
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 93
    • Merge requests 93
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Pleroma
  • pleromapleroma
  • Merge requests
  • !3571

Open
Created Dec 19, 2021 by Alex Gleason@alexgleasonContributor
  • Report abuse
Report abuse

Combine Activities and Objects into one table

  • Overview 83
  • Commits 54
  • Pipelines 46
  • Changes 34

This is the general theory:

  1. Add missing fields and indexes to objects table
  2. INSERT INTO objects (SELECT * FROM activities);
  3. Edit activity.ex and change schema "activities" to schema "objects"
  4. ???

This MR includes the changes from !3570 (closed).

The server runs. Everything seems to be working. Some lazy tests fail because they are checking the results with Repo.one(), and now there are multiple things in the same table.

There are a few more small things to take care of.

By keeping the Activity module intact, it was not as hard as it seemed. Parts of that code could be rewritten in later MRs.

Edited Dec 29, 2021 by Alex Gleason
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: operation-warpsneed