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
2020-06-24 16:45:55 -03:00
2020-06-24 16:45:55 -03:00
2020-06-24 16:45:55 -03:00
2019-08-05 22:14:13 +02:00
2019-10-07 19:05:32 -03:00
2018-07-05 07:24:20 -03:00

OpenSupports

Build Status v4.7.0

OpenSupports is an open source ticket system built primarily with PHP and ReactJS. Please, visit our website for more information: http://www.opensupports.com/

Requirements

  • PHP 5.6+
  • MySQL 4.1+

Development

Here is a guide of how to set up the development environment in OpenSupports.

Getting up and running FRONT-END (client folder)

  1. Update: sudo apt-get update
  2. Clone this repo: git clone https://github.com/opensupports/opensupports.git
  3. Install node 4.x version:
    • sudo apt-get install curl
    • curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
    • sudo apt-get install -y nodejs
  4. Install npm: sudo apt-get install npm
  5. Go to client: cd opensupports/client
  6. Install dependencies: npm install
  7. Rebuild node-sass: npm rebuild node-sass
  8. Run: npm start (PHP server api it must be running at :8080)
  9. Go to the main app: http://localhost:3000/app or to the component demo http://localhost:3000/demo
  10. Your browser will automatically be opened and directed to the browser-sync proxy address.
  11. Use npm start-fixtures to enable fixtures and not require php server to be running.

OpenSupport uses by default the port 3000, but this port could already be used. If this is the case, you can modify this in the file: client/webpack.config.js.

Production Task

Just as there is a task for development, there is also a npm build task for putting the project into a production-ready state. This will run each of the tasks, while also adding the image minification task discussed above and the result store in dist/ folder.

Reminder: Notice there is index.html and index.php. The first one searches the backend server where config.js says it, the second one uses /api to find the server. If you want to run OpenSupports in a single server, then use index.php.

Frontend Unit Testing

  1. Do the steps described before.
  2. Install mocha: npm install -g mocha@6.2.0
  3. Run npm test to run the tests.

Getting up and running BACK-END (server folder)

  1. Install Docker CE
  2. Go to the server folder: cd opensupports/server
  3. Run make build to build the images
  4. Run make install to install composer dependencies
  • make run runs the backend and database
  • make stop stop backend and database server
  • make log show live server logs
  • make db access to mysql database console
  • make sh access to backend docker container bash
  • make test run phpunit tests
  • make doc to build the documentation (requires apidoc)

Server api runs on http://localhost:8080/ Also, there's a phpmyadmin instance running on http://localhost:6060/, you can access with the username root and empty password

Building

Once you've installed dependencies for frontend and backend, you can run ./build.sh and it will generate a zip file inside dist/ ready for distribution. You can use this file to install OpenSupports on a serving following the installation instructions

BACKEND API RUBY TESTING
  1. Go to tests folder: cd opensupports/tests
  2. Run make build to install ruby container and its required dependencies
  • make run for running tests (database will be cleared)
  • make clear for clearing database
BACKEND FAKE SMTP SERVER

If you're doing development, you can use a FakeSMTP server to see the mails that are being sent.

  1. Install Java if you don't have it yet:

    sudo apt-get install default-jre sudo apt-get install default-jdk

  2. Download FakeSMTP

  3. Extract the file from the zip and run it:

    java -jar fakeSMTP-2.0.jar

  4. Set the port to 7070 and start the SMTP server.

  5. Every time the application sends an email, it will be reflected there.

Languages
JavaScript 48.4%
PHP 25.6%
Ruby 10.6%
HTML 9.6%
SCSS 5.5%
Other 0.2%