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 212
    • Issues 212
    • 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
  • !324

Open
Opened 5 days ago by Ben Hayward@benhayward.ben
  • Report abuse
Report abuse

[Sprint/NuancedNumbat](chore): Added in moderation and reporting schema (CQL)

Check out, review, and merge locally

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

git fetch origin
git checkout -b "chore/cql-schema-report" "origin/chore/cql-schema-report"

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 "chore/cql-schema-report"

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 chore/cql-schema-report into master
The source branch is 22 commits behind the target branch
Open in Web IDE
  • Email patches
  • Plain diff
Pipeline #81851298 passed for d0512a5b on chore/cql-schema-report
          Requires 2 more approvals from Devs and Deployers.
          Mark Harding
          Mark Harding
          Rami Albatal
          Rami Albatal
          Marcelo Rivera
          Marcelo Rivera
          Brian Hatchet
          Brian Hatchet
          Emiliano Balbuena
          Emiliano Balbuena
          There are merge conflicts. Resolve these conflicts or ask someone with write access to this repository to merge it locally

          Deletes source branch

          You can merge this merge request manually using the
          • Discussion 5
          • Commits 3
          • Pipelines 3
          • Changes 1
          0/5 threads resolved
          • Loading...
          • Ben Hayward @benhayward.ben added 1 commit 5 days ago

            added 1 commit

            • d0512a5b - accidental commit

            Compare with previous version

          • Ben Hayward @benhayward.ben added MR::Awaiting Review Squad::Yellow scoped labels 4 days ago

            added MR::Awaiting Review Squad::Yellow scoped labels

          • Mark Harding
            Mark Harding @markeharding started a thread on the diff 5 minutes ago
            Core/Provisioner/Provisioners/cassandra-provision.cql
            1538 AND gc_grace_seconds = 864000
            1539 AND max_index_interval = 2048
            1540 AND memtable_flush_period_in_ms = 0
            1541 AND min_index_interval = 128
            1542 AND read_repair_chance = 0.0
            1543 AND speculative_retry = '99PERCENTILE';
            1544
            1545 CREATE TABLE minds.moderation_summons (
            1546 report_urn text,
            1547 jury_type text,
            1548 juror_guid bigint,
            1549 expires int,
            1550 status text,
            1551 PRIMARY KEY (report_urn, jury_type, juror_guid)
            1552 ) WITH CLUSTERING ORDER BY (jury_type ASC, juror_guid ASC)
            1553 AND bloom_filter_fp_chance = 0.01
            • Mark Harding
              Mark Harding @markeharding · 5 minutes ago
              Owner

              remove all after this line

            • Please register or sign in to reply
          • Mark Harding
            Mark Harding @markeharding started a thread on the diff 5 minutes ago
            Core/Provisioner/Provisioners/cassandra-provision.cql
            1514 AND default_time_to_live = 0
            1515 AND gc_grace_seconds = 864000
            1516 AND max_index_interval = 2048
            1517 AND memtable_flush_period_in_ms = 0
            1518 AND min_index_interval = 128
            1519 AND read_repair_chance = 0.0
            1520 AND speculative_retry = '99PERCENTILE';
            1521
            1522 CREATE TABLE minds.moderation_strikes (
            1523 user_guid bigint,
            1524 reason_code tinyint,
            1525 sub_reason_code decimal,
            1526 timestamp timestamp,
            1527 report_urn text,
            1528 PRIMARY KEY (user_guid, reason_code, sub_reason_code, timestamp)
            1529 ) WITH CLUSTERING ORDER BY (reason_code ASC, sub_reason_code ASC, timestamp ASC)
            • Mark Harding
              Mark Harding @markeharding · 5 minutes ago
              Owner

              remove everything after this line

            • Please register or sign in to reply
          • Mark Harding
            Mark Harding @markeharding started a thread on the diff 5 minutes ago
            Core/Provisioner/Provisioners/cassandra-provision.cql
            1491 AND crc_check_chance = 1.0
            1492 AND dclocal_read_repair_chance = 0.1
            1493 AND default_time_to_live = 0
            1494 AND gc_grace_seconds = 864000
            1495 AND max_index_interval = 2048
            1496 AND memtable_flush_period_in_ms = 0
            1497 AND min_index_interval = 128
            1498 AND read_repair_chance = 0.0
            1499 AND speculative_retry = '99PERCENTILE';
            1500
            1501 CREATE MATERIALIZED VIEW minds.moderation_reports_by_state AS
            1502 SELECT *
            1503 FROM minds.moderation_reports
            1504 WHERE state IS NOT NULL AND reason_code IS NOT NULL AND sub_reason_code IS NOT NULL AND timestamp IS NOT NULL
            1505 PRIMARY KEY (state, timestamp, entity_urn, reason_code, sub_reason_code)
            1506 WITH CLUSTERING ORDER BY (timestamp DESC, entity_urn ASC, reason_code ASC, sub_reason_code ASC)
            • Mark Harding
              Mark Harding @markeharding · 5 minutes ago
              Owner

              remove everything after this line

            • Please register or sign in to reply
          • Mark Harding
            Mark Harding @markeharding started a thread on the diff 5 minutes ago
            Core/Provisioner/Provisioners/cassandra-provision.cql
            1470 AND crc_check_chance = 1.0
            1471 AND dclocal_read_repair_chance = 0.1
            1472 AND default_time_to_live = 0
            1473 AND gc_grace_seconds = 864000
            1474 AND max_index_interval = 2048
            1475 AND memtable_flush_period_in_ms = 0
            1476 AND min_index_interval = 128
            1477 AND read_repair_chance = 0.0
            1478 AND speculative_retry = '99PERCENTILE';
            1479
            1480 CREATE MATERIALIZED VIEW minds.moderation_reports_by_entity_owner_guid AS
            1481 SELECT *
            1482 FROM minds.moderation_reports
            1483 WHERE entity_owner_guid IS NOT NULL AND reason_code IS NOT NULL AND sub_reason_code IS NOT NULL AND timestamp IS NOT NULL
            1484 PRIMARY KEY (entity_owner_guid, timestamp, entity_urn, reason_code, sub_reason_code)
            1485 WITH CLUSTERING ORDER BY (timestamp DESC, entity_urn ASC, reason_code ASC, sub_reason_code ASC)
            • Mark Harding
              Mark Harding @markeharding · 5 minutes ago
              Owner

              remove everything after this line. keep WITH CLUSTERING ORDER

            • Please register or sign in to reply
          • Mark Harding
            Mark Harding @markeharding started a thread on the diff 4 minutes ago
            Core/Provisioner/Provisioners/cassandra-provision.cql
            1449 CREATE TABLE minds.moderation_reports (
            1450 entity_urn text,
            1451 reason_code tinyint,
            1452 sub_reason_code decimal,
            1453 timestamp timestamp,
            1454 appeal_jury map<bigint, boolean>,
            1455 appeal_note text,
            1456 entity_owner_guid bigint,
            1457 initial_jury map<bigint, boolean>,
            1458 reports set<bigint>,
            1459 state text,
            1460 state_changes map<text, timestamp>,
            1461 uphold boolean,
            1462 user_hashes set<text>,
            1463 PRIMARY KEY (entity_urn, reason_code, sub_reason_code, timestamp)
            1464 ) WITH CLUSTERING ORDER BY (reason_code ASC, sub_reason_code ASC, timestamp DESC)
            • Mark Harding
              Mark Harding @markeharding · 4 minutes ago
              Owner

              remove all after this line

            • Please register or sign in to reply
          • Mark Harding @markeharding added MR::Requires Changes scoped label and automatically removed MR::Awaiting Review label 4 minutes ago

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

          • 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
          2
          Labels
          MR::Requires Changes Squad::Yellow
          Assign labels
          • View project labels
          Lock merge request
          Unlocked
          7
          7 participants
          user avatar
          Mark Harding
          user avatar
          Rami Albatal
          user avatar
          Marcelo Rivera
          user avatar
          Brian Hatchet
          user avatar
          Emiliano Balbuena
          user avatar
          Martin Santangelo
          user avatar
          Ben Hayward
          Reference: minds/engine!324