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

71787 CIE VAOS Appointment Serializer #16304

Merged
merged 7 commits into from
Apr 16, 2024

Conversation

kanchanasuriya
Copy link
Contributor

Summary

  • Serializer implementation for VAOS appointment data

Related issue(s)

Testing done

  • New code is covered by unit tests

What areas of the site does it impact?

(Describe what parts of the site are impacted andifcode touched other areas)
NA

Acceptance criteria

  • I added unit tests for each feature (if applicable).
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs

@kanchanasuriya kanchanasuriya requested review from a team as code owners April 11, 2024 17:56
Copy link

github-actions bot commented Apr 11, 2024

1 Warning
⚠️ This PR changes 268 LoC (not counting whitespace/newlines).

In order to ensure each PR receives the proper attention it deserves, we recommend not exceeding
200. Expect some delays getting reviews.

File Summary

Files

  • modules/check_in/app/serializers/check_in/vaos/vaos_appointment_data_serializer.rb (+19/-0)

  • modules/check_in/spec/serializers/vaos/vaos_appointment_data_serializer_spec.rb (+249/-0)

    Note: We exclude files matching the following when considering PR size:

    *.csv, *.json, *.tsv, *.txt, Gemfile.lock, app/swagger, modules/mobile/docs, spec/fixtures/, spec/support/vcr_cassettes/, modules/mobile/spec/support/vcr_cassettes/, db/seeds, modules/vaos/app/docs, modules/meb_api/app/docs, modules/appeals_api/app/swagger/, *.bru
    

Big PRs are difficult to review, often become stale, and cause delays.

Generated by 🚫 Danger

@va-vfs-bot va-vfs-bot temporarily deployed to 71787_CIE_VAOS_Appointment_Serializer/main/main April 11, 2024 18:33 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to 71787_CIE_VAOS_Appointment_Serializer/main/main April 11, 2024 19:35 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to 71787_CIE_VAOS_Appointment_Serializer/main/main April 15, 2024 16:21 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to 71787_CIE_VAOS_Appointment_Serializer/main/main April 16, 2024 15:51 Inactive

let(:vaos_appointment_data) do
{
data: [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need to put the whole payload here to test the serializer, or can we trim it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought of having the real sample data received from VAOS service

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's almost 300 lines of the payload, that are IMHO unnecessary. I would suggest trimming it and keeping the parts that are really needed to test the serializer and trimming the rest.

Copy link
Contributor Author

@kanchanasuriya kanchanasuriya Apr 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trimmed test data further to reduce the line of code in 7188cf.

@va-vfs-bot va-vfs-bot temporarily deployed to 71787_CIE_VAOS_Appointment_Serializer/main/main April 16, 2024 17:21 Inactive
@kanchanasuriya kanchanasuriya merged commit 3345419 into master Apr 16, 2024
20 checks passed
@kanchanasuriya kanchanasuriya deleted the 71787_CIE_VAOS_Appointment_Serializer branch April 16, 2024 21:43
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