Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registro de conteúdos com diferentes comportamentos conforme tipo do usuário #131

Open
robson-alcantara opened this issue Apr 22, 2023 · 3 comments

Comments

@robson-alcantara
Copy link

robson-alcantara commented Apr 22, 2023

MENU:

Registros de conteúdo > Registros de conteúdos por disciplina

DESCRIÇÃO:

Ao registrar um conteúdo utilizando um perfil de um professor e na disciplina selecionando uma área do conhecimento, o registro é armazenado para uma das disciplinas da área do conhecimento. Quando o registro é feito com um perfil diferente de professor, o registro é armazenada para a área do conhecimento.

AMBIENTE:

  • i-Diario 1.4.1

(registro de um perfil não professor)
image

(registro de um perfil professor)
image

(registros no banco de dados)
image

@edersoares
Copy link
Member

@robson-alcantara quando uma área de conhecimento está com o check "Esta área funciona como agrupador de descritores?" marcado, a mesma gera uma disciplina "fake" para receber frequência e outras informações e não ser vinculado diretamente a uma disciplina descritora (que são inúmeras dentro de uma área de conhecimento quando em educação infantil).

Caso você tenha marcado o check após já fazer alguns lançamentos, é possível que o sistema se "perdeu" porque a configuração da grade curricular mudou.

@robson-alcantara
Copy link
Author

robson-alcantara commented Apr 27, 2023

Log emitido antes de iniciar a execução do index pelo professor:

Started GET "/registros-de-conteudos-por-disciplina" for ::1 at 2023-04-27 16:13:35 -0300
Processing by DisciplineContentRecordsController#index as HTML
Parameters: {"locale"=>"pt-BR"}
Entity Load (29.3ms) SELECT "entities".* FROM "entities" WHERE "entities"."domain" = $1 LIMIT 1 [["domain", "localhost"]]
User Load (24.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 107]]
GeneralConfiguration Load (22.7ms) SELECT "general_configurations".* FROM "general_configurations" ORDER BY "general_configurations"."id" ASC LIMIT 1
Classroom Load (22.9ms) SELECT "classrooms".* FROM "classrooms" WHERE "classrooms"."discarded_at" IS NULL AND "classrooms"."id" = $1 LIMIT 1 [["id", 289]]
UserRole Load (21.6ms) SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT 1 [["id", 281]]
Role Load (23.4ms) SELECT "roles".* FROM "roles" WHERE "roles"."id" = $1 LIMIT 1 [["id", 4]]
Teacher Load (21.2ms) SELECT "teachers".* FROM "teachers" WHERE "teachers"."discarded_at" IS NULL AND "teachers"."id" = $1 LIMIT 1 [["id", 136]]

Discipline Load (20.8ms) SELECT "disciplines".* FROM "disciplines" WHERE "disciplines"."id" = $1 LIMIT 1 [["id", 4]]

Unity Load (18.7ms) SELECT "unities".* FROM "unities" WHERE "unities"."discarded_at" IS NULL AND "unities"."id" = $1 LIMIT 1 [["id", 13]]
Classroom Load (22.6ms) SELECT "classrooms".* FROM "classrooms" WHERE "classrooms"."discarded_at" IS NULL AND "classrooms"."id" = $1 LIMIT 1 [["id", 289]]
KnowledgeArea Load (20.4ms) SELECT "knowledge_areas".* FROM "knowledge_areas" WHERE "knowledge_areas"."discarded_at" IS NULL AND "knowledge_areas"."id" = $1 LIMIT 1 [["id", 23]]
TeacherDisciplineClassroom Exists (21.8ms) SELECT 1 AS one FROM "teacher_discipline_classrooms" WHERE "teacher_discipline_classrooms"."active" = $1 AND "teacher_discipline_classrooms"."discarded_at" IS NULL AND "teacher_discipline_classrooms"."teacher_id" = $2 AND "teacher_discipline_classrooms"."classroom_id" = 289 LIMIT 1 [["active", "t"], ["teacher_id", 136]]

@robson-alcantara
Copy link
Author

robson-alcantara commented Apr 27, 2023

Log emitido antes de iniciar a execução do index pelo admin:

Started GET "/registros-de-conteudos-por-disciplina" for ::1 at 2023-04-27 16:16:01 -0300
Processing by DisciplineContentRecordsController#index as HTML
Parameters: {"locale"=>"pt-BR"}
Entity Load (21.5ms) SELECT "entities".* FROM "entities" WHERE "entities"."domain" = $1 LIMIT 1 [["domain", "localhost"]]
User Load (24.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
Classroom Load (18.9ms) SELECT "classrooms".* FROM "classrooms" WHERE "classrooms"."discarded_at" IS NULL AND "classrooms"."id" = $1 LIMIT 1 [["id", 289]]
UserRole Load (19.1ms) SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT 1 [["id", 1]]
Role Load (18.6ms) SELECT "roles".* FROM "roles" WHERE "roles"."id" = $1 LIMIT 1 [["id", 1]]
Teacher Load (18.7ms) SELECT "teachers".* FROM "teachers" WHERE "teachers"."discarded_at" IS NULL AND "teachers"."id" = $1 LIMIT 1 [["id", 136]]

Discipline Load (17.4ms) SELECT "disciplines".* FROM "disciplines" WHERE "disciplines"."id" = $1 LIMIT 1 [["id", 31]]

Unity Load (22.8ms) SELECT "unities".* FROM "unities" WHERE "unities"."discarded_at" IS NULL AND "unities"."id" = $1 LIMIT 1 [["id", 13]]
IeducarApiSynchronization Exists (19.4ms) SELECT 1 AS one FROM "ieducar_api_synchronizations" WHERE "ieducar_api_synchronizations"."author_id" = $1 AND "ieducar_api_synchronizations"."notified" = $2 LIMIT 1 [["author_id", 1], ["notified", "f"]]
Classroom Load (22.0ms) SELECT "classrooms".* FROM "classrooms" WHERE "classrooms"."discarded_at" IS NULL AND "classrooms"."id" = $1 LIMIT 1 [["id", 289]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants