Commit Graph

667 Commits

Author SHA1 Message Date
Guillermo Giuliana b73d6d534d
Fix ticket seach query when you are looking for an own ticket that is not in an owned department (#897)
* update departments filter

* update php test
2020-09-29 01:14:06 -03:00
Maximiliano Redigonda 80a9a958a8
Revert "Google social login" (#886) 2020-08-28 14:13:23 -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 5184c31907
Fix error in edit button for ticket owner. (#872)
* Retrieve staff members after edit staffs.

* Delete retun after throw new RequestException in staff/edit.php

* Resolve github Ivan comments.

* wip
2020-08-28 06:27:04 -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
Maximiliano Redigonda 68c3975ea4
Merge pull request #860 from opensupports/optimize-ticket-search
Optimize ticket search
2020-08-24 09:40:04 -03:00
Maxi Redigonda a89a465ac9 Adds check to see if email was verified 2020-08-22 00:47:24 -03:00
Maxi Redigonda 5021781d25 Implements Google auto signup
If the user doesn't have an account on the system, the first time they
log in with Google, an account will be created.
2020-08-20 23:45:09 -03:00
Maxi Redigonda 0518b0ac17 Adds branching for when social login user wasn't created 2020-08-20 16:23:30 -03:00
Maxi Redigonda 5d2e4fcb1f Merge branch 'master' of https://github.com/opensupports/opensupports into social-login 2020-08-20 14:53:39 -03:00
LautaroCesso 7a803dd7ff
Fix security bug, Ticket Number data filtered. (#879) 2020-08-19 23:45:47 -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 c4e211518c WIP - Stub to log in with Google 2020-08-19 17:33:38 -03:00
Maxi Redigonda 56ca30a7c3 WIP - validates google token and gets its data 2020-08-19 16:17:44 -03:00
Maxi Redigonda fad3dce646 Adds google/apiclient to composer json 2020-08-19 16:17:44 -03:00
LautaroCesso e36b984b23 Resolve github maxi comments. 2020-08-18 23:48:06 -03:00
LautaroCesso e397d45c53 Merge branch 'master' into remember-me-function-for-staffs 2020-08-13 15:57:31 -03:00
LautaroCesso bbbc845fe7 Fix remember me function for user. 2020-08-12 16:02:39 -03:00
LautaroCesso d72aec3976 Add staff instance in session cookie. 2020-08-11 23:35:10 -03:00
Maxi Redigonda 01a494ac23 Fixes /system/get-logs by adding getFetchAs 2020-08-05 16:34:27 -03:00
Maxi Redigonda 4fd9db8651 Assumes all tables exist, updates tests.
An internal function has now a new signature, it receives a query,
and now tests correctly reflect that.
2020-08-03 19:39:48 -03:00
LautaroCesso 96990c8c04 Add remember me function for staffs. 2020-08-03 12:54:15 -03:00
Maxi Redigonda 5b16393659 Optimizes query to avoid information_schema (-2s)
This actually also corrects a bug (previous to this, the query would
find any table with the correct name in any database).
2020-07-30 15:36:28 -03:00
Maxi Redigonda 2bf6b2c23f Centralizes calls to expensive functions (-2.5 s). 2020-07-29 15:50:05 -03:00
Maxi Redigonda 384f7c93d7 Avoids redundant call saving 2.5 seconds 2020-07-29 15:36:18 -03:00
Maxi Redigonda 785e2d8ac5 Forbids call to /get-supervised-tickets from staff 2020-07-28 16:36:40 -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
LautaroCesso 03df5725f7
Fix bugs in change ticket department. (#828)
* fix change department in ticket viewer (FE).

* fix bug change departmet. (BE)

* fix unassigned ticket for any level staff can use it (BE) and add ruby test

* fix ticket department change to un assign ticket correctly (BE) and add ruby test

* fix an error with author id in ticket viewer

* Use get departments for transder in change department params.

* Rename test in change department rb.
2020-07-21 11:04:24 -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
Ivan Diaz f8342ffa16
Hotfix email polling not working (#839) 2020-07-14 20:34:01 -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 7daa53e47d
set ticket author correctly (#817)
* set ticket author correctly

* x
2020-06-24 02:12:13 -03:00
Ivan Diaz c7af383ef2
Fix ticket session (#814) 2020-06-19 14:36:49 -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 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 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 09b7a049ed
Fix MailSender 2020-05-16 17:18:52 -03:00
Bernard Spil 6fd392bc15
Fix SMTP for servers that don't need auth (#783)
Currently this fails against servers that don't need or support AUTH but rely on other means to allow relaying email.
2020-05-13 18:30:47 -03:00
Ivan Diaz 1d19d5578b
Add gif support, fix styling issues, fix login test (#784) 2020-05-13 16:08:42 -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 64cfd5a8f1 create get-image-paths function 2020-04-16 10:52:33 -03:00
Guillermo Giuliana 2aded07b56 fix image displaying 2020-04-16 10:07:28 -03:00
Alejandro Matos f31d0aa377
Changing a few texts
the Spanish version was a mixture of formal, informal and it also had grammatical mistakes. The German version had a few mistakes like 'Fahrkartenummer' which actually means "bus/train ticket number".
2020-04-15 01:28:05 -05:00
Guillermo Giuliana 5b75e5d732 allow empty query in get authors path, changes names 2020-03-02 19:08:19 -03:00
Guillermo Giuliana c6c1a57c57 ruby tests get authors path 2020-03-02 17:19:14 -03:00
Guillermo Giuliana c2ce516b4d add custom validation get authors path 2020-03-02 14:14:29 -03:00
Guillermo Giuliana 55e88f2ac6 update search php test 2020-03-02 00:20:55 -03:00
Guillermo Giuliana 22b378e0ba fix string order on ticket search 2020-02-29 16:37:03 -03:00
Guillermo Giuliana 31b58308e8 get authors path 2020-02-29 14:21:36 -03:00
Guillermo Giuliana 0a4484133b change 4.6.0 to 4.6.1 2020-02-05 17:15:32 -03:00
Guillermo Giuliana aedae876d6 increase length liming content, allowes title-articles with 1 caracted 2020-02-05 16:43:14 -03:00
Guillermo Giuliana a2502bc1c6 add length limit contents 2020-02-05 15:43:25 -03:00
Guillermo Giuliana dc278db845 shows real pages when you search tickets with a query 2020-02-04 19:11:37 -03:00
Guillermo Giuliana d520b96932 fix ruby tests and change ticket search departmentvalid functions 2020-02-04 16:22:08 -03:00
Guillermo Giuliana ca63c3d08b update names of departments, ticket search path 2020-02-03 17:38:58 -03:00
Guillermo Giuliana 74de20641f fix department filter of ticket search 2020-01-31 21:47:56 -03:00
Guillermo Giuliana e44559618f Fix blank strings of titles and contents BE 2020-01-31 14:19:48 -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
Guillermo Giuliana f4b3ea2a65 seach valid staff to validownersid 2020-01-24 15:18:05 -03:00
Guillermo Giuliana 46ca19c2cc add owner filter to ticketSearch BE 2020-01-23 22:26:32 -03:00
Guillermo Giuliana 9cff8cd789 fix ticket search unitary tests 2020-01-23 19:39:22 -03:00
Guillermo Giuliana b5639051f4 throw error when try to change title for a blank string 2020-01-23 16:51:26 -03:00
Guillermo Giuliana 23c750e6b9 fix priorities empty array problem 2020-01-23 16:48:18 -03:00
Guillermo Giuliana e24ec402e4
Merge branch 'master' into master 2020-01-23 12:43:45 -03:00
Ivan Diaz 71a1d434ef Add base schema population 2020-01-22 14:26:07 -03:00
Guillermo Giuliana fe31163a8a fix ticket search when staff hasnt deparments and shows own tickets 2020-01-22 01:18:23 -03:00
Guillermo 0174233a24 edit title for system without users 2020-01-08 10:09:35 -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 9ca6632ee9 Fix APIKey mock 2020-01-07 15:09:06 -03:00
Ivan Diaz ec98767e25 Fix APIkey mock 2020-01-07 14:51:16 -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
Guillermo Giuliana 9f4a293107
Merge pull request #678 from guillegiu/master
Add ticket Search Path
2019-12-29 15:58:32 -03:00
Guillermo cc9c51b856 fix date range validation on php 7.2 2019-12-29 15:48:57 -03:00
Guillermo 8be43bb7ea resolve mirrors errors 2019-12-28 17:50:11 -03:00
Guillermo d25da2c5ff add validation test 2019-12-27 19:50:50 -03:00
Guillermo f9e8a0abec add department test and escape query 2019-12-26 17:25:00 -03:00
LautaroCesso 843bd13281
Allows space in custom fields name (issue #598) (#681)
* replace spaces for underscores in edit custom fields

* Create function getCustomFieldParamName
2019-12-20 16:49:43 -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
Guillermo Giuliana 2099af5f3a
Update LinearCongruentialGeneratorTest.php 2019-12-17 10:15:19 -03:00
Guillermo bac138757e fix search php test 2019-12-17 09:04:49 -03:00
Guillermo 2678947f85 ticket search list frontend 2019-12-17 08:35:04 -03:00
Maxi Redigonda 33af34ab12 Corrects email notifications and unread status on ticket/comment. 2019-11-20 14:24:02 -03:00
Guillermo 5219b91388 add valid departments to staff search 2019-11-19 19:55:47 -03:00
Ivan Diaz 7e1749dbd1 Add create ticket APIKey 2019-11-16 16:07:02 -03:00
Guillermo 57d3766c9d unit test for Search ticket 2019-11-14 17:17:45 -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
Guillermo Giuliana b81c628faa Search ticket path backend 2019-11-10 16:14:30 -03:00
Maxi Redigonda 1d84aa488c Removes checks for mailsender since it should always be connected. 2019-11-08 20:39:28 -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 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