- ๐ฎ๐ณIndia Charchil Khandelwal
Charchil Khandelwal โ made their first commit to this issueโs fork.
- @charchil-khandelwal opened merge request.
- ๐ฎ๐ณIndia Charchil Khandelwal
Thanks @samit.310@gmail.com, patch #2 applied cleanly, all errors and warnings are fixed.
And i also created MR for same.
Please review. - Status changed to Needs work
over 1 year ago 2:39pm 13 May 2023 - ๐ฎ๐นItaly apaderno Brescia, ๐ฎ๐น
/** + * The publication_date module. + *
The usual module description is Hook implementations for the [module name] module. where [module name] is replaced by the module name as shown in the .info.yml file.
+ * @codingStandardsIgnoreStart * @deprecated will be removed before Publication Date 2.0.0. - * The behaviour of the module for unpublished entities has been changed in - * https://www.drupal.org/project/publication_date/issues/3066446 + * @codingStandardsIgnoreEnd
I am not sure it is necessary to use
@codingStandardsIgnoreStart
.+ /** + * The entoty type manager. + * + * @var \Drupal\Core\Entity\EntityTypeManagerInterface + */ + protected $entityTypeManager;
There is a typo in entoty.
+ /** + * {@inheritdoc} + */ + public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, EntityTypeManagerInterface $entity_manager) {
{@inheritdoc}
is not used for constructors. - Assigned to nitin_lama
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 10:08am 16 May 2023 - Status changed to Needs work
4 months ago 12:05am 23 July 2024 Hi @nitin_lama,
Applied your latest changes on MR !3, obviously it did not patch successfully and errors were still thrown. Please see below:
publication_date git:(78e5aa5) curl https://git.drupalcode.org/project/publication_date/-/merge_requests/13.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 11739 0 11739 0 0 34351 0 --:--:-- --:--:-- --:--:-- 35252 patching file publication_date.module patching file publication_date.post_update.php patching file src/Plugin/Field/FieldType/PublicationDateItem.php patching file src/Plugin/Field/FieldWidget/TimestampDatetimeWidget.php Hunk #1 FAILED at 4. Hunk #2 FAILED at 24. 2 out of 2 hunks FAILED -- saving rejects to file src/Plugin/Field/FieldWidget/TimestampDatetimeWidget.php.rej patching file tests/src/Functional/PublicationDateTest.php โ publication_date git:(78e5aa5) โ cd .. โ contrib git:(master) โ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig publication_date FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/publication_date/publication_date.install ----------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------------- 10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Messenger\MessengerInterface. ----------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/publication_date/tests/src/Functional/PublicationDatePreExistingContentTest.php ----------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Field\Entity\BaseFieldOverride. ----------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/publication_date/publication_date.module ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeInterface. 22 | ERROR | [ ] The text '@deprecated will be removed before Publication Date 2.0.0. The behaviour of the module for unpublished entities has been changed in' does not match | | the standard format: @deprecated in %deprecation-version% and is removed from %removal-version%. %extra-info%. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Time: 389ms; Memory: 12MB
Kindly check
Thanks,
Jake- ๐ฎ๐นItaly apaderno Brescia, ๐ฎ๐น
The issue fork is 15 commits behind the upstream repository.