Closed Bug 539733 Opened 15 years ago Closed 13 years ago

Individual persona json file images not pointing to cdn

Categories

(Websites Graveyard :: getpersonas.com, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: rdoherty, Unassigned)

Details

https://www.getpersonas.com/static/3/3/33/index_1.json

Each persona has a json file that needs to point to images on the cdn (personas-cdn.mozilla.net)
Target Milestone: 2.2 → 2.3
Toby, is there any easy way to regenerate every json file for all personas?
Not sure if this is in the current repository, but there used to be a migration.php script. It looked like this:

	require_once 'server/lib/personas_constants.php';
	require_once 'server/lib/personas_functions.php';
	require_once 'server/lib/storage.php';

	$db = new PersonaStorage();

	$ids = $db->get_all_active_ids();
	
	foreach ($ids as $id)
	{
		echo "$id\n";
		$persona = $db->get_persona_by_id($id);
		file_put_contents(make_persona_storage_path($id) . '/index_1.json', json_encode(extract_record_data($persona, null, true)));
	}
Considering that this will affect all persona json files, I'm bumping this to after 3.6. It shouldn't have any adverse affects since we can change it soon after.
Target Milestone: 2.3 → 2.4
Target Milestone: 2.4 → 2.5
Target Milestone: 2.5 → 2.6
Target Milestone: 2.6 → 2.7
Target Milestone: 2.7 → ---
If we still need these files when we move to AMO, we'll handle this then.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.