We should have the ability to control on what pages the nodejs module should be enabled.

Comments

gitesh.koli’s picture

StatusFileSize
new3.55 KB

Attaching the patch for the same.

julien’s picture

I see where you coming from for this feature. Need to check with Beejeebus if it needs to be on both D7 and D6 version.

gitesh.koli’s picture

StatusFileSize
new3.49 KB

Latest version of the patch attached.

danielm’s picture

No news?

Anonymous’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

yeah, this looks like a useful feature.

moving to 7.x, where it should go first, then will backport to 6.x.

gitesh.koli’s picture

StatusFileSize
new2.6 KB

Uploading the D7 version of the patch.

Anonymous’s picture

Status: Active » Needs work

gitesh - thanks for the updated patch. can you prepare it from within the module directory, not the site root?

a couple of other things:

- i'd like this to default to always on, with a blacklist, rather than always off, with a whitelist
- the description needs to make very clear that we're going to match system paths, not aliases, so maybe include an example of 'node/23' vs 'content/my-page', which is the most common version of system paths vs aliases

oh, and make sure to set to "Needs review" :-)

gitesh.koli’s picture

Status: Needs work » Needs review
StatusFileSize
new2.34 KB

Justin,

I created the patch from within the module directory.

I think people who use this module would prefer a whitelist.
I am thinking maybe we should just add a dropdown for users to select if they want to treat the URL's as a whitelist or a blacklist.

The function we have used to match path's is a built in drupal function and it does match path aliases.

blog/123 would work. There is description on that field about the same.

-Gitesh

Anonymous’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

  • Commit bdfc8af on 7.x-1.x, auth-refactor, 8.x-1.x, 8.x-1.x-head by beejeebus:
    #1302880 by gitesh.koli: make it possible to control which pages socket...