Esempio n. 1
0
def build_tag_models(db_session=None):
    """Builds the intensive tag recommandation models."""
    # incident model
    incidents = incident_service.get_all(db_session=db_session).all()
    log.debug("Starting to build the incident/tag model...")
    build_model(incidents, "incident")
    log.debug("Successfully built the incident/tag model.")
Esempio n. 2
0
def build_tag_models(db_session: SessionLocal, project: Project):
    """Builds the intensive tag recommendation models."""
    # incident model
    incidents = incident_service.get_all(db_session=db_session,
                                         project_id=project.id).all()
    log.debug("Starting to build the incident/tag model for ...")
    build_model(incidents, project.organization.slug, project.slug, "incident")
    log.debug("Successfully built the incident/tag model.")