Commit 8c974984 authored by Brian Hatchet's avatar Brian Hatchet :speech_balloon:

Merge

1 merge request!350WIP: Epic/permissions 28
Pipeline #86409735 passed with stages
in 9 minutes and 34 seconds
......@@ -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 (
......
......@@ -1070,7 +1070,7 @@ abstract class ElggEntity extends ElggData implements
$url = "_graphics/icons/default/$size.png";
}
return elgg_normalize_url($url);
return $url;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment