Closed
Bug 859431
Opened 13 years ago
Closed 13 years ago
Problem with job that updates personas -> AMO
Categories
(addons.mozilla.org Graveyard :: Maintenance Scripts, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
2013-07-11
People
(Reporter: rfradinho, Assigned: cvan)
References
Details
Attachments
(1 file)
|
234 bytes,
text/plain
|
Details |
Hello,
There is an ETL process that updates addons_mozilla_org.personas.
This was done as part of Bug 555233 and Bug 602034.
Currently the process is broken because the table column licence_id was renamed to licence.
I need a confirmation that that is the only required change on the update process.
I've attached the SQL query used to do the select on Personas DB.
| Reporter | ||
Updated•13 years ago
|
Flags: needinfo?
| Assignee | ||
Updated•13 years ago
|
Blocks: greater-percona
Priority: -- → P1
| Assignee | ||
Comment 1•13 years ago
|
||
Took a look, and this should work:
--- before.diff 2013-04-08 12:46:18.000000000 -0700
+++ after.diff 2013-04-08 12:46:24.000000000 -0700
@@ -2,7 +2,7 @@
id as persona_id,
movers,
IF(popularity is null, 0, popularity) as popularity,
- IF(license='cc', 1035, 1034) AS license_id
+ IF(license='cc', 8, 7) AS license
FROM personas.personas
where status = 1
and name is not null
Flags: needinfo?
| Reporter | ||
Comment 2•13 years ago
|
||
Closing BUG:
SQL was updated on 2013-04-08 according to the proposed change.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Assignee: nobody → cvan
Target Milestone: --- → 2013-07-11
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•