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

Update create support ticket endpoint #996

Merged
merged 3 commits into from
Aug 8, 2024
Merged

Conversation

AgaDufrat
Copy link
Contributor

@AgaDufrat AgaDufrat commented Jul 26, 2024

What

Add additional Zendesk ticket attributes:

  • priority
  • requester
  • collaborators
  • custom_fields
  • ticket_form_id

Why

Those are required by apps that create Zendesk tickets:

Testing

Tested in integration with the most complex ticket.

alphagov/support#1422


⚠️ This repo is Continuously Deployed: make sure you follow the guidance

Follow these steps if you are doing a Rails upgrade.

To help distinguish better between Support API call attributes and Zendesk
ticket attributes. The later are specific to the vendor and their API spec so
makes sense to include the name of the vendor.

It follows the pattern of PageImprovement.
No point sending properties which are `nil`
Those are needed by the Support app.  See:
https://github.com/alphagov/support/blob/fdf8968/app/models/zendesk/zendesk_tickets.rb

Since we use keys that points to a hash we also need need to specify which
attributes inside the hash should be permitted to avoid
ActionController::UnfilteredParameters error.
@AgaDufrat AgaDufrat force-pushed the update-create-support-ticket branch from 76dfe64 to 713afb4 Compare August 7, 2024 11:34
@AgaDufrat AgaDufrat marked this pull request as ready for review August 8, 2024 07:36
@AgaDufrat AgaDufrat merged commit d91eb58 into main Aug 8, 2024
9 checks passed
@AgaDufrat AgaDufrat deleted the update-create-support-ticket branch August 8, 2024 07:39
@AgaDufrat AgaDufrat self-assigned this Aug 12, 2024
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.

2 participants