Skip to content

Commit

Permalink
Merge pull request #1064 from necyberteam/md-slist2
Browse files Browse the repository at this point in the history
Simplelists discussion group email lists for Affinity groups md-slist2
  • Loading branch information
a-pasquale authored Jan 19, 2024
2 parents 43ac395 + 5d5de1a commit 7230da3
Show file tree
Hide file tree
Showing 14 changed files with 191 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Feature: Feature: test an Affinity Group page
# this CI link is created by amp_dev.install
When I fill in "Display CI Links on your Affinity Group" with "ci-link-for-user-200"
And I wait 1 seconds
And I fill in "Slug" with "access-support"
When I press "Save"
And I wait 2 seconds
Then I should see "Affinity Group ACCESS Support has been updated."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Feature: test individual tags page
When I fill in "Title" with "test-affinity-group"
# tag is "login"
When I select "682" from "edit-field-tags"
And I fill in "Slug" with "test-affinity-group"
When I press "Save"
Then I should see "has been created"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ describe("Admin user tests the Individual Affinity Groups", () => {
cy.get('#edit-field-cider-resources-0-target-id').clear();
cy.get('#edit-field-cider-resources-0-target-id').type('UD DARWIN Storage (DARWIN Storage) (366)');

// Set the slug to something unique
cy.get('#edit-field-group-slug-0-value').clear().type('access-support');

// submit changes
cy.get('#edit-submit').click();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ function remove_pecan_as_ag_coord() {
cy.get('#edit-field-coordinator-1-target-id')
.clear();

// submit changes
// Set the slug to something unique
cy.get('#edit-field-group-slug-0-value').clear().type('access-support');

// submit changes
cy.get('#edit-submit').click();
cy.contains('has been updated');
cy.get('.block-field-blocknodeaffinity-groupfield-coordinator').should('not.include.text', 'Pecan')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ dependencies:
- field.field.node.affinity_group.field_domain_access
- field.field.node.affinity_group.field_domain_all_affiliates
- field.field.node.affinity_group.field_domain_source
- field.field.node.affinity_group.field_ext_email_list
- field.field.node.affinity_group.field_github_organization
- field.field.node.affinity_group.field_group_slug
- field.field.node.affinity_group.field_image
- field.field.node.affinity_group.field_list_id
- field.field.node.affinity_group.field_mailing_list
- field.field.node.affinity_group.field_recommended_access_res
- field.field.node.affinity_group.field_resources_entity_reference
- field.field.node.affinity_group.field_slack
- field.field.node.affinity_group.field_tags
- field.field.node.affinity_group.field_use_ext_email_list
- image.style.thumbnail
- node.type.affinity_group
module:
Expand Down Expand Up @@ -125,6 +128,14 @@ content:
region: content
settings: { }
third_party_settings: { }
field_ext_email_list:
type: string_textfield
weight: 29
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_github_organization:
type: link_default
weight: 6
Expand All @@ -133,6 +144,14 @@ content:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_group_slug:
type: string_textfield
weight: 30
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_image:
type: image_image
weight: 2
Expand Down Expand Up @@ -209,6 +228,13 @@ content:
region: content
settings: { }
third_party_settings: { }
field_use_ext_email_list:
type: boolean_checkbox
weight: 28
region: content
settings:
display_label: true
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ dependencies:
- field.field.node.affinity_group.field_domain_access
- field.field.node.affinity_group.field_domain_all_affiliates
- field.field.node.affinity_group.field_domain_source
- field.field.node.affinity_group.field_ext_email_list
- field.field.node.affinity_group.field_github_organization
- field.field.node.affinity_group.field_group_slug
- field.field.node.affinity_group.field_image
- field.field.node.affinity_group.field_list_id
- field.field.node.affinity_group.field_mailing_list
- field.field.node.affinity_group.field_recommended_access_res
- field.field.node.affinity_group.field_resources_entity_reference
- field.field.node.affinity_group.field_slack
- field.field.node.affinity_group.field_tags
- field.field.node.affinity_group.field_use_ext_email_list
- node.type.affinity_group
module:
- text
Expand Down Expand Up @@ -56,11 +59,14 @@ hidden:
field_domain_access: true
field_domain_all_affiliates: true
field_domain_source: true
field_ext_email_list: true
field_github_organization: true
field_group_slug: true
field_image: true
field_list_id: true
field_mailing_list: true
field_recommended_access_res: true
field_resources_entity_reference: true
field_slack: true
field_tags: true
field_use_ext_email_list: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 143f7d20-edd1-4bac-a04c-54819842bae0
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_ext_email_list
- node.type.affinity_group
id: node.affinity_group.field_ext_email_list
field_name: field_ext_email_list
entity_type: node
bundle: affinity_group
label: 'Email Discussion List Address'
description: 'Email address for this group, if enabled.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 9e4f90b6-8894-4b6f-b84f-f673bc1e8906
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_group_slug
- node.type.affinity_group
id: node.affinity_group.field_group_slug
field_name: field_group_slug
entity_type: node
bundle: affinity_group
label: Slug
description: "Short name for this group that can be used for email list address, etc.\r\n"
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 272aead9-cf82-49af-8007-df82f1ca367a
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_use_ext_email_list
- node.type.affinity_group
id: node.affinity_group.field_use_ext_email_list
field_name: field_use_ext_email_list
entity_type: node
bundle: affinity_group
label: 'Enable email discussion list'
description: 'Check to enable a discussion email list. The email list will be created using the Slug for the address.'
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'Yes'
off_label: 'No'
field_type: boolean
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: a20ca861-efbf-4663-9be8-989ce98f0036
langcode: en
status: true
dependencies:
module:
- field_permissions
- node
third_party_settings:
field_permissions:
permission_type: custom
id: node.field_ext_email_list
field_name: field_ext_email_list
entity_type: node
type: string
settings:
max_length: 60
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: 099b1c91-fe05-4b5c-88a3-74041e14eac2
langcode: en
status: true
dependencies:
module:
- field_permissions
- node
third_party_settings:
field_permissions:
permission_type: public
id: node.field_group_slug
field_name: field_group_slug
entity_type: node
type: string
settings:
max_length: 60
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: 94b2d2e9-3c19-4e5e-b877-226c1ffa4f5b
langcode: en
status: true
dependencies:
module:
- field_permissions
- node
third_party_settings:
field_permissions:
permission_type: public
id: node.field_use_ext_email_list
field_name: field_use_ext_email_list
entity_type: node
type: boolean
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
15 changes: 15 additions & 0 deletions web/sites/default/config/default/key.key.simplelists.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uuid: 066a19d8-34af-40ad-a31a-477596a11cd5
langcode: en
status: true
dependencies: { }
id: simplelists
label: simplelists
description: 'SimpleLists email lists'
key_type: authentication
key_type_settings: { }
key_provider: file
key_provider_settings:
file_location: 'private://.keys/simplelists.key'
strip_line_breaks: true
key_input: none
key_input_settings: { }

0 comments on commit 7230da3

Please sign in to comment.