-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feat(ticketing) Use Freshdesk #3668
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Added Freshdesk Variables
* instantiate freshdesk client * create ticket with freshdesk client * add frehdesk client * add freshdesk to fixtures * refactor tests for Freshdesk * remove redundant type hint * change decorators to context managers * fix mock setup * add type hints * fix freshdesk ticket submission * rename FreshDesk client variable * rename ticket client variable * update ticket handling integration * refactor integration with ticket handler * refactor models for attachments and responses * refactor for Freshdesk integration * refactor attachment hanlding for Freshdesk * reformat * inject Freshdesk client dependency * use OrdersAPI instance * initialize ticket handler and OrdersAPI * reformat * rename Freshdesk client variable * add error handling and logging * refactor error handling * remove commentsx * remove api variable * remove logging at the info level * replace osticket with freshdesk * update ticket mock creation * use https protocol * remove _url method * remove comments * correct a typo * use file attachment method from utils * move out attachment processing * add attachment handling * check attributes values * return single attachment * fix temp attachment method * remove attachment model --------- Co-authored-by: AhmedAmin-ki <[email protected]> Co-authored-by: Vincent Janvid <[email protected]>
* add multipart conversion * add custom fields * handle HTTPError response * add type, tags, and custom fields * remove comment * use list comprehension for multipart * remove env from FreshdeskClient * remove env constructor * add env to TicketHandler * set freshdesk env to Stage * shift env to TicketHandler * remove irelevant multipart data conversion * add multipart conversion method * use multipart in ticket creation * remove env from freshdesk_client * use prepare attachment * use TicketCreate model * update TicketHandler parameters * refactor ticket connection method * implement ticket reply functionality * remove user_mail * remove order_email_id from FreshdeskClient * update TicketHandler FreshdeskClient parameters * remove comment * remove FormDataRequest * remove: email * reformat * mock replying to tickets * reformat * remove osticket * cancel changes * revert back to using emails * remove mail from replies * add from_email to reply * use ReplyCreate model * add ReplyCreate model * add detailed error logging * integrate ReplyCreate model * remove user_mail from connec * use f-string --------- Co-authored-by: AhmedAmin-ki <[email protected]> Co-authored-by: Ahmed Amin <[email protected]> Co-authored-by: ahdamin <[email protected]>
islean
reviewed
Aug 30, 2024
islean
reviewed
Aug 30, 2024
islean
reviewed
Aug 30, 2024
Vince-janv
approved these changes
Aug 30, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Some comments about class instantiation
Co-authored-by: Isak Ohlsson Ångnell <[email protected]>
Co-authored-by: Isak Ohlsson Ångnell <[email protected]>
Co-authored-by: Isak Ohlsson Ångnell <[email protected]>
Co-authored-by: Vincent Janvid <[email protected]>
Quality Gate passedIssues Measures |
@Vince-janv please review and test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Changed
osticket
withfreshdesk