The Date All Day module exists to provide the capability to make "time" optional on date rage fields. In other words, to indicate that a date covers "all the day". A similar module already existed in Drupal 7, as part of the date module, but not in Drupal 8 and upper.

The module provides a field widget and some field formatters for the core's daterange field.

Similar modules

  • Smart Date - Provides a complete framework to manage dates, including "all day" dates functionality and provides its own field type. Date all day instead focuses on providing only the all day functionality to core fields

Project link

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

Comments

akalam created an issue. See original summary.

akalam’s picture

Issue summary: View changes
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.

vishal.kadam’s picture

Issue summary: View changes
apaderno’s picture

Assigned: Unassigned » nielsaers

I am assigning this issue.

vishal.kadam’s picture

Status: Needs review » Needs work

1. Fix phpcs issue.

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml date_all_day/

FILE: date_all_day/date_all_day.module
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 24 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

2. FILE: date_all_day.info.yml

core_version_requirement: ^8 || ^9 || ^10

The Drupal Core versions before 8.7.7 do not recognize the core_version_requirement: key.

akalam’s picture

Status: Needs work » Needs review

Thanks for your review. The requested changes have been fixed on the 2.0.x branch, could you review it again?

vishal.kadam’s picture

@akalam,

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.

akalam’s picture

Thank you so much :)

apaderno’s picture

Assigned: nielsaers » Unassigned

@vishal.kadam This issue was assigned to nielsaers because he should have done a review.

vishal.kadam’s picture

@apaderno Apologises. I didn’t see that it was assigned.

apaderno’s picture

Assigned: Unassigned » nielsaers
nielsaers’s picture

Picking this one up today.

nielsaers’s picture

Hey akalam,

1. date_all_day.js:
I think you might be attaching multiple change events to the same elements. Every time behaviors get triggered you'll add your change listener to existing and new items alike. If it is the case, use once and the context to apply your logic: https://www.drupal.org/docs/drupal-apis/javascript-api/javascript-api-ov...

2. date_all_day.libraries.yml:
You define once as a dependency but you don't use it. See remark in 1.

The rest looks good! (Automated check didn't have any complaints other than the proposal to write some tests, but these aren't mandatory for this)

nielsaers’s picture

Assigned: nielsaers » Unassigned
Status: Needs review » Needs work
apaderno’s picture

vinaymahale’s picture

Issue summary: View changes
apaderno’s picture

Issue summary: View changes
apaderno’s picture

Priority: Normal » Minor

I am changing priority as per Issue priorities.