opensupports/tests/init.rb

87 lines
2.6 KiB
Ruby
Raw Normal View History

2016-05-05 04:25:01 +02:00
# LIBRARIES
require 'bacon'
require 'net/http'
2019-01-12 04:38:33 +01:00
require 'net/imap'
require 'net/smtp'
2016-05-05 04:25:01 +02:00
require 'uri'
2020-05-13 07:51:51 +02:00
require 'mysql2'
2016-05-05 04:25:01 +02:00
require 'json'
2016-08-04 06:37:23 +02:00
require 'mechanize'
2018-12-24 01:44:59 +01:00
require 'mailfactory'
2019-01-12 04:38:33 +01:00
require 'mail'
2016-05-05 04:25:01 +02:00
require './libs.rb'
2016-05-15 01:22:46 +02:00
require './scripts.rb'
2016-05-05 04:25:01 +02:00
# TESTS
require './system/init-settings.rb'
require './system/get-settings.rb'
require './system/edit-settings.rb'
2016-05-05 04:25:01 +02:00
require './user/signup.rb'
require './user/login.rb'
2016-07-22 09:44:55 +02:00
require './user/send-recover-password.rb'
require './user/recover-password.rb'
require './user/edit-password.rb'
require './user/edit-email.rb'
require './user/get.rb'
2018-09-28 00:46:30 +02:00
require './user/enable-disable.rb'
2016-08-04 06:37:23 +02:00
require './ticket/create.rb'
2019-10-10 20:24:50 +02:00
require './ticket/seen.rb'
2016-08-04 06:37:23 +02:00
require './ticket/comment.rb'
require './ticket/get.rb'
require './ticket/custom-response.rb'
require './ticket/change-department.rb'
require './ticket/close.rb'
require './ticket/re-open.rb'
2018-10-29 15:32:31 +01:00
require './ticket/delete.rb'
require './staff/invite.rb'
require './staff/get.rb'
2016-12-08 07:21:37 +01:00
require './staff/edit.rb'
require './staff/delete.rb'
require './staff/assign-ticket.rb'
require './staff/un-assign-ticket.rb'
require './staff/get-tickets.rb'
require './staff/get-new-tickets.rb'
require './staff/get-all-tickets.rb'
require './ticket/events.rb'
2016-11-23 02:27:05 +01:00
require './article/topic.rb'
require './article/article.rb'
require './user/get-user.rb'
require './user/ban.rb'
require './user/get-users-test.rb'
require './user/delete.rb'
2016-12-08 07:21:37 +01:00
require './staff/get-all.rb'
require './system/add-department.rb'
require './system/edit-department.rb'
require './system/delete-department.rb'
require './staff/last-events.rb'
2018-12-12 05:23:58 +01:00
# require './system/mail-templates.rb'
require './system/add-api-key.rb'
require './system/delete-api-key.rb'
require './system/get-api-keys.rb'
2019-11-16 21:16:53 +01:00
require './system/disable-registration.rb'
require './system/enable-registration.rb'
require './system/file-upload-download.rb'
require './system/csv-import.rb'
2019-02-14 23:43:22 +01:00
require './ticket/create-tag.rb'
2018-12-12 05:23:58 +01:00
require './ticket/edit-tag.rb'
require './ticket/get-tags.rb'
require './ticket/delete-tag.rb'
2019-02-25 17:34:22 +01:00
require './ticket/add-tag.rb'
require './ticket/delete-tag.rb'
2019-06-27 03:04:56 +02:00
require './ticket/edit-comment.rb'
2020-01-02 13:55:55 +01:00
require './ticket/edit-title.rb'
2020-01-22 18:26:07 +01:00
require './system/custom-fields.rb'
Ticket filters (#795) * Delete one line break in table.js * Add status icon in ticket title * Compare new filters with previous filters * Add ticket query filters * Add departments and priority filters. * Minor style changes in TagSelector and Tag * Add content on selected items Autocomplete component * Delete id prop from autocomplete component * Add DateSelector and DateRange component. * Delete compare function and add arrow orderby icon. * Add dateRange and orderBy filters. * Add minors changes of tabulations * Minors changes of funtion name and constant name * Minors changes of funtion name and constant name part 2. * Transform SearchBox in a controlled component. * Add Autocomplete and DateRange component int FormField. * Add preventDefault event in DropDown. * Create some customs list. * Add TagSelector in FormField. * Add private icon in autocomplete departments filters and correct some errors. * Delete consoleLogs. * Add ANY and TAGS (i18n). * Add search-filters reducer. * Add CLEAR (i18n). * Add clear form button in ticket search. * Correrct titel error in ticket search. * Correrct style submit button in ticket search. * Submit form not change orderBy. * Replace AdminPanelAllTicekts to AdminPanelSearchTicket. * Correct error when query is empty string. * Change form style. * Add show filters button. * Add minors style changes. * Add autors filters first part. * Add autors filters second part. * Apply filters when enter is pressed in searchbox. * Change prop name to node proptype in tag component. * Change search filter actions name. * Change name of render arrow icon in ticketList Component. * Fix an error with Autocomplete component. * Restore demo page and system. * Update ticket list test. * Fix an error with timeout in autocomplete test. * Delete custom ticket list in index.html. * rder the functions in search-filters-reducer. * Fix store undefine in session-action-test. * fix import store in session action test. * Delete unlock icon in ticket list. * Change style in autocomplete component. * Change size of lock icon in ticket list. * Fix error with blacklist in authors autocomplete. * Comment session action test. * Fix test in get-authors.rb and searchTest.php * Add onChange in tag-selector * Fix some bugs and autocomplete authors. * Wip * wip * wip * wip * Fix authors bugs in orderBy filter. * Delete some consoleLogs in autocomplete component. * Fix bug with authors filters when clicked custom list menu. * Fix highlight menu item bug. * Fix error when custom tickets list is undefined. * change double quote to single quote in search filters reducer * Fix error with get authors path in admin panel ticket search * Add page in ticket search filters * Join componentDidMount from Ticket QueryFilter and TicketQuery List in AdminPanelSearchTicket and add retrieveSearchTickets action in seartch ticket reducer. * rename search tickets api to search tickets utils * correct import of searchFiltersActions * move some functions to search tickets utils and date transformer * Fix bug with component did mount when custom tickets list menu option was clicked * Fix bug with component did mount and closed filters in url * Fix bug with authors filters in url when did mount search tickets page * Fix bug with closed urlFilters in search tickets did mount * Fix bug when change authors in urlFilters * Fix bug with authors filters in retrieveSearchTickets action * Delete changeCustomListFilters action * Fix error with dateRange filters in retrieveSearchTickets action * Add page in url * Rename filtesForAPI to filtersForAPI in search filters reducer. * Update Autocomplete test * Fix error with get-authors-test * fix bug with double request when search ticket page was mounted with item selected menu and delete custom param in url when custom ticket list form was edited * Add separator line between form filters and tickets table and delete console log * doubles the animation speed of show filters * Show form filters in search tickets * delete console log in session action * wip * Fix error with ticket list when custom list change. * Fix bug with hover of date range component. * Fix Autocomplete test. * Fix error with autocomplete owners in ticket query filters component. Co-authored-by: Ivan Diaz <ivan@opensupports.com>
2020-06-24 21:45:55 +02:00
require './ticket/search-authors.rb'
2019-12-27 23:50:50 +01:00
require './ticket/search.rb'
Ticket filters (#795) * Delete one line break in table.js * Add status icon in ticket title * Compare new filters with previous filters * Add ticket query filters * Add departments and priority filters. * Minor style changes in TagSelector and Tag * Add content on selected items Autocomplete component * Delete id prop from autocomplete component * Add DateSelector and DateRange component. * Delete compare function and add arrow orderby icon. * Add dateRange and orderBy filters. * Add minors changes of tabulations * Minors changes of funtion name and constant name * Minors changes of funtion name and constant name part 2. * Transform SearchBox in a controlled component. * Add Autocomplete and DateRange component int FormField. * Add preventDefault event in DropDown. * Create some customs list. * Add TagSelector in FormField. * Add private icon in autocomplete departments filters and correct some errors. * Delete consoleLogs. * Add ANY and TAGS (i18n). * Add search-filters reducer. * Add CLEAR (i18n). * Add clear form button in ticket search. * Correrct titel error in ticket search. * Correrct style submit button in ticket search. * Submit form not change orderBy. * Replace AdminPanelAllTicekts to AdminPanelSearchTicket. * Correct error when query is empty string. * Change form style. * Add show filters button. * Add minors style changes. * Add autors filters first part. * Add autors filters second part. * Apply filters when enter is pressed in searchbox. * Change prop name to node proptype in tag component. * Change search filter actions name. * Change name of render arrow icon in ticketList Component. * Fix an error with Autocomplete component. * Restore demo page and system. * Update ticket list test. * Fix an error with timeout in autocomplete test. * Delete custom ticket list in index.html. * rder the functions in search-filters-reducer. * Fix store undefine in session-action-test. * fix import store in session action test. * Delete unlock icon in ticket list. * Change style in autocomplete component. * Change size of lock icon in ticket list. * Fix error with blacklist in authors autocomplete. * Comment session action test. * Fix test in get-authors.rb and searchTest.php * Add onChange in tag-selector * Fix some bugs and autocomplete authors. * Wip * wip * wip * wip * Fix authors bugs in orderBy filter. * Delete some consoleLogs in autocomplete component. * Fix bug with authors filters when clicked custom list menu. * Fix highlight menu item bug. * Fix error when custom tickets list is undefined. * change double quote to single quote in search filters reducer * Fix error with get authors path in admin panel ticket search * Add page in ticket search filters * Join componentDidMount from Ticket QueryFilter and TicketQuery List in AdminPanelSearchTicket and add retrieveSearchTickets action in seartch ticket reducer. * rename search tickets api to search tickets utils * correct import of searchFiltersActions * move some functions to search tickets utils and date transformer * Fix bug with component did mount when custom tickets list menu option was clicked * Fix bug with component did mount and closed filters in url * Fix bug with authors filters in url when did mount search tickets page * Fix bug with closed urlFilters in search tickets did mount * Fix bug when change authors in urlFilters * Fix bug with authors filters in retrieveSearchTickets action * Delete changeCustomListFilters action * Fix error with dateRange filters in retrieveSearchTickets action * Add page in url * Rename filtesForAPI to filtersForAPI in search filters reducer. * Update Autocomplete test * Fix error with get-authors-test * fix bug with double request when search ticket page was mounted with item selected menu and delete custom param in url when custom ticket list form was edited * Add separator line between form filters and tickets table and delete console log * doubles the animation speed of show filters * Show form filters in search tickets * delete console log in session action * wip * Fix error with ticket list when custom list change. * Fix bug with hover of date range component. * Fix Autocomplete test. * Fix error with autocomplete owners in ticket query filters component. Co-authored-by: Ivan Diaz <ivan@opensupports.com>
2020-06-24 21:45:55 +02:00
require './ticket/get-authors.rb'
require './system/mandatory-login.rb'
require './system/default-department.rb'
require './user/edit-supervised-list.rb'
require './user/get-supervised-tickets.rb'
require './system/apikey-permissions.rb'
require './system/get-stats.rb'
require './user/resend-email-token.rb'
require './user/invite.rb'
require './user/resend-invite-user.rb'
require './staff/resend-invite-staff.rb'