Skip to content

Commit

Permalink
Merge pull request #585 from prefeiturasp/story/110690
Browse files Browse the repository at this point in the history
Story/110690
  • Loading branch information
FernandoGroeler authored Dec 21, 2023
2 parents 64abdf8 + 1463c62 commit ad5a132
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 133 deletions.
2 changes: 2 additions & 0 deletions scripts/V136__CRIAR_FK_QUESTAO_ID_TABELA_ALTERNATIVA.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
delete from alternativa where not exists (select id from questao where id = questao_id);
ALTER TABLE public.alternativa ADD CONSTRAINT questao_id_fk FOREIGN KEY (questao_id) REFERENCES public.questao(id);
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
delete from questao_aluno_resposta where not exists (select 1 from alternativa a where a.id = alternativa_id) and alternativa_id is not null
ALTER TABLE public.questao_aluno_resposta ADD CONSTRAINT alternativa_id_fk FOREIGN KEY (alternativa_id) REFERENCES public.alternativa(id);
26 changes: 0 additions & 26 deletions src/SME.SERAp.Prova.Api/Extensions/WarmUpTask.cs

This file was deleted.

7 changes: 0 additions & 7 deletions src/SME.SERAp.Prova.Api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,6 @@ public void ConfigureServices(IServiceCollection services)
services.AddSingleton(servicoTelemetria);
RegistraMvc.Registrar(services, serviceProvider);
DapperExtensionMethods.Init(servicoTelemetria);

IniciarPropagacaoCache(services);
}

private static void IniciarPropagacaoCache(IServiceCollection services)
{
services.AddStartupTask<WarmUpCacheTask>();
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
Expand Down

This file was deleted.

88 changes: 0 additions & 88 deletions src/SME.SERAp.Prova.Aplicacao/UseCase/PropagacaoCacheUseCase.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/SME.SERAp.Prova.Dominio/Entidades/Prova.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ public Prova(long id, string descricao,DateTime? inicioDownload, DateTime inicio
public long? DisciplinaId { get; set; }
public bool FormatoTai { get; set; }
public ProvaFormatoTaiItem? ProvaFormatoTaiItem { get; set; }

}
}
1 change: 0 additions & 1 deletion src/SME.SERAp.Prova.Infra/Cache/CacheChave.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public static string ObterChave(string chave, params object[] parametros)
return string.Format(chave, parametros);
}

public const string CachePropagado = "cache-propagado";
/// <summary>
/// Questões resumidas da prova
/// 0 - Prova Id
Expand Down
1 change: 0 additions & 1 deletion src/SME.SERAp.Prova.IoC/RegistraDependencias.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ private static void RegistrarCasosDeUso(IServiceCollection services)
services.TryAddScoped<IObterContextoProvaPorIdUseCase, ObterContextoProvaPorIdUseCase>();
services.TryAddScoped<IObterContextosProvasPorProvaIdUseCase, ObterContextosProvasPorProvaIdUseCase>();
services.TryAddScoped<ISincronizarQuestaoAlunoRespostaUseCase, SincronizarQuestaoAlunoRespostaUseCase>();
services.TryAddScoped<IPropagacaoCacheUseCase, PropagacaoCacheUseCase>();
services.TryAddScoped<IIncluirDownloadProvaAlunoUseCase, IncluirDownloadProvaAlunoUseCase>();
services.TryAddScoped<IExcluirDownloadProvaAlunoUseCase, ExcluirDownloadProvaAlunoUseCase>();
services.TryAddScoped<IObterProvasAnterioresAreaEstudanteUseCase, ObterProvasAnterioresAreaEstudanteUseCase>();
Expand Down

0 comments on commit ad5a132

Please sign in to comment.