Return-Path: X-Original-To: apmail-incubator-allura-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1DEF112C2 for ; Fri, 21 Feb 2014 15:35:37 +0000 (UTC) Received: (qmail 85549 invoked by uid 500); 21 Feb 2014 15:35:37 -0000 Delivered-To: apmail-incubator-allura-dev-archive@incubator.apache.org Received: (qmail 85537 invoked by uid 500); 21 Feb 2014 15:35:37 -0000 Mailing-List: contact allura-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-dev@incubator.apache.org Received: (qmail 85529 invoked by uid 99); 21 Feb 2014 15:35:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 15:35:37 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of noreply@sourceforge.net designates 216.34.181.60 as permitted sender) Received: from [216.34.181.60] (HELO smtp.ch3.sourceforge.com) (216.34.181.60) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 15:35:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.com; s=x; h=Date:Message-ID:Subject:Reply-To:From:To:MIME-Version:Content-Type; bh=rtqrgCPSMjTnWd2HSWudRQOTNp+ab6jX8dJgPoSkZ14=; b=sAZkEDmKntw32WfIwzHyZXpkOHCI5u34CeFCW3EN0A5PZ3ROYjvxZIDOdH7Xj3xm2UgV+VPMS3+3siGFbKxIapMO3ae78UaMtjx6BFtMVFWyBeRcaAbUxSpkxCOBQZsSdWBcYSLGSLzA2v4RbNR8mr28YJ07lGrn/kCk0SObudk=; Received: from localhost ([127.0.0.1] helo=sfs-alluradaemon-1.v29.ch3.sourceforge.com) by sfs-alluradaemon-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WGs86-00064o-M1 for allura-dev@incubator.apache.org; Fri, 21 Feb 2014 15:35:10 +0000 Content-Type: multipart/related; boundary="===============2338362624600746259==" MIME-Version: 1.0 To: allura-dev@incubator.apache.org From: "Dave Brondsema" Reply-To: "Ticket 7199" <7199@tickets.allura.p.re.sf.net> Subject: [allura:tickets] #7199 filter projects in create-allura-sitemap.py Message-ID: <5307722481b24b01b25ca18e.tickets@allura.p.sourceforge.net> Date: Fri, 21 Feb 2014 15:35:10 +0000 X-Virus-Checked: Checked by ClamAV on apache.org --===============2338362624600746259== Content-Type: multipart/alternative; boundary="===============5672703977402101282==" MIME-Version: 1.0 --===============5672703977402101282== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit --- ** [tickets:#7199] filter projects in create-allura-sitemap.py** **Status:** open **Created:** Fri Feb 21, 2014 03:35 PM UTC by Dave Brondsema **Last Updated:** Fri Feb 21, 2014 03:35 PM UTC **Owner:** nobody scripts/create-allura-sitemap.py should omit deleted projects and should have commandline option for neighborhood(s) to exclude. `chunked_find` can take a query param, so that should work. The query shouldn't need to be indexed (and a $nin is even fine) since `chunked_find` uses the `_id` index to go through all the records. (If you're up for it, investigate the first time chunked_find is called in which max_id is None and thus _id won't be in the query but is in the sort - will that perform poorly? need to have an initial max_id?) Also, `` shouldn't just use the current date all the time, it should use the project mod date. --- Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. --===============5672703977402101282== MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

[tickets:#7199] filter projects in create-allura-sitemap.py

Status: open
Created: Fri Feb 21, 2014 03:35 PM UTC by Dave Brondsema
Last Updated: Fri Feb 21, 2014 03:35 PM UTC
Owner: nobody

scripts/create-allura-sitemap.py should omit deleted projects and should have commandline option for neighborhood(s) to exclude. chunked_find can take a query param, so that should work. The query shouldn't need to be indexed (and a $nin is even fine) since chunked_find uses the _id index to go through all the records. (If you're up for it, investigate the first time chunked_find is called in which max_id is None and thus _id won't be in the query but is in the sort - will that perform poorly? need to have an initial max_id?)

Also, <lastmod> shouldn't just use the current date all the time, it should use the project mod date.


Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

--===============5672703977402101282==-- --===============2338362624600746259==--