Month Year Range, Provide the form widget to fill in the month and year range or year range only . This is just a change to the display form, so that the user doesn't need to enter too much content.
This module not stored time data. The storage of time is provided by the core.

Project link

https://www.drupal.org/project/month_year_range

Comments

nikral created an issue. See original summary.

shashank5563’s picture

Thank you for applying! Reviewers will review the project files, describing what needs to be changed.

Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.

To reviewers: Please read How to review security advisory coverage applications, What to cover in an application review, and Drupal.org security advisory coverage application workflow.

While this application is open, only the user who opened the application can make commits to the project used for the application.

Reviewers only describe what needs to be changed; they don't provide patches to fix what reported in a review.

vinaymahale’s picture

Ran PHPCS tests. No PHPCS-related issues were found. Let's wait for other reviewers

shashank5563’s picture

Issue summary: View changes
shashank5563’s picture

Status: Needs review » Needs work

@nikral, There are three branches. It is difficult review to the reviewer. Please remove the unused branch. So, we can review the your module.

shashank5563’s picture

Please use the branch instead of the tag in the title.
Like: [9.0.5] Month Year Range into [1.x] Month Year Range

nikral’s picture

Title: [9.0.5] Month Year Range » [1.x] Month Year Range
Status: Needs work » Needs review

Thanks @shashank5563

avpaderno’s picture

Status: Needs review » Needs work

I do not have time for a complete review, but there is something that needs to be fixed.

Projects hosted on drupal.org are licensed under GPLv2+, the same license used from Drupal core. If you are licensing a project under a different license, it cannot he hosted on drupal.org. More details are given in Drupal Git Contributor Agreement & Repository Usage Policy.

All code that is a derivative work of Drupal (typically PHP code, including but not limited to: core patches, modules, themes, etc) committed to Drupal.org's git repository is licensed as GPL version 2.0 and later (official short identifier: “GPL-2.0-or-later”). This means that the code is licensed under GPLv2, and there exists an option that allows downstream recipients to re-license the code to be under a later version of GPL.

For code licensed under GPLv3, see See I want to release my work under GPL version 3 or under GPL version 2-only. Can I do so and host it on Drupal.org?

No. You can release your work under any GPL version 2 or later compatible license, however, you may only check it into Drupal's Git repositories if you are releasing it under the same license as Drupal itself, that is, GPL version 2 or later, allowing users to choose between the terms of the GPL version 2 or the terms in any new versions as updated by the FSF. If you are unable or unwilling to do so, do not check it into a Drupal Git repository.

nikral’s picture

Status: Needs work » Needs review

thanks @apaderno,
I just deleted the license and unnecessary files.

shashank5563’s picture

@nikral , I have reviewed the changes, and they look fine to me.

Let’s wait for other reviewers to take a look and if everything goes fine, you will get the role.

sgourebi’s picture

Status: Needs review » Needs work

@nikral

In the file src/Plugin/Field/FieldWidget/MonthYearRangeWidget.php
You don't have to implement ContainerFactoryPluginInterface because it is almost implemented in the web/core/lib/Drupal/Core/Field/WidgetBase.php

In the file month_year_range.info.yml
Drupal 8 is not yet supported, so I guess you have to set the core version like this core_version_requirement: ^9 || ^10
I you want to keep compatibility with D8, you have to set the core_version_requirement: ^8.8 || ^9 || ^10
Or
add the core key.
core: 8.x to support version before D8.8 because D8.7.7 doesn't support core_version_requirement.
core_version_requirement: ^8 || ^9 || ^10

I ran PHPCS tests and no related coding standard issues were found.
Except what I described, it is good for me.

nikral’s picture

Status: Needs work » Needs review

Thanks @shashank5563 and @sgourebi for the review,

@sgourebi, I removed the implementation of ContainerFactoryPluginInterface in src/Plugin/Field/FieldWidget/MonthYearRangeWidget.php

For the version, I think that for the moment we can leave it like this core_version_requirement: ^8 || ^9 || ^10

avpaderno’s picture

To make clear how to declare the required Drupal core versions: core_version_requirement: ^8 || ^9 || ^10 and core_version_requirement: ^8.8 || ^9 || ^10 have the same effect on Drupal versions before Drupal 8.7.7, as in both the cases the Drupal site would throw an error, since those Drupal versions do not recognize the core_version_requirement key. For them, it is like no core requirement has been defined.
The only difference is that, using core_version_requirement: ^8 || ^9 || ^10, the users will read Works with Drupal: ^8 || ^9 || ^10 on the project page and think they can install it on any Drupal 8 version, when it is not so.

core: 8.x cannot be used with any value of core_version_requirement that is not ^8 || ^9. Using core: 8.x together core_version_requirement: ^8 || ^9 || ^10 would throw an error on Drupal versions after Drupal 8.7.7.

sgourebi’s picture

It is ok for me now.

vinaymahale’s picture

Priority: Normal » Major

I am changing priority as per Issue priorities.

avpaderno’s picture

Assigned: Unassigned » avpaderno
Priority: Major » Normal
Status: Needs review » Reviewed & tested by the community

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the Slack #contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the reviewers.

avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.