mirror of
https://github.com/mastodon/mastodon.git
synced 2026-05-23 01:26:36 -05:00
add raketasks to generate collections for testing (#38986)
Some checks failed
Check i18n / check-i18n (push) Waiting to run
Chromatic / Check for relevant changes (push) Waiting to run
Chromatic / Run Chromatic (push) Blocked by required conditions
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (ruby) (push) Waiting to run
Check formatting / lint (push) Waiting to run
Ruby Linting / lint (push) Waiting to run
Ruby Testing / build (production) (push) Waiting to run
Ruby Testing / build (test) (push) Waiting to run
Ruby Testing / test (.ruby-version) (push) Blocked by required conditions
Ruby Testing / test (3.3) (push) Blocked by required conditions
Ruby Testing / test (3.4) (push) Blocked by required conditions
Ruby Testing / End to End testing (.ruby-version) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.3) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.4) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.29) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.19.2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.3, docker.elastic.co/elasticsearch/elasticsearch:7.17.29) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.4, docker.elastic.co/elasticsearch/elasticsearch:7.17.29) (push) Blocked by required conditions
CSS Linting / lint (push) Has been cancelled
Some checks failed
Check i18n / check-i18n (push) Waiting to run
Chromatic / Check for relevant changes (push) Waiting to run
Chromatic / Run Chromatic (push) Blocked by required conditions
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (ruby) (push) Waiting to run
Check formatting / lint (push) Waiting to run
Ruby Linting / lint (push) Waiting to run
Ruby Testing / build (production) (push) Waiting to run
Ruby Testing / build (test) (push) Waiting to run
Ruby Testing / test (.ruby-version) (push) Blocked by required conditions
Ruby Testing / test (3.3) (push) Blocked by required conditions
Ruby Testing / test (3.4) (push) Blocked by required conditions
Ruby Testing / End to End testing (.ruby-version) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.3) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.4) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.29) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.19.2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.3, docker.elastic.co/elasticsearch/elasticsearch:7.17.29) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.4, docker.elastic.co/elasticsearch/elasticsearch:7.17.29) (push) Blocked by required conditions
CSS Linting / lint (push) Has been cancelled
This commit is contained in:
parent
82ce9367c3
commit
a6a8a37ae1
|
|
@ -441,8 +441,39 @@ namespace :dev do
|
|||
text: 'This post has a manual quote policy',
|
||||
account: remote_account,
|
||||
visibility: :public,
|
||||
quote_approval_policy: Status::QUOTE_APPROVAL_POLICY_FLAGS[:public]
|
||||
quote_approval_policy: InteractionPolicy::POLICY_FLAGS[:public]
|
||||
).find_or_create_by!(id: 10_000_030)
|
||||
|
||||
showcase_collection = Collection.create_with(
|
||||
account: showcase_account,
|
||||
name: 'Showcase Collection',
|
||||
description: 'super cool description',
|
||||
local: true,
|
||||
sensitive: false,
|
||||
discoverable: true
|
||||
).find_or_create_by!(id: 10_000_031)
|
||||
|
||||
another_collection = Collection.create_with(
|
||||
account: showcase_account,
|
||||
name: 'Another Collection',
|
||||
description: 'super cool description',
|
||||
local: true,
|
||||
sensitive: false,
|
||||
discoverable: true
|
||||
).find_or_create_by!(id: 10_000_032)
|
||||
|
||||
report = Report.create_with(
|
||||
action_taken_at: nil
|
||||
).find_or_create_by!(account: showcase_sidekick_account, target_account: showcase_account, comment: 'not very nice')
|
||||
|
||||
CollectionReport.find_or_create_by!(collection: showcase_collection, report: report)
|
||||
|
||||
CollectionReport.find_or_create_by!(collection: another_collection, report: report)
|
||||
|
||||
Report.create_with(
|
||||
status_ids: [10_000_028, 10_000_027],
|
||||
action_taken_at: nil
|
||||
).find_or_create_by!(account: showcase_sidekick_account, target_account: showcase_account, comment: 'very unique comment')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user