Create DistroSeriesDifferences via script

Bug #623391 reported by Michael Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Jeroen T. Vermeulen

Bug Description

For:

https://dev.launchpad.net/LEP/DerivativeDistributions

we will need some sort of job/cronjob that queries for all packages that are different between a derived distroseries and its parent series, and creates/updates DistroSeriesDifference records for those differences.

Related branches

summary: - DistroSeriesDifferences need to be created by a script
+ Create DistroSeriesDifferences via script
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Jeroen T. Vermeulen (jtv)
milestone: none → 11.04
tags: added: derivation
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

I'm very glad you're fixing this, and my first thought about your approach was "oh great!"

But I'm having two second thoughts as well.

One of these is: the "Or" in the vocab's central query is a performance hazard. "OR" of ten is. The TeamParticipation table makes everyone a member of themselves, so the transitive-ownership check will also show all direct-ownership cases. Yet the query plan probably won't be able to avoid fetching data for the transitive check, so you may be getting one query for the price of two.

The other is: the change is pretty fundamental to the vocabulary. If the parameter you're passing is always going to be a literal, why not make this a separate vocab and use inheritance to express the commonality? It also means you don't have to kludge around the difference in query conditions.

Putting these two together, I would say: keep the current dictionary as it is. Create a separate one that's generalized for team-owned branches. It's going to be faster and easier to read, and maybe someday we'll decide that we don't actually need the direct-ownership one as much as we thought.

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

My last comment was a mistake, and entirely irrelevant here; typed it into the wrong window.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
milestone: 11.04 → 11.03
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

The LOSAs don't have time for the Q/A at the moment, and the script doesn't do quite everything we want (the remaining part not being available yet). We'll have to postpone Q/A; it's not being run yet anyway.

tags: added: qa-untestable
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.