We need to be able to test parsing project stats with edgecast and that changes this regex, rather then hacking the module, putting this data in a $conf var, makes it easy to change on the fly. Due to how edgecast logs look, no one else, unless they use edgecast, would need what we would need to change this regex to.

    $regex = variable_get('updates_regex','@\[([^\]]+)\] "?(?:GET|HEAD) ' . $updates_url . '([^/]+)/([^\?]+)\?([^ ]+) @');

That should work for sites don't define the var in settings.php. D.O will need to hardcode the value of updates_url

CommentFileSizeAuthor
#9 2282043-13.patch1.04 KBbasic
updates_var_regex.txt1.02 KBmlhess
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mlhess’s picture

Issue summary: View changes
dww’s picture

Status: Active » Postponed (maintainer needs more info)

Can you please update the summary with a statement of a problem this change would solve? I don't have enough context to know what we're actually trying to change here and why.

Thanks!
-Derek

mlhess’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Needs review

Update summary per dww's request (at 30,000 feet, please excuse typos)

drumm’s picture

And we don't want a whole deployment any time the log format changes.

tvn’s picture

dww’s picture

Status: Needs review » Needs work

Cool, that makes sense. Thanks for the clarifications. The one thing I'm still not clear on is what's meant by this:

"D.O will need to hardcode the value of updates_url"

Otherwise, needs work since the variable name should be properly prefixed with "project_usage".

drumm’s picture

We will hard-code $conf['project_usage_updates_url'] in Drupal.org's settings.php to handle the format EdgeCast gives us.

drumm’s picture

I mean $conf['project_usage_updates_regex'], or whatever it gets named.

basic’s picture

FileSize
1.04 KB

Updated patch with corrected namespace

  • Commit 9501ff3 on 7.x-2.x authored by basic, committed by drumm:
    #2282043 Create a variable for regex in updating stats on project usage
    
drumm’s picture

Status: Needs work » Fixed

Looks good, committed. Will be deployed today.

Status: Fixed » Closed (fixed)

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