Skip to content

FDF 133550 forms service class separation#27391

Merged
wayne-weibel merged 3 commits intomasterfrom
fdf-133550-forms-service-separation
Mar 31, 2026
Merged

FDF 133550 forms service class separation#27391
wayne-weibel merged 3 commits intomasterfrom
fdf-133550-forms-service-separation

Conversation

@wayne-weibel
Copy link
Copy Markdown
Contributor

@wayne-weibel wayne-weibel commented Mar 27, 2026

Summary

  • This work is behind a feature toggle (flipper): NO
    separate forms service into a schema and template service - improve code clarity and monitoring

Related issue(s)

[FDF] Forms service class separation

Testing done

  • New code is covered by unit tests
    made requests from ruby console in local environment

What areas of the site does it impact?

fully digital forms

Acceptance criteria

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No error nor warning in the console.
  • Events are being sent to the appropriate logging solution
  • Documentation has been updated (link to documentation)
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Feature/bug has a monitor built into Datadog (if applicable)

Comment on lines -30 to -32
rescue => e
Rails.logger.error('Digital Forms API - unexpected error', { message: e.message })
render json: { error: 'Internal server error' }, status: :internal_server_error
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Any additional errors are captured by ApplicationsController, so this is unneeded
app/controllers/application_controller.rb
app/controllers/concerns/exception_handling.rb

Copy link
Copy Markdown
Contributor

@ARPerry87 ARPerry87 left a comment

Choose a reason for hiding this comment

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

Nice decoupling. Also like to see how modular everything is now. Looks great to me!

@wayne-weibel wayne-weibel marked this pull request as ready for review March 30, 2026 20:10
@wayne-weibel wayne-weibel requested review from a team as code owners March 30, 2026 20:10
@wayne-weibel wayne-weibel merged commit 35a149a into master Mar 31, 2026
45 of 46 checks passed
@wayne-weibel wayne-weibel deleted the fdf-133550-forms-service-separation branch March 31, 2026 13:49
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