Commit Graph

118 Commits

Author SHA1 Message Date
LautaroCesso 0f6c64674e
Fix ruby tests (#1188)
* Fix ruby tests

* Add pageSize default value
2022-04-25 12:38:44 -03:00
Guillermo Giuliana fe1dd1bd48
[DEV-199] Can't put a department in private (#1115)
* add correct validation of repeated name use

* update department create ruby script

* add new edit department ruby tests

* change parameter name of create department ruby scripts

* verify change of private state while editing department ruby tests
2021-12-17 14:10:57 -03:00
Guillermo Giuliana 237801e9ed
Revert "add last files (#1110)" (#1114)
This reverts commit 950439bf47.
2021-12-13 16:32:53 -03:00
Guillermo Giuliana 950439bf47
add last files (#1110) 2021-12-13 09:57:20 -03:00
LautaroCesso b39e4c2a5f
Fix edit ticket comment (#1107)
* Fix edit ticket comment

* Add some docs comments

* Change some test names
2021-12-02 21:35:37 -03:00
Guillermo Giuliana 0df57af11e
[DEV-187] Fix duplicated-department-names bug (#1083)
* fix apidoc

* add new custom validation

* add ruby tests

* add frontend error

* take out the ternary
2021-11-24 14:21:16 -03:00
LautaroCesso d7ccff1a5a
[DEV-26] Update length validations (#1075)
* Update length validations

* Fix language validations

* Remove unnecessary import

* Delete some semicolons
2021-11-11 17:17:39 -03:00
Guillermo Giuliana 9ed4caf202
[DEV-160] Add user permission into logout path (#1073)
* fix apidoc

* add user verification into logout.php and update ruby tests
2021-11-05 17:06:08 -03:00
Guillermo Giuliana 27e86c934c
[DEV-131] Fix delete ticket bug (#1035)
* verify ticket author-user before reduce amount of tickets created

* add ruby test

* change geting tickets by id in ruby tests
2021-09-22 18:20:19 -03:00
Maximiliano Redigonda c5d6068e97
Add statistics (#904)
* Adds first_closed_at and last_closed_at to Ticket

* Fixes ticket isClosed function

* Adds reopened column to Ticket table

* Adds stats path

* Adds stats for instant tickets

* Adds basic connection with frontend

* Creates cards to display ticketData

* Adds tooltips with descriptions and i18n

* Adds date range filter to backend

* Adds DateRange filter on frontend

* Documents and better structures code

* Makes $dateRange local

* Adds departments filter on backend

* Adds stats path to menu

* Adds first UI for departments filter in stats

* Implements departments filter on frontend

* Improves styling by adding bootstrap rows

* Improves structure of dynamics queries

* Adds tags filter on backend

* Adding TagFilter for statistics WIP

* Adds missing `id` to propTypes TagSelector

* Removes console.warns

* Adapts form to pass tagnames as value as FormField

* Sends tags to API too

* Makes tag-selector change form with tagnames only

* Fixes tag-selector from ticket-viewer

* Removes console.warn

* Removes logs

* Adds owner filter on backend

* Connects owners frontend with backend for stats

* Style changes for date-selector

* Adds tickets by hours stat to /system/stats path

* Adds chart for tickets created on each hour

* Adds better wrap for ticketdata cards

* Adds getAverageFirstReply to backend stats path

* Adds getNumberOfCreatedTicketsByWeekday to backend

* Adds created tickets by weekday chart

* Disables clicking on the legend to toggle data

* Adds base functions for efficiency stats

* Adds getAverageFirstClosed to backend stats

* Adds getAverageLastClosed to backend stats

* Adds table, filters, and groupBy variables to queries

* Adds response structure with mocks

* Adds totalOwners and totalDepartments

* Adds SQL queries to get department/staff hops of a ticket

* Changes incorrect name

* Rolls back addition of near useless function

* Improves tag array management from redux store

* Fix bug in autocomplete filters.

* Sets default date range to current month.

improves date.js.

* Adds i18n

* wip

* Add media query in admin-panel-stats.scss

* Updates date handling in search-ticket-utils

* Makes tooltip open on hover of the entire block

* Fix date range mobile style.

* Add Loading

* Add submit button and clear button in admin panel stats

* Adds tests for stats and comments old ones

* Add test for stats after a ticket has been created

* Makes default dateRange for stats go to the end of the day

* Factors out function to create ticket and adds test

* Adds instant ticket test

* Adds reopened test

* Commit to save technique to test created_by_hour but is prohibitively slow.

* Updates test of created_by_hour to be more lightweight

* Adds test for created_by_weekday

* Fixes default date and renames a function

* Fixes hover bug by extracting card-stat to its own component

* Fix drawbacks with previous change in style - mobile

Co-authored-by: LautaroCesso <lautaro_cesso@hotmail.com>

* Set up 0 as a minimum number for bar chart

* Moves styles from stats cards to the component

* Removes old /system/get-stats path

* Changes name from /system/stats to /system/get-stats

* Restore getCurrentDate in date transformer

Co-authored-by: LautaroCesso <lautaro_cesso@hotmail.com>
Co-authored-by: Ivan Diaz <ivan@opensupports.com>
2020-12-27 16:22:55 -03:00
Ivan Diaz 3dd76f214d
Remove recaptchakey leftover from test (#937) 2020-11-18 20:52:05 -03:00
Guillermo Giuliana b8944a3f04
New apikeys permissions (#869)
* back-end  y ruby test

* ruby test

* frontend part

* delete unused component

* resolve relevant  github maxi comments

* delete .catch of getAllkeys

* fix github ivan comments

* add ruby test and minor changes

* search ruby test

* fix name checkticketpermission
2020-10-14 15:08:14 -03:00
Guillermo Giuliana c00720d6a2
Minor GitHub bugs (#806)
* text-validation to edit article content

* shows only own department on my account

* add moment and update date

* Update date transformer

* Delete time zone setting.

* Use local date in date range component and utc date in date range filter.

* Fix github comment.

* Fix merge 'Fix filter show bug in ticket search when ordering'.

* Fix merge 'Fix filter show bug in ticket search when ordering' second part.

* Fix getDefaultUTCEndDate function.

Co-authored-by: Ivan Diaz <ivan@opensupports.com>
Co-authored-by: LautaroCesso <lautaro_cesso@hotmail.com>
2020-08-28 07:13:34 -03:00
LautaroCesso 52eae4d242
Thorough ruby tests /ticket/search path (#870)
* Add ticket/search test (ruby)

* Resolve github maxi comments.

* Resolve github maxi comments second part.

* wip

* Rename some test.

* Add query filter test.

* Add test combining multiple parameters.

* wip

* comment query test in search.rb

* comment query test in search.rb second part.
2020-08-28 05:19:47 -03:00
Guillermo Giuliana 17e9dcf53b
fix multiple session handle ticket and update 4.7.0 update script (#812)
* fix multiple session handle ticket

* update 4.7.0 script
2020-06-18 07:08:20 -03:00
Guillermo Giuliana 1e7a3e2f4a
Default department feature (#805)
* pt 2

* do not allow to delete default depto

* ticket craete changes and ruby tests

* set langauge to ticket  and ruby tests

* show departments/lenaguages dropdown logic frontend

* default department frontend

* fix github comments

* add logic edit-setting

* add settings to reducer

* resolve git hub comments logic frontend

* delete variables without use

* select default department dropdown

* fix ruby tabulation

* delete creaticketform console.log
2020-06-15 16:27:45 -03:00
Ivan Diaz eca89ea9b4 Fix docker implementation 2020-05-13 02:51:51 -03:00
Guillermo Giuliana 92a96c276b
Mandatory Login BE and Ruby tests (#757)
* Mandatory Login BE and Ruby tests

* registration handle and remove user-system setting

* create specific paths to mandatory login changing

* BE logic not allow turn off mandatory login without registratrion

* fix github issues

* Delete config['user-system-enabled'].

* Add some tabulations.

* Create MandatoryLoginReducer.

* Replace 'user-system' to 'mandatory-login'.

* Replace user-system toggle to mandatory-login checbox.

* Add some button in the header.

* Change onChange function mandatory login name.

* Disabled checkbox when you should not change it.

* Delete consolelog and some irrelevant lines.

* Change name of mandatory login reducer.

* Change style button in install step 1

* Change style button in install step 2

* Fix loading bug in submmit button.

* Change style button in install step 5

* Change style button in install step 6

* Delete UserSystemEnabled in ticket viewer component.

* Delete UserSystemEnabled in some files.

* Delete onRetriveFail function in main view ticket page.

* Replace user-system-enabled to mandatory-login in some files.

* replace user-system-enabled to mandatory-login in install steps.

* Fix style in dashboard-[Ccreate-ticket-page and dashboard-list-article-page.

* Fix mandatory login issues

Co-authored-by: LautaroCesso <lautaro_cesso@hotmail.com>
Co-authored-by: Ivan Diaz <ivan@opensupports.com>
2020-05-12 19:22:51 -03:00
Guillermo Giuliana a2502bc1c6 add length limit contents 2020-02-05 15:43:25 -03:00
Guillermo Giuliana d520b96932 fix ruby tests and change ticket search departmentvalid functions 2020-02-04 16:22:08 -03:00
Guillermo 7c1315c244 fix disable user system ruby test 2020-01-08 10:27:39 -03:00
Guillermo d56c46dba6 Merge branch 'master' of https://github.com/opensupports/opensupports
Conflicts:
	client/src/data/languages/en.js
2020-01-07 18:46:33 -03:00
Ivan Diaz 7b608a6d06 Fix disable-user-system test 2020-01-07 17:29:28 -03:00
Guillermo eb9a970353 Edit ticket title feature 2020-01-07 17:11:52 -03:00
Ivan Diaz 4d18bc9aa6
Merge branch 'master' into create-ticket-api-key 2020-01-07 14:22:10 -03:00
Guillermo Giuliana b9e4a55b91
Merge branch 'master' into master 2019-12-20 11:35:51 -03:00
Guillermo 61ce46d5c7 change name Validation priorities 2019-12-17 15:25:45 -03:00
Ivan Diaz 01a0435f57 Add test for APIKeys 2019-11-16 17:16:53 -03:00
Maxi Redigonda bc38411275 Merge branch 'master' of https://github.com/opensupports/opensupports into invite-users-feature 2019-11-14 15:11:37 -03:00
Maxi Redigonda 1c4bd7df17 Fix bug to allow staff members to recover their passwords even if user system is disabled. 2019-11-08 19:42:02 -03:00
Maxi Redigonda 5ab155f8ce Adds test to /system/get-logs 2019-11-08 11:06:47 -03:00
Maxi Redigonda f5f78a549c Adds test to manage tickets when the user system is disabled 2019-11-07 17:43:47 -03:00
Guillermo Giuliana 63ef66198a Remove special functionality of "ticket assignment", other minor fixes (#587)
* fix ticketEventId submit

* staff allow manage ticket feature

* edit-comment log

* fix staff1/2 change own perfile pic

* Makes frontend allow ticket editing for any staff member

* Allows all staff members in charge of the department of a ticket to manage it (change its department, priority, comment on it, etc.)

* fix comments github pt1

* tests ruby

* fix

* Fix ruby tests

* add commenteed tests
2019-10-01 16:40:30 -03:00
Guillermo 94a8cd4431 edit comment ticket feature 2019-06-26 22:04:56 -03:00
Ivan Diaz 5d3a805285 Fix styling of custom tags 2019-03-01 01:15:03 -03:00
Ivan Diaz f6f8262880 Add custom fields test 2019-02-13 19:21:59 -03:00
Ivan Diaz 2ceb73edd7 Remove email host values from ruby test 2019-01-12 04:43:02 -03:00
Ivan Diaz c7f489d988 Add fronted email configuration 2019-01-12 00:38:33 -03:00
Ivan Diaz 429796aee8 Email feature - wip 2018-12-23 21:44:59 -03:00
Ivan Diaz 0780863257 Fix private department issues 2018-11-29 18:52:34 -03:00
Guillermo Giuliana 80b6bcea8a
Merge branch 'master' into master 2018-11-23 21:36:40 -03:00
Guillermo b4dc92b8f1 features #340 2018-11-23 19:44:10 -03:00
Ivan Diaz 5f0996f243 solve merge conflics with languages 2018-11-15 17:09:10 -03:00
Ivan Diaz 614b5a1a67 Refactor mail templates frontend, update backend refactor 2018-11-14 19:58:32 -03:00
Ivan Diaz e6b23c7f29 Refactor backend of mailtemplates, addd removal of last logs 2018-11-14 12:28:01 -03:00
Ivan Diaz 099dd5a5a0 Fix ticket delete test issues 2018-10-29 19:32:03 -03:00
Guillermo b8bac44d43 s 2018-10-29 11:32:31 -03:00
Ivan Diaz 60066bb9ca Fix user system disabled issues, add tests 2018-10-06 16:08:39 -03:00
Ivan Diaz 72a7200e77 Fix tests 2018-10-01 18:39:14 -03:00
Ivan Diaz 285b62832a Add image file size validation 2018-09-20 16:23:54 -03:00