Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14 from healthgovau/464-set-date-defaults
Browse files Browse the repository at this point in the history
[dates] set default "now" for all date fields in all CTs
  • Loading branch information
Benjen authored Mar 25, 2021
2 parents 76b57b0 + e84f0ec commit e955766
Show file tree
Hide file tree
Showing 61 changed files with 315 additions and 61 deletions.
7 changes: 4 additions & 3 deletions .githooks/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PHPCBF_BIN="./vendor/bin/phpcbf"

drupalfiles=$(git diff --cached --name-only --diff-filter=ACM HEAD | grep -E '\.php$|\.module$|\.inc$|\.install$|\.test$|\.profile$|\.theme$|\.css$|\.info$|\.txt$|\.md$|\.yml$|\.theme$')

if [ "$drupalfiles" != "" ]
if [ $drupalfiles != "" ]
then
drupalfailed=0
echo "Running Code Sniffer..."
Expand All @@ -25,13 +25,14 @@ then
fi
fi

commitfailed=$drupalfailed

if [ $drupalfailed != 0 ]
then
echo "PHPCS failed, errors found not fixable automatically, git commit denied!"
commitfailed=$drupalfailed
fi
fi

#### End of Code Sniffer

exit $commitfailed
exit $commitfailed
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- field.field.node.h_collection.field_h_content_owner
- field.field.node.h_collection.field_h_content_pass_sentences
- field.field.node.h_collection.field_h_content_readability
- field.field.node.h_collection.field_h_date_created
- field.field.node.h_collection.field_h_date_published
- field.field.node.h_collection.field_h_date_reviewed
- field.field.node.h_collection.field_h_date_updated
Expand Down Expand Up @@ -86,7 +87,7 @@ third_party_settings:
label: Related
group_h_dates:
children:
- field_h_date_updated
- field_h_date_reviewed
- group_system_dates
parent_name: group_h_tabs
weight: 33
Expand Down Expand Up @@ -134,10 +135,11 @@ third_party_settings:
label: Tabs
group_system_dates:
children:
- field_h_date_created
- field_h_date_updated
- field_h_date_published
- field_h_date_reviewed
parent_name: group_h_dates
weight: 24
weight: 28
format_type: details
region: content
format_settings:
Expand Down Expand Up @@ -216,8 +218,14 @@ content:
third_party_settings: { }
type: number
region: content
field_h_date_created:
weight: 35
settings: { }
third_party_settings: { }
type: datetime_default
region: content
field_h_date_published:
weight: 25
weight: 37
settings: { }
third_party_settings: { }
type: datetime_default
Expand All @@ -229,7 +237,7 @@ content:
type: datetime_default
region: content
field_h_date_updated:
weight: 23
weight: 36
settings: { }
third_party_settings: { }
type: datetime_default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- field.field.node.h_foi_request.field_h_content_owner
- field.field.node.h_foi_request.field_h_content_pass_sentences
- field.field.node.h_foi_request.field_h_content_readability
- field.field.node.h_foi_request.field_h_date_created
- field.field.node.h_foi_request.field_h_date_published
- field.field.node.h_foi_request.field_h_date_reviewed
- field.field.node.h_foi_request.field_h_date_updated
Expand Down Expand Up @@ -148,8 +149,9 @@ third_party_settings:
label: Readability
group_system_dates:
children:
- field_h_date_published
- field_h_date_created
- field_h_date_updated
- field_h_date_published
parent_name: group_h_dates
weight: 28
format_type: details
Expand Down Expand Up @@ -212,9 +214,15 @@ content:
settings:
placeholder: ''
third_party_settings: { }
field_h_date_created:
weight: 30
settings: { }
third_party_settings: { }
type: datetime_default
region: content
field_h_date_published:
type: datetime_default
weight: 29
weight: 32
region: content
settings: { }
third_party_settings: { }
Expand All @@ -226,7 +234,7 @@ content:
third_party_settings: { }
field_h_date_updated:
type: datetime_default
weight: 30
weight: 31
region: content
settings: { }
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ third_party_settings:
group_h_system_dates:
children:
- field_h_date_created
- field_h_date_published
- field_h_date_updated
- field_h_date_published
parent_name: group_h_dates
weight: 30
format_type: details
Expand Down Expand Up @@ -223,7 +223,7 @@ content:
type: datetime_default
region: content
field_h_date_published:
weight: 106
weight: 107
settings: { }
third_party_settings: { }
type: datetime_default
Expand All @@ -235,7 +235,7 @@ content:
type: datetime_default
region: content
field_h_date_updated:
weight: 107
weight: 106
settings: { }
third_party_settings: { }
type: datetime_default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- field.field.node.h_collection.field_h_content_owner
- field.field.node.h_collection.field_h_content_pass_sentences
- field.field.node.h_collection.field_h_content_readability
- field.field.node.h_collection.field_h_date_created
- field.field.node.h_collection.field_h_date_published
- field.field.node.h_collection.field_h_date_reviewed
- field.field.node.h_collection.field_h_date_updated
Expand Down Expand Up @@ -111,6 +112,15 @@ content:
third_party_settings: { }
type: number_integer
region: content
field_h_date_created:
weight: 121
label: above
settings:
format_type: medium
timezone_override: ''
third_party_settings: { }
type: datetime_default
region: content
field_h_date_published:
weight: 113
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- field.field.node.h_collection.field_h_content_owner
- field.field.node.h_collection.field_h_content_pass_sentences
- field.field.node.h_collection.field_h_content_readability
- field.field.node.h_collection.field_h_date_created
- field.field.node.h_collection.field_h_date_published
- field.field.node.h_collection.field_h_date_reviewed
- field.field.node.h_collection.field_h_date_updated
Expand Down Expand Up @@ -140,6 +141,7 @@ hidden:
field_h_content_owner: true
field_h_content_pass_sentences: true
field_h_content_readability: true
field_h_date_created: true
field_h_date_published: true
field_h_date_reviewed: true
field_h_language: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- field.field.node.h_collection.field_h_content_owner
- field.field.node.h_collection.field_h_content_pass_sentences
- field.field.node.h_collection.field_h_content_readability
- field.field.node.h_collection.field_h_date_created
- field.field.node.h_collection.field_h_date_published
- field.field.node.h_collection.field_h_date_reviewed
- field.field.node.h_collection.field_h_date_updated
Expand Down Expand Up @@ -140,6 +141,7 @@ hidden:
field_h_content_owner: true
field_h_content_pass_sentences: true
field_h_content_readability: true
field_h_date_created: true
field_h_date_published: true
field_h_date_reviewed: true
field_h_language: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- field.field.node.h_collection.field_h_content_owner
- field.field.node.h_collection.field_h_content_pass_sentences
- field.field.node.h_collection.field_h_content_readability
- field.field.node.h_collection.field_h_date_created
- field.field.node.h_collection.field_h_date_published
- field.field.node.h_collection.field_h_date_reviewed
- field.field.node.h_collection.field_h_date_updated
Expand Down Expand Up @@ -64,6 +65,7 @@ hidden:
field_h_content_owner: true
field_h_content_pass_sentences: true
field_h_content_readability: true
field_h_date_created: true
field_h_date_published: true
field_h_date_reviewed: true
field_h_date_updated: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- field.field.node.h_collection.field_h_content_owner
- field.field.node.h_collection.field_h_content_pass_sentences
- field.field.node.h_collection.field_h_content_readability
- field.field.node.h_collection.field_h_date_created
- field.field.node.h_collection.field_h_date_published
- field.field.node.h_collection.field_h_date_reviewed
- field.field.node.h_collection.field_h_date_updated
Expand Down Expand Up @@ -87,6 +88,7 @@ hidden:
field_h_content_owner: true
field_h_content_pass_sentences: true
field_h_content_readability: true
field_h_date_created: true
field_h_date_reviewed: true
field_h_date_updated: true
field_h_description: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- field.field.node.h_collection.field_h_content_owner
- field.field.node.h_collection.field_h_content_pass_sentences
- field.field.node.h_collection.field_h_content_readability
- field.field.node.h_collection.field_h_date_created
- field.field.node.h_collection.field_h_date_published
- field.field.node.h_collection.field_h_date_reviewed
- field.field.node.h_collection.field_h_date_updated
Expand Down Expand Up @@ -140,6 +141,7 @@ hidden:
field_h_content_owner: true
field_h_content_pass_sentences: true
field_h_content_readability: true
field_h_date_created: true
field_h_date_published: true
field_h_date_reviewed: true
field_h_language: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- field.field.node.h_collection.field_h_content_owner
- field.field.node.h_collection.field_h_content_pass_sentences
- field.field.node.h_collection.field_h_content_readability
- field.field.node.h_collection.field_h_date_created
- field.field.node.h_collection.field_h_date_published
- field.field.node.h_collection.field_h_date_reviewed
- field.field.node.h_collection.field_h_date_updated
Expand Down Expand Up @@ -48,6 +49,7 @@ hidden:
field_h_content_owner: true
field_h_content_pass_sentences: true
field_h_content_readability: true
field_h_date_created: true
field_h_date_published: true
field_h_date_reviewed: true
field_h_date_updated: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- field.field.node.h_foi_request.field_h_content_owner
- field.field.node.h_foi_request.field_h_content_pass_sentences
- field.field.node.h_foi_request.field_h_content_readability
- field.field.node.h_foi_request.field_h_date_created
- field.field.node.h_foi_request.field_h_date_published
- field.field.node.h_foi_request.field_h_date_reviewed
- field.field.node.h_foi_request.field_h_date_updated
Expand Down Expand Up @@ -40,6 +41,11 @@ targetEntityType: node
bundle: h_foi_request
mode: default
content:
content_moderation_control:
weight: -20
settings: { }
third_party_settings: { }
region: content
field_h_audience:
weight: 106
label: above
Expand Down Expand Up @@ -98,6 +104,15 @@ content:
third_party_settings: { }
type: number_integer
region: content
field_h_date_created:
weight: 123
label: above
settings:
format_type: medium
timezone_override: ''
third_party_settings: { }
type: datetime_default
region: content
field_h_date_published:
weight: 115
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- field.field.node.h_foi_request.field_h_content_owner
- field.field.node.h_foi_request.field_h_content_pass_sentences
- field.field.node.h_foi_request.field_h_content_readability
- field.field.node.h_foi_request.field_h_date_created
- field.field.node.h_foi_request.field_h_date_published
- field.field.node.h_foi_request.field_h_date_reviewed
- field.field.node.h_foi_request.field_h_date_updated
Expand Down Expand Up @@ -42,6 +43,11 @@ targetEntityType: node
bundle: h_foi_request
mode: full
content:
content_moderation_control:
weight: -20
settings: { }
third_party_settings: { }
region: content
field_h_date_updated:
weight: 4
label: above
Expand Down Expand Up @@ -134,6 +140,7 @@ hidden:
field_h_content_owner: true
field_h_content_pass_sentences: true
field_h_content_readability: true
field_h_date_created: true
field_h_date_published: true
field_h_date_reviewed: true
field_h_language: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- field.field.node.h_foi_request.field_h_content_owner
- field.field.node.h_foi_request.field_h_content_pass_sentences
- field.field.node.h_foi_request.field_h_content_readability
- field.field.node.h_foi_request.field_h_date_created
- field.field.node.h_foi_request.field_h_date_published
- field.field.node.h_foi_request.field_h_date_reviewed
- field.field.node.h_foi_request.field_h_date_updated
Expand Down Expand Up @@ -38,6 +39,11 @@ targetEntityType: node
bundle: h_foi_request
mode: h_inline
content:
content_moderation_control:
weight: -20
settings: { }
third_party_settings: { }
region: content
field_h_foi_number:
type: string
weight: 0
Expand All @@ -60,6 +66,7 @@ hidden:
field_h_content_owner: true
field_h_content_pass_sentences: true
field_h_content_readability: true
field_h_date_created: true
field_h_date_published: true
field_h_date_reviewed: true
field_h_date_updated: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- field.field.node.h_foi_request.field_h_content_owner
- field.field.node.h_foi_request.field_h_content_pass_sentences
- field.field.node.h_foi_request.field_h_content_readability
- field.field.node.h_foi_request.field_h_date_created
- field.field.node.h_foi_request.field_h_date_published
- field.field.node.h_foi_request.field_h_date_reviewed
- field.field.node.h_foi_request.field_h_date_updated
Expand Down Expand Up @@ -61,6 +62,11 @@ targetEntityType: node
bundle: h_foi_request
mode: h_search_result
content:
content_moderation_control:
weight: -20
settings: { }
third_party_settings: { }
region: content
field_h_summary:
weight: 1
label: hidden
Expand All @@ -75,6 +81,7 @@ hidden:
field_h_content_owner: true
field_h_content_pass_sentences: true
field_h_content_readability: true
field_h_date_created: true
field_h_date_published: true
field_h_date_reviewed: true
field_h_date_updated: true
Expand Down
Loading

0 comments on commit e955766

Please sign in to comment.