216 Commits

Author SHA1 Message Date
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
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
LautaroCesso
4077dac8c7
Remember me function for staffs (#866)
* fix warning in checbox in form field.

* Add remember me function for staffs.

* Add staff instance in session cookie.

* Add result data staff in get user data in auto login.

* Fix remember me function for user.

* Fix login test rb and add remember me function test in login rb.

* Resolve github maxi comments.
2020-08-19 23:33:40 -03:00
Maxi Redigonda
01a494ac23 Fixes /system/get-logs by adding getFetchAs 2020-08-05 16:34:27 -03:00
Guillermo Giuliana
c4a2c48eae
and create tags instead priority script 4.8 (#849)
* and create tags instead priority script 4.8

* change names request ticket ids

* add tag model documentation

* .
2020-07-22 13:24:40 -03:00
Guillermo Giuliana
791e0969e9
add script and change 4.7.0 to 4.8.0 (#848)
* add script and change 4.7.0 to 4.8

* change end of line 4.8.0 script

* Delete main.py
2020-07-22 07:32:18 -03:00
Guillermo Giuliana
cd73606852
Super user feature (#841)
* add ruby tests

* update ruby test

* backend part

* add get-supervised-ticket path and ruby tests

* update search-authors path and custom validation to get-supervised-tickets

* add supervised users components and css

* add supervised-users messages

* resolve minor bugs get super ticket, ruby tests and change file name

* add supervisor options on user panel

* change supervisor structure

* add pagination dashboard supervisor tickets

* change error name

* add error to path edit-supervised-list

* fix github comments

* resolve github comment backend

* add minor changes dashboard list tickets page
2020-07-21 06:52:34 -03:00
LautaroCesso
62497d1263
Delete ticket priorities. (#822)
* Delete ticket priorities.

* Fix style in autocomplete component.

* Fix style in tag selector component.

* Fix style in ticket query filters.

* Fix style in ticket viewer.

* Delete commented lines.
2020-07-06 13:39:38 -03:00
LautaroCesso
6d476d5d5d
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 16:45:55 -03:00
Guillermo Giuliana
6a34c24d7d
update script and change 4.6 to 4.7 (#809)
* update script and change 4.6 to 4.7

* fix 4.7.0 script
2020-06-16 21:26:04 -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
0a4484133b change 4.6.0 to 4.6.1 2020-02-05 17:15:32 -03:00
Guillermo Giuliana
2d75f87def change 4.5.0 to 4.6.0 add tables creating into upgrade file 2020-01-24 21:37:05 -03:00
Ivan Diaz
71a1d434ef Add base schema population 2020-01-22 14:26:07 -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
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
af92a6bbf2 part 1 edit ticket title 2020-01-02 09:55:55 -03:00
Ivan Diaz
7e1749dbd1 Add create ticket APIKey 2019-11-16 16:07:02 -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
995d302a49 Improves code according to Ivan's comments 2019-11-14 11:34:20 -03:00
Maxi Redigonda
fa5300a731 Fix small issue, now all names of authors of logs are stored. 2019-11-08 10:57:25 -03:00
Maxi Redigonda
a883f4d430 Creates ticket session when an unlogged user creates a ticket.
Fixes runtime error when there is no author associated with a log.
2019-11-08 10:41:50 -03:00
Maxi Redigonda
bedf55d1ad Makes createLog function store authorName. 2019-11-08 10:08:14 -03:00
Maxi Redigonda
431ef44c8d Makes users able to comment on tickets when there is no user system, and fixes logs 2019-11-07 15:27:26 -03:00
Maxi Redigonda
18be18ebf8 Adds log for user invitations 2019-10-29 16:11:37 -03:00
Maxi Redigonda
5331c3363e First working version of invite users feature 2019-10-28 15:27:25 -03:00
Guillermo Giuliana
d0a6dd06d8 fix Staff class,canManageTicket function to camelcase form.fix bug edit commment FE id ternary 2019-10-10 18:22:04 -03:00
Guillermo Giuliana
efbe553076 release v4.5.0 2019-10-07 20:21:43 -03:00
Maxi Redigonda
d307b01832 Adds polish language and updates other languages automatically 2019-10-02 12:54:55 -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
844de1e10f tests ruby 2019-09-20 16:58:21 -03:00
Guillermo
c0f1f932c6 fix comments github pt1 2019-08-22 16:17:45 -03:00
Guillermo
53e88a78f7 staff allow manage ticket feature 2019-07-04 20:22:38 -03:00
Guillermo
94a8cd4431 edit comment ticket feature 2019-06-26 22:04:56 -03:00
Ivan Diaz
28d50e7d24 Release v4.4.0 2019-03-06 12:50:25 -03:00
Ivan Diaz
c970c9923f API path AddTag for tickets 2019-02-21 19:37:53 -03:00
Guillermo
fcf6b887db Merge branch 'master' of https://github.com/opensupports/opensupports into customFieldsTests 2019-02-05 17:13:24 -03:00
Ivan Diaz
623a81b51d Add Custom Fields feature 2019-02-03 16:47:29 -03:00
Ivan Diaz
58c6f2e63f wip 2019-01-18 20:58:30 -03:00
Guillermo
57feafd453 frontend 1part 2019-01-15 20:44:21 -03:00
Ivan Diaz
429796aee8 Email feature - wip 2018-12-23 21:44:59 -03:00
Guillermo
234de7ed2c feature#146 backend 2018-12-12 01:23:58 -03:00
Ivan Diaz
e47df8e6dc Prepare v4.3.2 release 2018-11-29 13:35:14 -03:00
Ivan Diaz
7439afff63 Merge branch 'master' of github.com:opensupports/opensupports 2018-11-29 00:09:53 -03:00
Ivan Diaz
cc2fc2c295
Merge pull request #402 from guillegiu/master
features #340
2018-11-28 00:15:48 -03:00
Ivan Diaz
e0d4a46929
Merge pull request #383 from SamMousa/singleton-trait
Refactor singleton functionality into trait
2018-11-28 00:15:00 -03:00
Ivan Diaz
cbdda1e1dc Merge branch 'master' of github.com:opensupports/opensupports 2018-11-25 18:39:35 -03:00
Guillermo
ba1d72d004 Merge branch 'master' of https://github.com/opensupports/opensupports into articles-331 2018-11-24 02:36:01 -03:00
Guillermo Giuliana
80b6bcea8a
Merge branch 'master' into master 2018-11-23 21:36:40 -03:00