Comments

Nixou created an issue. See original summary.

hiramanpatil’s picture

@Nixou,

Please change git clone URL of the project. The URL you have added in this post is for maintainers. If we use this URL to clone the project then it asks us to provide Nixou@git.drupal.org's password.

Please change the URL so that community members can clone and review the module.

Thanks

nixou’s picture

Issue summary: View changes
nixou’s picture

Ok I changed the clone URL.

Thanks.

PA robot’s picture

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

hiramanpatil’s picture

Hi @Nixou,

Interesting module. Below are my suggestions based on review.

1) After configuration, when I tried to login it shows below error message.

Sorry, you can't access your account for now, try later.

Currently this error message is static which is set from _user_access_timeslot_logout_user() function. You can make it dynamic using system confing form on the 'admin/config/people/user-access-timeslot' page itself. so that admin user can set this message.

2) Error messages on config form.

When I set invalid time for Wednesday (like for morning - from 5:00 AM to 3:00 AM) which is invalid. It shows below error message.

Wednesday start date can't be after end date.

In this error message its not clear that for which time slot it showing validation. Whether its for morning or afternoon. You can include specific time slot (morning or afternoon) in error messages.

Thanks

nixou’s picture

Hi hiramanpatil,
Thanks for your review.

I fixed the item 2).

For item 1), as a variable is not translatable, I prefer to keep a translatable string using t().
If the current string is incorrect or not sufficiently clear, tell me and I will correct .

nixou’s picture

Issue summary: View changes
nixou’s picture

Issue summary: View changes
nixou’s picture

Issue summary: View changes
nixou’s picture

Issue summary: View changes
nixou’s picture

Issue summary: View changes
nixou’s picture

Issue tags: +PAreview: review bonus
xaiwant’s picture

Status: Needs review » Needs work
StatusFileSize
new20.48 KB
new15.62 KB

@Nixou,

good to see your module.

finding:
you need one more validation for admin configuration page, where admin should not enter same Time for active/inactive.
that can lead your code to Deadlock. refer[user_access_timeslot.png]

Optional:
As a first time visitor you can add help text/prefilled text refer:[user_access_timeslot_help_text.png]

nixou’s picture

Status: Needs work » Needs review

Hi xaiwant,
Thanks for your review.

I fixed both the validation for identical date and the prefilled text refer to clarify the administration.

ajaynimbolkar’s picture

Manual Review

Individual user account

[Yes: Follows] the guidelines for individual user accounts.

No duplication

[Yes: Does not cause] module duplication and/or fragmentation.

Master Branch

[Yes: Follows] the guidelines for master branch.

Licensing

[Yes: Follows / No: Does not follow] the licensing requirements.

3rd party assets/code

[Yes: Follows ] the guidelines for 3rd party assets/code.

README.txt/README.md

[Yes: Follows] the guidelines for in-project documentation and/or the README Template.

Code long/complex enough for review

[Yes: Follows] the guidelines for project length and complexity.

Secure code

[Yes: Meets the security requirements.]

Coding style & Drupal API usage

[List of identified issues in no particular order. Use (*) and (+) to indicate an issue importance. Replace the text below by the issues themselves:

  1. (*)When I clone the module then it was showing module name as "2757621" rather than "user_access_timeslot"
  2. (*)Remove $form['#submit'][] = 'user_access_timeslot_settings_form_submit'; in line number 188 as well as validation because automatically submit and validate handled
  3. (*)In hook_init if we enable cache page in "configuration>development section" then hook_init not called.then you expired condition not check
  4. (*)Can you add extra feature to selected different time zone rather than default timezone, so that admin can add different inactive time for different timezone of role user
    Like Eg. Multi select functionality.
nixou’s picture

Hi ajayNimbolkar,
Thanks for your review.

My answers :

  1. It's because your forget to add the module name after the clone command, see the description above.
  2. Yes you're right ! It's done.
  3. I don't agree : cache page is for anonymous user only, a logged user will be pass through hook_init() and will be logout.
  4. Good idea, as this is not blocking and I have not enough time to implement it now, I added it to the roadmap on the module's main page.
ajaynimbolkar’s picture

Status: Needs review » Needs work
nixou’s picture

Status: Needs work » Needs review

jayNimbolkar,
I anwered your questions here : https://www.drupal.org/node/2757621#comment-11358145.

I need now another review.

Thanks for your help.

PA robot’s picture

Status: Needs review » Needs work
nixou’s picture

Everything seems to be fine with git clone/pareview.

Don't understand the problem here.

Set back to needs review.

nixou’s picture

Status: Needs work » Needs review
visabhishek’s picture

Status: Needs review » Reviewed & tested by the community

Module looks good and working for me. I think we don't have any blocker points. So i am marking as RTBC.

dscl’s picture

RTBC +1

Useful module. I see no blockers now, just a few comments.

When setting a timeslot, the final schedule is excluded from the allowed period.
e.g.: In case the admin sets

Authorize access between Monday from 7:00pm to 8:00pm

The user will be only able to login until 7:59pm. If the user tries to login at 8:00pm, he will see the error message. (same for expiration).
In my opinion it should be either documented or changed to only block or expire in the next minute.

user_access_timeslot.api.php - not sure why you have some custom code inside the hook definitions. They are not necessary and may be confusing, I would suggest you to leave just the definitions and document the use.

The function _user_access_timeslot_get_expiration_date() is a bit confusing to read, but not an issue.

nixou’s picture

Hi dscl,
Thanks for your review.

I'll check the extra minute problem as soon a I have time for it.

About the API file, I think it's useful to have some example of use in the hook itself : this show how to use it.
Most of contrib module do this and, personally, I prefer to see this kind of example when I use a contrib module.

nixou’s picture

Hi,

Since the module is Rtbc for 2 month, is it possible to have a final validation by drupal.org git administrator please ?

Or maybe I'm missing something in the review process and I have something to do before the final validation ?

Thanks.

nixou’s picture

Priority: Normal » Critical
klausi’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your contribution, Léo!

I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!

Thanks, 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.

Thanks to the dedicated reviewer(s) as well.

nixou’s picture

Thanks Klausi and all the reviewers !

Status: Fixed » Closed (fixed)

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