Skip to content

Conversation

@dedenbangkit
Copy link
Member

@dedenbangkit dedenbangkit commented Jun 28, 2022

00:10 rtmis ▶️ feature/523-serializer-fixes
λ ag -G 'serializers.py' "\n    def get_"
backend/api/v1/v1_jobs/serializers.py
31:        choices=[JobTypes.FieldStr[d] for d in JobTypes.FieldStr]))
32:    def get_type(self, instance):
36:        choices=[JobStatus.FieldStr[d] for d in JobStatus.FieldStr]))
37:    def get_status(self, instance):

backend/api/v1/v1_data/serializers.py
163:    @extend_schema_field(AnswerHistorySerializer(many=True))
164:    def get_history(self, instance):
172:    @extend_schema_field(OpenApiTypes.ANY)
173:    def get_value(self, instance: Answers):
203:    @extend_schema_field(OpenApiTypes.STR)
204:    def get_created_by(self, instance: FormData):
207:    @extend_schema_field(OpenApiTypes.STR)
208:    def get_updated_by(self, instance: FormData):
213:    @extend_schema_field(OpenApiTypes.STR)
214:    def get_created(self, instance: FormData):
217:    @extend_schema_field(OpenApiTypes.STR)
218:    def get_updated(self, instance: FormData):
224:            'created_by': serializers.CharField()}))
225:    def get_pending_data(self, instance: FormData):
263:    @extend_schema_field(CustomListField)
264:    def get_marker(self, instance):
270:    @extend_schema_field(OpenApiTypes.INT)
271:    def get_shape(self, instance: FormData):
296:    @extend_schema_field(OpenApiTypes.INT)
297:    def get_value(self, instance: QuestionOptions):
372:    @extend_schema_field(AnswerHistorySerializer(many=True))
373:    def get_history(self, instance):
382:    @extend_schema_field(OpenApiTypes.ANY)
383:    def get_value(self, instance: Answers):
404:    @extend_schema_field(OpenApiTypes.STR)
405:    def get_created_by(self, instance: PendingDataBatch):
408:    @extend_schema_field(OpenApiTypes.INT)
409:    def get_total_data(self, instance: PendingDataBatch):
412:    @extend_schema_field(CommonDataSerializer)
413:    def get_form(self, instance: PendingDataBatch):
419:    @extend_schema_field(CommonDataSerializer)
420:    def get_administration(self, instance: PendingDataBatch):
426:    @extend_schema_field(OpenApiTypes.STR)
427:    def get_created(self, instance: PendingDataBatch):
438:                          }))
439:    def get_approver(self, instance: PendingDataBatch):
493:    @extend_schema_field(OpenApiTypes.STR)
494:    def get_created_by(self, instance: PendingFormData):
497:    @extend_schema_field(OpenApiTypes.STR)
498:    def get_created(self, instance: PendingFormData):
501:    @extend_schema_field(OpenApiTypes.BOOL)
502:    def get_pending_answer_history(self, instance: PendingFormData):
687:    @extend_schema_field(CommonDataSerializer)
688:    def get_form(self, instance: PendingDataBatch):
694:    @extend_schema_field(CommonDataSerializer)
695:    def get_administration(self, instance: PendingDataBatch):
706:                          }))
707:    def get_file(self, instance: PendingDataBatch):
718:    @extend_schema_field(OpenApiTypes.INT)
719:    def get_total_data(self, instance: PendingDataBatch):
730:                          many=True))
731:    def get_approvers(self, instance: PendingDataBatch):
743:    @extend_schema_field(OpenApiTypes.DATE)
744:    def get_created(self, instance):
747:    @extend_schema_field(OpenApiTypes.DATE)
748:    def get_updated(self, instance):
766:        choices=[QuestionTypes.FieldStr[d] for d in QuestionTypes.FieldStr]))
767:    def get_type(self, instance):
770:    @extend_schema_field(OpenApiTypes.ANY)
771:    def get_value(self, instance: PendingAnswers):
806:                          }))
807:    def get_user(self, instance: PendingDataBatchComments):
813:    @extend_schema_field(OpenApiTypes.DATE)
814:    def get_created(self, instance: PendingDataBatchComments):

