Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
234
Issues
234
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
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
8c974984
Commit
8c974984
authored
11 minutes ago
by
Brian Hatchet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge
parent
1559425f
epic/permissions-28
1 merge request
!350
WIP: Epic/permissions 28
Pipeline
#86409735
passed with stages
in 9 minutes and 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
1 deletion
+50
-1
Core/Provisioner/Provisioners/cassandra-provision.cql
Core/Provisioner/Provisioners/cassandra-provision.cql
+49
-0
classes/ElggEntity.php
classes/ElggEntity.php
+1
-1
No files found.
Core/Provisioner/Provisioners/cassandra-provision.cql
View file @
8c974984
...
...
@@ -1446,6 +1446,55 @@ CREATE TABLE minds.email_campaign_logs (
PRIMARY KEY (receiver_guid, time_sent)
) WITH CLUSTERING ORDER BY (time_sent desc);
CREATE TABLE minds.moderation_reports (
entity_urn text,
reason_code tinyint,
sub_reason_code decimal,
timestamp timestamp,
appeal_jury map<bigint, boolean>,
appeal_note text,
entity_owner_guid bigint,
initial_jury map<bigint, boolean>,
reports set<bigint>,
state text,
state_changes map<text, timestamp>,
uphold boolean,
user_hashes set<text>,
PRIMARY KEY (entity_urn, reason_code, sub_reason_code, timestamp)
) WITH CLUSTERING ORDER BY (reason_code ASC, sub_reason_code ASC, timestamp DESC);
CREATE MATERIALIZED VIEW minds.moderation_reports_by_entity_owner_guid AS
SELECT *
FROM minds.moderation_reports
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
PRIMARY KEY (entity_owner_guid, timestamp, entity_urn, reason_code, sub_reason_code)
WITH CLUSTERING ORDER BY (timestamp DESC, entity_urn ASC, reason_code ASC, sub_reason_code ASC);
CREATE MATERIALIZED VIEW minds.moderation_reports_by_state AS
SELECT *
FROM minds.moderation_reports
WHERE state IS NOT NULL AND reason_code IS NOT NULL AND sub_reason_code IS NOT NULL AND timestamp IS NOT NULL
PRIMARY KEY (state, timestamp, entity_urn, reason_code, sub_reason_code)
WITH CLUSTERING ORDER BY (timestamp DESC, entity_urn ASC, reason_code ASC, sub_reason_code ASC);
CREATE TABLE minds.moderation_strikes (
user_guid bigint,
reason_code tinyint,
sub_reason_code decimal,
timestamp timestamp,
report_urn text,
PRIMARY KEY (user_guid, reason_code, sub_reason_code, timestamp)
) WITH CLUSTERING ORDER BY (reason_code ASC, sub_reason_code ASC, timestamp ASC);
CREATE TABLE minds.moderation_summons (
report_urn text,
jury_type text,
juror_guid bigint,
expires int,
status text,
PRIMARY KEY (report_urn, jury_type, juror_guid)
) WITH CLUSTERING ORDER BY (jury_type ASC, juror_guid ASC);
ALTER TABLE minds.views ADD owner_guid text;
CREATE TABLE minds.subscription_requests (
...
...
This diff is collapsed.
Click to expand it.
classes/ElggEntity.php
View file @
8c974984
...
...
@@ -1070,7 +1070,7 @@ abstract class ElggEntity extends ElggData implements
$url
=
"_graphics/icons/default/
$size
.png"
;
}
return
elgg_normalize_url
(
$url
)
;
return
$url
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment