Closed (fixed)
Project:
Popin
Version:
2.0.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jul 2023 at 16:46 UTC
Updated:
6 Nov 2024 at 07:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
shreya_th commentedI had fixed all the errors reported by phpcs but some warning are still left . I have attached screenshot of warnings which will be solve by maintainer.
Comment #3
avpadernoI am resetting the Assigned field, since that person did not do anything for this issue after more than 24 hours.
Comment #4
avpaderno@@ -12,20 +12,23 @@ The popin content is composed of :Since the file is edited, the spaces before colons must be removed too.
There must be two empty lines before a new section.
In English, text is quoted between double quote characters (").
A period is missing after frontpage.
The usual description is Hook implementations for the [module name] module. where [module name] is replaced by the module name given in the .info.yml file.
The file usage service. is sufficient.
The current user. is sufficient.
The documentation comment for methods inherited from a parent class or defined in an interface the class implements is
{@inheritdoc}.The configuration factory. is sufficient.
Comment #5
nitin_lamaComment #6
nitin_lamaAddressed comment #4. Providing updated patch.
Comment #7
nitin_lamaComment #8
avpadernoThe Installation section should say what the template suggests.
The rest is part of the Configuration section.
The README.md file is not even complete. It would be better to leave any change for that file to a different issue.
SInce that is a parenthetical, the period goes inside the parentheses.
Comment #10
nisha_j commentedComment #12
shruu_rao commentedHi,
Reviewed #10, the patch is not applying and is throwing following error.
Checking patch README.md...
error: while searching for:
All are optionals.
You can customize the fields order by editing the provided template (block-popin.html.twig).
You can configure the visibility of the popin by date, or globally.
The popin will be displayed once per user session. Update the popin configuration form will reset this setting.
## Installation
You can download this module with composer, and enable it like any other module.
After that, head to blocks structure configuration to add the « Popin block » to a region (footer for example).
(You can use block visibility settings if you want to display the popin only on the frontpage)
Finally you can configure the popin content and visibility on /admin/content/popin.
error: patch failed: README.md:12
error: README.md: patch does not apply
Checking patch css/popin.css...
error: while searching for:
margin-top: 15px;
text-align: center;
}
error: patch failed: css/popin.css:76
error: css/popin.css: patch does not apply
Checking patch popin.module...
error: while searching for:
<?php
/**
* Implements hook_theme().
*/
error: patch failed: popin.module:1
error: popin.module: patch does not apply
Checking patch src/Form/PopinConfigForm.php...
error: while searching for:
namespace Drupal\popin\Form;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Session\AccountProxyInterface;
use Drupal\file\Entity\File;
use Drupal\file\FileUsage\FileUsageInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Config\ConfigManagerInterface;
/**
* Class PopinConfigForm.
*/
class PopinConfigForm extends ConfigFormBase {
/**
* @var FileUsageInterface
*/
protected $fileUsage;
/**
* @var AccountProxyInterface
*/
protected $currentUser;
error: patch failed: src/Form/PopinConfigForm.php:3
error: src/Form/PopinConfigForm.php: patch does not apply
Checking patch src/Plugin/Block/PopinBlock.php...
error: while searching for:
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\file\Entity\File;
use Drupal\image\Entity\ImageStyle;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Session\SessionManagerInterface;
use Drupal\Core\Session\AccountProxyInterface;
use Symfony\Component\HttpFoundation\RequestStack;
/**
* Provides a 'PopinBlock' block.
error: patch failed: src/Plugin/Block/PopinBlock.php:5
error: src/Plugin/Block/PopinBlock.php: patch does not apply
Comment #13
mohd sahzad commentedComment #14
mohd sahzad commentedComment #15
zkhan.aamir commentedHi,
Patch #10 applied successfully.
No issues remianing.
Comment #16
nitin_lamaComment #17
nitin_lamaAddressing #8. Providing updated patch.
Comment #18
nitin_lamaPlease review. Thanks.
Comment #19
nitin_lamaComment #20
yashaswi18 commentedHello, the patch #17 applies cleanly and there are no errors or warnings remaining when applied without checking out to any branch.
Comment #21
a.aaronjake commentedHi @nitin_lama,
Applied patch #17 and found one error
Kindly advise if you can also replicate this.
Thank you.
Comment #22
silvi.addweb commentedHello,
I resolve all listed errors in this patch, please review.
Comment #23
a.aaronjake commentedHi @silvi.addweb,
Applied patch #22 successfully, confirmed all errors/warnings fixed.
Will move this to RTBC.
Thanks,
Jake
Comment #25
avpadernoSince GitLab CI has been enabled for this project, and since there have been commits in the project that fixed some of the reported PHP_Codesniffer warnings/errors, a new MR must be provided. In fact, a single error still needs to be fixed.
Comment #26
avpadernoComment #27
avpadernoGitLab CI no longer reports PHP_CodeSniffer warnings/errors.
Comment #29
andrii momotov commentedThank you all!
Comment #30
andrii momotov commentedComment #31
andrii momotov commentedComment #32
andrii momotov commentedComment #33
a.aaronjake commented.