blob: 9fbdc8eec40af030d07ea6eeac46d4e02e3c3a4e [file] [log] [blame]
# The mapreduce jobs are first ordered by common mapreduce jobs shared between
# modules, followed by the mapreduce jobs specific to the GSoC module and then
# the mapreduce jobs for the GCI module. Within each group, the jobs are
# ordered alphabetically by their name. The jobs corresponding to a module
# will have that module name as the prefix.
mapreduce:
- name: AddProgramToOrgAppRecord
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.add_program_to_org_app_record.process
params:
- name: entity_kind
value: soc.models.org_app_record.OrgAppRecord
- name: ProcessOrgApp
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.process_org_apps.process
params:
- name: entity_kind
value: soc.models.org_app_record.OrgAppRecord
- name: program_key
- name: program_type
- name: ApplyOrgAdmissionDecisions
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: melange.mapreduce.apply_org_admission_decisions.process
params:
- name: program_key
- name: StudentAdmissionEmail
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: summerofcode.mapreduce.student_admission_email.process
params:
- name: program_key
- name: FindDuplicates
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: summerofcode.mapreduce.find_duplicates.process
params:
- name: program_key
- name: CreateProposalRevisionsForProposal
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: summerofcode.mapreduce.create_proposal_revision_model.process
params:
- name: entity_kind
value: summerofcode.models.proposal.Proposal
# GSoC specific mapreduce jobs
- name: ConvertCodeInProfiles
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.convert_profile.convertProfileRolesTxn
params:
- name: entity_kind
value: melange.models.profile.Profile
- name: GSoCConvertOrganizations
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.convert_organizations.convertSOCOrganization
params:
- name: entity_kind
value: soc.mapreduce.convert_organizations.GSoCOrganization
- name: ConvertProgramScopedModel
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.convert_program_scoped_model.process
params:
- name: entity_kind
- name: ConvertSponsorScopedModel
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.convert_sponsor_scoped_model.process
params:
- name: entity_kind
- name: SetProgramId
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.set_program_id.process
params:
- name: entity_kind
- name: GSoCConvertProjectMentors
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_project_mentors.process
params:
- name: entity_kind
value: soc.modules.gsoc.models.project.GSoCProject
- name: GSoCConvertProposal
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.convert_proposal.process
params:
- name: entity_kind
value: soc.modules.gsoc.models.proposal.GSoCProposal
- name: GSoCConvertProject
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.convert_project.process
params:
- name: entity_kind
value: soc.modules.gsoc.models.project.GSoCProject
- name: GSoCConvertStudentInfo
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_student_info.process
params:
- name: entity_kind
value: soc.modules.gsoc.models.profile.GSoCStudentInfo
- name: GSoCMigrateBlobs
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.migrate_blobs.process
params:
- name: entity_kind
value: soc.modules.gsoc.models.profile.GSoCStudentInfo
- name: GSoCUnfreezeOrgs
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.unfreeze_entities.process
params:
- name: entity_kind
value: soc.modules.gsoc.models.organization.GSoCOrganization
- name: GSoCUnfreezeProfiles
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.unfreeze_entities.process
params:
- name: entity_kind
value: soc.modules.gsoc.models.profile.GSoCProfile
# GCI specific mapreduce jobs
- name: GCIConvertOrganizations
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.convert_organizations.convertCIOrganization
params:
- name: entity_kind
value: soc.modules.gci.models.organization.GCIOrganization
- name: GCIAddChangesToComments
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.add_gci_changes_to_comments.process
params:
- name: entity_kind
value: soc.modules.gci.models.comment.GCIComment
- name: program_key
- name: GCIAutoSubscribeToTasks
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.auto_subscribe_to_gci_tasks.process
params:
- name: entity_kind
value: soc.modules.gci.models.task.GCITask
- name: program_key
- name: GCIConvertTaskArbitraryTag
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_gci_task.process_tag
params:
- name: entity_kind
value: soc.modules.gci.models.task.TaskArbitraryTag
- name: GCIConvertTaskDifficultyTag
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_gci_task.process_tag
params:
- name: entity_kind
value: soc.modules.gci.models.task.TaskDifficultyTag
- name: GCIConvertTaskTypeTag
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_gci_task.process_tag
params:
- name: entity_kind
value: soc.modules.gci.models.task.TaskTypeTag
- name: GCIDeleteKeyNameBasedTasks
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_gci_task.process_task_children_delete
params:
- name: entity_kind
value: soc.modules.gci.models.task.GCITask
- name: GCIInsertDummyStudentProfileDataForSafeHarboring
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.gci_insert_dummy_data.process
params:
- name: entity_kind
value: soc.modules.gci.models.profile.GCIStudentInfo
- name: program_key
- name: GCIInitTaskAuthorship
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.init_gci_task_authorship.process
params:
- name: entity_kind
value: soc.modules.gci.models.task.GCITask
- name: GCIPublishTasks
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.publish_gci_tasks.process
params:
- name: entity_kind
value: soc.modules.gci.models.task.GCITask
- name: program_key
- name: GCIUpdateTaskArbitTags
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_gci_task.process_arbit_tags
params:
- name: entity_kind
value: soc.modules.gci.models.task.GCITask
- name: GCIUpdateTaskDifficulties
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_gci_task.process_difficulty
params:
- name: entity_kind
value: soc.modules.gci.models.task.GCITask
- name: GCIUpdateTaskTypes
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_gci_task.process_task_types
params:
- name: entity_kind
value: soc.modules.gci.models.task.GCITask
- name: ConvertUser
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.convert_user.process
params:
- name: entity_kind
value: soc.models.user.User
- name: ConvertGSoCProgram
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_program.process
params:
- name: entity_kind
value: soc.modules.gsoc.models.program.GSoCProgram
- name: ConvertGCIProgram
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.convert_program.process
params:
- name: entity_kind
value: soc.modules.gci.models.program.GCIProgram
- name: ModelPacifier
mapper:
input_reader: mapreduce.input_readers.DatastoreInputReader
handler: soc.mapreduce.model_pacifier.process
params:
- name: entity_kind
- name: NDBModelPacifier
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.model_pacifier.processNDB
params:
- name: entity_kind
# organization conversion related scripts
- name: ConvertProposal
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_organization.convertProposalTxn
params:
- name: entity_kind
value: soc.modules.gsoc.models.proposal.GSoCProposal
- name: ConvertProject
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_organization.convertProjectTxn
params:
- name: entity_kind
value: soc.modules.gsoc.models.project.GSoCProject
- name: ConvertProjectSurveyRecord
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_organization.convertProjectSurveyRecordTxn
params:
- name: entity_kind
value: soc.modules.gsoc.models.project_survey_record.GSoCProjectSurveyRecord
- name: ConvertGradingProjectSurveyRecord
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_organization.convertGradingProjectSurveyRecordTxn
params:
- name: entity_kind
value: soc.modules.gsoc.models.grading_project_survey_record.GSoCGradingProjectSurveyRecord
- name: ConvertStudentInfo
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_organization.convertStudentInfo
params:
- name: entity_kind
value: soc.modules.gsoc.models.profile.GSoCStudentInfo
- name: ConvertTask
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_organization.convertTask
params:
- name: entity_kind
value: soc.modules.gci.models.task.GCITask
- name: ConvertUserToNdb
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_user.convertUser
params:
- name: entity_kind
value: soc.models.user.User
- name: NewUserToUser
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_user.newUserToUser
params:
- name: entity_kind
value: soc.mapreduce.ndb_user.NewUser
- name: ConvertProfileToNdb
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_profile.convertProfile
params:
- name: entity_kind
value: soc.modules.gsoc.models.profile.GSoCProfile
- name: ConvertGSoCProfileDBEntityGroup
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_profile.convertGSoCProfileDBEntityGroup
params:
- name: entity_kind
value: soc.modules.gsoc.models.profile.GSoCProfile
- name: ConvertGSoCProfileNDBEntityGroup
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_profile.convertGSoCProfileNDBEntityGroup
params:
- name: entity_kind
value: soc.modules.gsoc.models.profile.GSoCProfile
- name: ConvertGCIProfileDBEntityGroup
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_profile.convertGCIProfileDBEntityGroup
params:
- name: entity_kind
value: soc.modules.gci.models.profile.GCIProfile
- name: ConvertGCIProfileNDBEntityGroup
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_profile.convertGCIProfileNDBEntityGroup
params:
- name: entity_kind
value: soc.modules.gci.models.profile.GCIProfile
- name: ConvertGCITask
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_profile.convertGCITask
params:
- name: entity_kind
value: soc.modules.gci.models.task.GCITask
- name: ConvertGCIOrg
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_profile.convertGCIOrg
params:
- name: entity_kind
value: soc.modules.gci.models.organization.GCIOrganization
- name: ConvertGCIBulkCreateData
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_profile.convertGCIBulkCreateData
params:
- name: entity_kind
value: soc.modules.gci.models.bulk_create_data.GCIBulkCreateData
- name: RejectOrgAdmins
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.reject_org_admins.processProfile
params:
- name: entity_kind
value: melange.models.profile.Profile
- name: ModelCounter
mapper:
input_reader: mapreduce.input_readers.DatastoreKeyInputReader
handler: soc.mapreduce.ndb_profile.counter
params:
- name: entity_kind