backend/api/v1/v1_forms/serializers.py
39:    @extend_schema_field(ListOptionSerializer(many=True))
40:    def get_option(self, instance: Questions):
49:    @extend_schema_field(OpenApiTypes.STR)
50:    def get_type(self, instance: Questions):
61:                          }))
62:    def get_api(self, instance: Questions):
80:    @extend_schema_field(GeoFormatSerializer)
81:    def get_center(self, instance: Questions):
104:    @extend_schema_field(ListQuestionSerializer(many=True))
105:    def get_question(self, instance: QuestionGroup):
129:                          many=True))
130:    def get_children(self, instance: Administration):
142:    @extend_schema_field(ListQuestionGroupSerializer(many=True))
143:    def get_question_group(self, instance: Forms):
165:        choices=[FormTypes.FieldStr[d] for d in FormTypes.FieldStr]))
166:    def get_type_text(self, instance):
178:    @extend_schema_field(ListOptionSerializer(many=True))
179:    def get_option(self, instance: Questions):
192:        ))
193:    def get_type(self, instance: Questions):
216:    @extend_schema_field(FormDataListQuestionSerializer(many=True))
217:    def get_question(self, instance: QuestionGroup):
230:    @extend_schema_field(FormDataQuestionGroupSerializer(many=True))
231:    def get_question_group(self, instance: Forms):
367:    @extend_schema_field(OpenApiTypes.STR)
368:    def get_name(self, instance: SystemUser):
381:    @extend_schema_field(FormApproverUserSerializer(many=True))
382:    def get_user(self, instance: Administration):
389:    @extend_schema_field(CommonDataSerializer)
390:    def get_administration(self, instance: Administration):
393:    @extend_schema_field(FormApproverUserListSerializer(many=True))
394:    def get_user_list(self, instance: Administration):

backend/api/v1/v1_users/serializers.py
31:    @extend_schema_field(OpenApiTypes.STR)
32:    def get_name(self, instance: OrganisationAttribute):
43:    @extend_schema_field(OrganisationAttributeSerializer(many=True))
44:    def get_attributes(self, instance: Organisation):
161:    @extend_schema_field(ListAdministrationChildrenSerializer(many=True))
162:    def get_children(self, instance: Administration):
172:    @extend_schema_field(OpenApiTypes.STR)
173:    def get_children_level_name(self, instance: Administration):
325:    @extend_schema_field(UserAdministrationSerializer)
326:    def get_administration(self, instance: SystemUser):
330:    @extend_schema_field(OrganisationSerializer)
331:    def get_organisation(self, instance: SystemUser):
334:    @extend_schema_field(UserRoleSerializer)
335:    def get_role(self, instance: SystemUser):
341:    @extend_schema_field(OpenApiTypes.STR)
342:    def get_invite(self, instance: SystemUser):
345:    @extend_schema_field(UserFormSerializer(many=True))
346:    def get_forms(self, instance: SystemUser):
387:    @extend_schema_field(UserAdministrationSerializer)
388:    def get_administration(self, instance: SystemUser):
392:    @extend_schema_field(OrganisationSerializer)
393:    def get_organisation(self, instance: SystemUser):
396:    @extend_schema_field(UserRoleSerializer)
397:    def get_role(self, instance: SystemUser):
403:    @extend_schema_field(OpenApiTypes.STR)
404:    def get_name(self, instance):
407:    @extend_schema_field(UserFormSerializer(many=True))
408:    def get_forms(self, instance: SystemUser):
412:    @extend_schema_field(OpenApiTypes.INT)
413:    def get_last_login(self, instance):
454:    @extend_schema_field(OrganisationSerializer)
455:    def get_organisation(self, instance: SystemUser):
458:    @extend_schema_field(UserApprovalAssignmentSerializer(many=True))
459:    def get_approval_assignment(self, instance: SystemUser):
463:    @extend_schema_field(UserFormSerializer(many=True))
464:    def get_forms(self, instance: SystemUser):
468:    @extend_schema_field(OpenApiTypes.INT)
469:    def get_pending_approval(self, instance: SystemUser):
473:    @extend_schema_field(OpenApiTypes.INT)
474:    def get_data(self, instance: SystemUser):
477:    @extend_schema_field(OpenApiTypes.INT)
478:    def get_pending_batch(self, instance: SystemUser):

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 89.085% when pulling 094f6d2 on feature/523-serializer-fixes into cac259f on develop.

@dedenbangkit dedenbangkit merged commit 468a111 into develop Jun 28, 2022
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

Successfully merging this pull request may close these issues.

3 participants